/* Sunday Gap — chart-paper palette, Archivo variable widths */
:root {
  --paper: #EEF1F4;
  --card: #FFFFFF;
  --ink: #15233B;
  --sub: #55657A;
  --rule: #C9D2DC;
  --gold: #F2B233;
  --navy: #1F3A63;
  --up: #1D7A58;
  --down: #B23A35;
  --measure: 34rem;
  --wide: 72rem;
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f); font-variation-settings: "wdth" 100;
  font-variant-numeric: tabular-nums;
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
img { max-width: 100%; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: .5rem 1rem; z-index: 9; }

/* ---------- wordmark: the gap is the logo ---------- */
.mark {
  display: inline-flex; align-items: center; gap: 0; text-decoration: none;
  font-weight: 850; font-variation-settings: "wdth" 125; letter-spacing: .02em; font-size: 1.15rem;
}
.mark img { width: 2.1em; height: 2.1em; margin-right: .55em; flex: none; }
.mark i {
  display: inline-block; width: 1.4em; height: .2em; background: var(--gold); margin: 0 .35em; transform: translateY(.05em);
}
header.top { padding: 1.25rem 0; }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
header.top nav { display: flex; gap: 1.25rem; font-size: .95rem; }
header.top nav a { text-decoration: none; color: var(--sub); }
header.top nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 3.5rem 0 4.5rem; border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3.5rem; align-items: start; }
.hero h1 {
  margin: 0; font-weight: 850; font-variation-settings: "wdth" 112; line-height: .98;
  font-size: clamp(2.4rem, 4.3vw, 3.9rem); letter-spacing: -.025em;
}
.hero h1 .gapline { display: block; white-space: nowrap; }
.hero h1 .gapline span { display: inline-block; }
.hero h1 .bar {
  display: inline-block; height: .16em; width: 0; background: var(--gold); vertical-align: .22em; margin: 0 .12em;
  animation: open 1.1s cubic-bezier(.2,.8,.2,1) .35s forwards;
}
@keyframes open { to { width: 1.6em; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .bar { animation: none; width: 1.6em; } }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink); max-width: var(--measure); margin: 1.6rem 0 2rem; }

.clock { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); max-width: var(--measure); }
.clock .when { font-size: .95rem; color: var(--sub); margin: 0; }
.clock .count {
  font-weight: 750; font-variation-settings: "wdth" 125; font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -.01em; margin: .15rem 0 0;
}
.clock .count small { font-size: .5em; font-weight: 500; color: var(--sub); margin: 0 .5em 0 .1em; font-variation-settings: "wdth" 100; }

/* ---------- forms ---------- */
.join { display: flex; gap: .5rem; max-width: var(--measure); flex-wrap: wrap; }
.join input[type=email] {
  flex: 1 1 16rem; min-width: 0; font: inherit; font-size: 1.05rem; padding: .85rem 1rem;
  border: 2px solid var(--ink); background: var(--card); color: var(--ink); border-radius: 0;
}
.btn {
  font: inherit; font-weight: 700; font-size: 1.05rem; padding: .85rem 1.3rem; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; border-radius: 0;
}
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn.gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn.gold:hover { background: #E3A21A; border-color: #E3A21A; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -5000px; }
.fine { font-size: .9rem; color: var(--sub); margin: .75rem 0 0; max-width: var(--measure); }
.msg { font-weight: 600; margin: .9rem 0 0; min-height: 1.6em; max-width: var(--measure); }
.msg.err { color: var(--down); }
.msg.ok { color: var(--up); }

/* ---------- sample slip ---------- */
.slip { background: var(--card); box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(21,35,59,.45); }
.slip iframe { width: 100%; height: 720px; border: 0; display: block; }
.slip-cap { font-size: .88rem; color: var(--sub); margin: .7rem 0 0; }

/* ---------- sections ---------- */
section.band { padding: 4.5rem 0; border-bottom: 1px solid var(--rule); }
section.band h2 {
  font-weight: 800; font-variation-settings: "wdth" 112; font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.08; letter-spacing: -.02em; margin: 0 0 1rem; max-width: 22ch;
}
section.band .intro { max-width: var(--measure); color: var(--ink); margin: 0 0 2.5rem; font-size: 1.1rem; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.cols h3 { font-size: 1.15rem; margin: 0 0 .4rem; font-weight: 750; }
.cols p { margin: 0; color: var(--ink); }
.cols > div { border-top: 3px solid var(--ink); padding-top: 1rem; }

/* pricing table */
.plans { width: 100%; border-collapse: collapse; background: var(--card); }
.plans th, .plans td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid #E3E8EE; vertical-align: top; }
.plans thead th { vertical-align: bottom; border-bottom: 2px solid var(--ink); padding-top: 1.4rem; }
.plans thead th.pro { background: var(--navy); color: #fff; border-bottom-color: var(--navy); }
.plans .pname { font-weight: 800; font-size: 1.3rem; font-variation-settings: "wdth" 112; display: block; }
.plans .price { font-weight: 500; font-size: 1rem; display: block; margin-top: .2rem; }
.plans thead th.pro .price { color: #D5DEEA; }
.plans td.c, .plans th.c { text-align: center; width: 10rem; font-weight: 700; }
.plans td.pro { background: #F4F7FB; }
.plans .yes { color: var(--up); }
.plans .no { color: #9AA6B4; font-weight: 400; }
.plan-cta { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; margin-top: 1.25rem; }
.plans-wrap { overflow-x: auto; }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--rule); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--sub); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .7rem 0 0; max-width: var(--measure); }

/* simple pages */
main.page { padding: 3rem 0 5rem; }
main.page .wrap { max-width: 44rem; }
main.page h1 { font-weight: 850; font-variation-settings: "wdth" 112; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 1.2rem; }
main.page h2 { font-size: 1.3rem; margin: 2.2rem 0 .5rem; }
main.page p, main.page li { max-width: var(--measure); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; max-width: var(--measure); margin: 1.5rem 0; }
.choice label { display: block; border: 2px solid var(--rule); background: var(--card); padding: 1rem 1.1rem; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice input:checked + label { border-color: var(--ink); box-shadow: inset 0 -5px 0 var(--gold); }
.choice input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice b { display: block; font-size: 1.25rem; font-variation-settings: "wdth" 112; }
.choice span { color: var(--sub); font-size: .95rem; }

/* archive */
.issues { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.issues li { border-top: 1px solid var(--rule); padding: 1.1rem 0; }
.issues a { text-decoration: none; display: block; }
.issues a b { display: block; font-size: 1.2rem; font-variation-settings: "wdth" 106; }
.issues a b:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.issues time, .issues span { color: var(--sub); font-size: .95rem; }
.issue-frame { background: var(--card); max-width: 640px; margin: 0 auto; }

footer.bottom { padding: 3rem 0 4rem; font-size: .9rem; color: var(--sub); }
footer.bottom .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
footer.bottom p { margin: 0 0 .8rem; max-width: 46rem; }
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
footer.bottom nav a { color: var(--sub); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 3rem; }
  .cols { grid-template-columns: 1fr; gap: 1.75rem; }
  footer.bottom .wrap { grid-template-columns: 1fr; gap: 1rem; }
  .slip iframe { height: 520px; }
}
@media (max-width: 560px) {
  header.top nav a.hide-sm { display: none; }
  .hero { padding-top: 2rem; }
  .choice { grid-template-columns: 1fr; }
  .plans th, .plans td { padding: .7rem .5rem; font-size: .92rem; }
  .plans td.c, .plans th.c { width: 3.6rem; }
  .plans .pname { font-size: 1.05rem; }
  .plans .price { font-size: .78rem; }
  .plan-cta { justify-content: stretch; }
  .plan-cta .btn { flex: 1 1 100%; text-align: center; }
  .hero h1 .gapline { white-space: normal; }
  .join .btn { width: 100%; }
}
