/* ==========================================================================
   momisit — practical reviews and guides, organised by the moment you are in
   Palette: warm paper, deep berry, garden leaf, butter highlight.
   Type:    Bricolage Grotesque (headlines, with personality) over Karla.
   Motif:   the moment card — a situation you recognise, not a product aisle.
   ========================================================================== */

:root {
  --paper:    #fdf8f2;
  --paper-2:  #f6ebdf;
  --paper-3:  #efe0d0;
  --card:     #ffffff;

  --ink:      #2a252f;
  --ink-soft: #4e4756;
  --grey:     #6c6475;

  --berry:    #a82f52;
  --berry-dk: #7d2440;
  --berry-lt: #fbe9ee;

  --leaf:     #3d7354;
  --leaf-lt:  #e6f0e8;

  --butter:   #f2c14e;
  --rule:     #e5d6c6;

  --shell:   1120px;
  --measure: 64ch;

  --step--1: clamp(.83rem, .8rem + .14vw, .89rem);
  --step-0:  clamp(1.02rem, .99rem + .18vw, 1.1rem);
  --step-1:  clamp(1.18rem, 1.1rem + .36vw, 1.36rem);
  --step-2:  clamp(1.4rem, 1.26rem + .64vw, 1.78rem);
  --step-3:  clamp(1.7rem, 1.42rem + 1.2vw, 2.4rem);
  --step-4:  clamp(2.1rem, 1.55rem + 2.4vw, 3.5rem);

  --gap:  clamp(1.4rem, 1rem + 1.8vw, 2.6rem);
  --band: clamp(3.2rem, 2.2rem + 4vw, 5.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: Karla, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display, .wordmark-name {
  font-family: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.022em;
  line-height: 1.1;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
h4 { font-size: var(--step-0); font-weight: 700; }

p, ul, ol, dl, address, figure, table { margin: 0 0 1.1em; }
p { max-width: var(--measure); }
address { font-style: normal; }

a { color: var(--berry-dk); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--berry); }

:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; border-radius: 3px; }
img, svg { max-width: 100%; }

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: .7rem 1.1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

/* --- Masthead ------------------------------------------------------------ */

.masthead { background: var(--paper); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 50; }
.masthead-inner { display: flex; align-items: center; gap: 1.4rem; min-height: 74px; flex-wrap: wrap; }

.wordmark { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; margin-right: auto; }
.wordmark-mark { width: 34px; height: 34px; flex: none; }
.wordmark-name { font-size: 1.5rem; margin: 0; line-height: 1; color: var(--ink); }
.wordmark-sub { display: block; font-size: .72rem; color: var(--grey); line-height: 1.3; margin-top: .15rem; }

.sitenav ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.sitenav a {
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600;
  padding: .35rem 0; display: block; border-bottom: 3px solid transparent;
}
.sitenav a:hover { border-bottom-color: var(--butter); }
.sitenav a[aria-current] { border-bottom-color: var(--berry); }

.nav-toggle {
  display: none; align-items: center; gap: .55rem;
  background: none; border: 2px solid var(--ink); border-radius: 6px;
  color: var(--ink); font: 700 .9rem Karla, sans-serif; padding: .45rem .8rem; cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 3px; }
.nav-toggle-bars span { width: 17px; height: 2px; background: currentColor; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .sitenav { flex-basis: 100%; display: none; padding-bottom: 1rem; }
  .sitenav.is-open { display: block; }
  .sitenav ul { flex-direction: column; gap: 0; }
  .sitenav a { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
}

/* --- Bands --------------------------------------------------------------- */

.band { padding-block: var(--band); }
.band-warm { background: var(--paper-2); }
.band-ink  { background: var(--ink); color: #d9d2e0; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink a { color: var(--butter); }

.band-head { max-width: 46ch; margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.band-head p { font-size: var(--step-1); line-height: 1.5; }

/* --- Hero ---------------------------------------------------------------- */

.hero { padding-block: clamp(2.6rem, 1.8rem + 4vw, 4.6rem) clamp(2rem, 4vw, 3.4rem); }
.hero h1 { max-width: 17ch; }
.hero-sub { font-size: var(--step-1); line-height: 1.55; max-width: 48ch; margin-top: 1.1rem; }

.hero-promise {
  display: flex; flex-wrap: wrap; gap: .5rem .7rem;
  margin: 1.6rem 0 0; padding: 0; list-style: none;
}
.hero-promise li {
  font-size: .85rem; font-weight: 700; color: var(--leaf);
  background: var(--leaf-lt); border: 1px solid #c9ddcf;
  border-radius: 999px; padding: .3rem .85rem;
}

/* --- Moment picker — the signature element ------------------------------- */

.moments {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  background: var(--rule);
  border: 2px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.moment {
  background: var(--card);
  padding: 1.35rem 1.3rem 1.5rem;
  display: block; text-decoration: none; color: inherit;
  position: relative;
}
.moment:hover, .moment:focus-visible { background: var(--berry-lt); }
.moment-title {
  display: block;
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-weight: 700; font-size: 1.06rem; color: var(--ink);
  margin: 0 0 .35rem; line-height: 1.25;
}
.moment p { font-size: .91rem; color: var(--grey); margin: 0; max-width: none; }
.moment-count { display: block; margin-top: .8rem; font-size: .8rem; font-weight: 700; color: var(--berry-dk); }

/* --- Entry list ---------------------------------------------------------- */

.entries { list-style: none; margin: 0; padding: 0; }
.entry {
  display: grid; gap: .5rem 1.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}
.entries .entry:last-child { border-bottom: 1px solid var(--rule); }
@media (max-width: 620px) { .entry { grid-template-columns: 1fr; } }

.entry h3 { margin: 0 0 .25rem; }
.entry p { margin: 0; font-size: .95rem; max-width: 58ch; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .45rem; }

.pill {
  font-size: .76rem; font-weight: 700; border-radius: 999px;
  padding: .22rem .7rem; white-space: nowrap;
}
.pill-cat    { background: var(--paper-3); color: var(--ink-soft); }
.pill-live   { background: var(--leaf-lt);  color: var(--leaf); }
.pill-soon   { background: var(--paper-2);  color: var(--grey); border: 1px dashed var(--rule); }

/* --- Verdict panel (review template) ------------------------------------- */

.verdict {
  border: 2px solid var(--ink); border-radius: 10px;
  background: var(--card); overflow: hidden; margin-bottom: 2rem;
}
.verdict-head { background: var(--ink); color: #fff; padding: .7rem 1.2rem; font-weight: 700; }
.verdict-body { padding: 1.3rem 1.2rem; display: grid; gap: 1.1rem; }
.verdict-row { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
@media (max-width: 620px) { .verdict-row { grid-template-columns: 1fr; gap: .2rem; } }
.verdict-row dt { font-weight: 700; color: var(--ink); }
.verdict-row dd { margin: 0; }

/* --- Disclosure ---------------------------------------------------------- */

.disclosure {
  background: var(--butter); color: #40320a;
  border-radius: 8px; padding: .85rem 1.1rem;
  font-size: .9rem; margin-bottom: 1.8rem;
}
.disclosure p { margin: 0; max-width: none; }
.disclosure a { color: #40320a; }

/* --- Newsletter ---------------------------------------------------------- */

.signup {
  background: var(--ink); color: #ded7e4; border-radius: 12px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.signup h2 { color: #fff; max-width: 20ch; }
.signup p { color: #b7aec0; max-width: 48ch; }
.signup-form { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.signup-form input[type="email"] {
  flex: 1 1 16rem; font: inherit; padding: .75rem .9rem;
  border: 2px solid transparent; border-radius: 8px; background: #fff; color: var(--ink);
}
.signup-form input:focus { border-color: var(--butter); }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-block; font-family: Karla, sans-serif; font-weight: 700;
  font-size: .95rem; padding: .72rem 1.4rem; border-radius: 8px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-solid { background: var(--berry); color: #fff; border-color: var(--berry); }
.btn-solid:hover { background: var(--berry-dk); color: #fff; border-color: var(--berry-dk); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-butter { background: var(--butter); color: #40320a; border-color: var(--butter); }
.btn-butter:hover { background: #f7d072; color: #40320a; }

/* --- Steps / method ------------------------------------------------------ */

.method { counter-reset: m; list-style: none; margin: 0; padding: 0; }
.method li {
  counter-increment: m;
  display: grid; grid-template-columns: 2.8rem 1fr; gap: 1.1rem;
  padding: 1.35rem 0; border-top: 1px solid var(--rule);
}
.method li::before {
  content: counter(m);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.5rem;
  color: var(--berry); line-height: 1.1;
}
.method h3 { margin-bottom: .25rem; }
.method p { margin: 0; }

/* --- Forms --------------------------------------------------------------- */

.contact-grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  padding: .68rem .8rem; border: 2px solid var(--rule); border-radius: 8px; background: #fff;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--berry); }
.field-error { border-color: var(--berry-dk) !important; }
.field-msg { display: block; font-size: .83rem; font-weight: 700; color: var(--berry-dk); margin-top: .3rem; }
.hp { position: absolute; left: -9999px; }

.notice { border-left: 5px solid var(--leaf); background: var(--leaf-lt); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; margin-bottom: 1.6rem; }
.notice-bad { border-left-color: var(--berry); background: var(--berry-lt); }
.notice p { margin: 0; }

.sidepanel { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 10px; padding: 1.4rem 1.3rem; align-self: start; }
.sidepanel h3 { font-size: 1rem; margin-bottom: .8rem; }
.sidepanel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.sidepanel li { font-size: .92rem; line-height: 1.5; }

/* --- Footer -------------------------------------------------------------- */

.colophon { background: var(--ink); color: #b7aec0; padding-block: clamp(2.8rem, 5vw, 4.2rem); font-size: .93rem; }
.colophon-cols { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.colophon-col h2 { font-size: .85rem; color: var(--butter); font-weight: 700; margin-bottom: .75rem; letter-spacing: .01em; }
.colophon-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.colophon a { color: #d4cbdb; text-decoration: none; }
.colophon a:hover { color: var(--butter); text-decoration: underline; }
.colophon-fine { margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: #8c8396; max-width: 70ch; }

/* --- Utilities ----------------------------------------------------------- */

.lede { font-size: var(--step-1); line-height: 1.55; max-width: 52ch; }
.page-head { padding-block: clamp(2.4rem, 4.5vw, 3.8rem) clamp(1.2rem, 2.5vw, 2rem); }
.page-head h1 { max-width: 19ch; }
.cols-2 { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.mt { margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.anchor { scroll-margin-top: 5.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
