/* MTD Calendar — mtdcalendar.co.uk
   Palette: ink navy, warm paper, date-stamp oxblood, ledger green.
   One family (Archivo) with weight/size contrast. Tabular figures for dates. */

:root {
  --ink:      #17233a;
  --ink-soft: #4a5568;
  --paper:    #fbfaf7;
  --card:     #ffffff;
  --rule:     #d9d5ca;
  --stamp:    #a52f1d;
  --ledger:   #2f6b4f;
  --amber:    #8a6a12;
  --measure:  62ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }
.narrow { max-width: var(--measure); }

a { color: var(--stamp); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--stamp); outline-offset: 2px;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.12rem; font-weight: 700; }
p  { margin: 0 0 1.1em; max-width: var(--measure); }

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 2px solid var(--ink);
  padding: 1rem 0;
  background: var(--paper);
}
.masthead .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark { font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.wordmark span { color: var(--stamp); }
.masthead nav { display: flex; gap: 1.25rem; font-size: .93rem; }
.masthead nav a { color: var(--ink-soft); text-decoration: none; }
.masthead nav a:hover { color: var(--stamp); text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding: 3.5rem 0 2.5rem; }
.hero p.lede { font-size: 1.17rem; color: var(--ink-soft); }

/* the four dates — the signature element */
.datestrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink);
  background: var(--card);
  margin: 2.25rem 0 1rem;
}
.datestrip div {
  padding: 1.1rem .5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--rule);
}
.datestrip div:last-child { border-right: 0; }
.datestrip .day {
  display: block;
  font-size: clamp(2.1rem, 7vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--stamp);
  letter-spacing: -.04em;
}
.datestrip .mon {
  display: block;
  font-size: clamp(.72rem, 2vw, .9rem);
  font-weight: 700;
  color: var(--ink);
  margin-top: .35rem;
}
.datestrip .yr { display: block; font-size: .72rem; color: var(--ink-soft); }
.strip-note { font-size: .9rem; color: var(--ink-soft); margin-bottom: 2rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--stamp);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: .85rem 1.6rem;
  border: 2px solid var(--stamp);
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #8c2717; border-color: #8c2717; }
.btn-quiet {
  background: transparent; color: var(--ink); border-color: var(--ink);
  font-size: 1rem; padding: .7rem 1.2rem;
}
.btn-quiet:hover { background: var(--ink); color: var(--paper); }

/* ---------- sections ---------- */
section { padding: 2.75rem 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }

.example {
  border-left: 4px solid var(--stamp);
  padding: .3rem 0 .3rem 1.1rem;
  margin: 1.4rem 0;
}
.example b { display: block; font-size: 1.02rem; }
.example span { color: var(--ink-soft); font-size: .96rem; }

/* ---------- checker ---------- */
.checker {
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 1.6rem;
  margin-top: 1.5rem;
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; font-size: .97rem; }
.field .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .88rem; margin-bottom: .45rem; }
.field input[type=number], .field select {
  width: 100%; padding: .7rem .8rem; font: inherit;
  border: 1.5px solid var(--rule); border-radius: 2px; background: #fff; color: var(--ink);
}
.checkline { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .55rem; font-size: .96rem; }
.checkline input { margin-top: .35rem; flex-shrink: 0; width: 1.05rem; height: 1.05rem; }

.result { margin-top: 1.4rem; padding: 1.2rem; border: 2px solid var(--ink); background: var(--paper); }
.result[hidden] { display: none; }
.result h3 { margin-bottom: .4rem; }
.result .verdict { font-size: 1.25rem; font-weight: 800; line-height: 1.25; }
.result.in    { border-color: var(--stamp); }
.result.in .verdict { color: var(--stamp); }
.result.out   { border-color: var(--ledger); }
.result.out .verdict { color: var(--ledger); }
.result.defer { border-color: var(--amber); }
.result.defer .verdict { color: var(--amber); }
.result p:last-child { margin-bottom: 0; }
.result ul { margin: .6rem 0 0; padding-left: 1.2rem; }

.privacy-note { font-size: .87rem; color: var(--ink-soft); margin-top: .9rem; }

/* ---------- product ---------- */
.includes { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: var(--measure); }
.includes li { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.includes li b { display: block; }
.includes li span { color: var(--ink-soft); font-size: .95rem; }

.pricebox {
  border: 2px solid var(--ink); background: var(--card);
  padding: 1.6rem; max-width: 30rem;
}
.pricebox .amount { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.pricebox .once { color: var(--ink-soft); font-size: .95rem; margin: .3rem 0 1.2rem; }

.notadvice {
  border: 1.5px solid var(--rule); background: #fff;
  padding: 1.1rem 1.25rem; font-size: .95rem; color: var(--ink-soft);
}
.notadvice b { color: var(--ink); }

details { border-bottom: 1px solid var(--rule); padding: .85rem 0; max-width: var(--measure); }
details summary { font-weight: 700; cursor: pointer; }
details p { margin: .7rem 0 .2rem; }

/* ---------- steps (thank you page) ---------- */
.step { border-left: 3px solid var(--ink); padding-left: 1.1rem; margin-bottom: 1.8rem; }
.urlbox {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .92rem; background: #fff; border: 1.5px solid var(--rule);
  padding: .7rem .8rem; word-break: break-all; margin: .6rem 0;
}

footer {
  border-top: 2px solid var(--ink); margin-top: 2rem;
  padding: 2rem 0 3rem; font-size: .92rem; color: var(--ink-soft);
}
footer a { color: var(--ink-soft); }
footer .legal { margin-top: 1rem; font-size: .86rem; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .datestrip { grid-template-columns: repeat(2, 1fr); }
  .datestrip div:nth-child(2) { border-right: 0; }
  .datestrip div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
