/* municontext.com. Every text/background pair below is one of the computed pairs in
   briefs/02-BRAND.md. Do not add a new text pair without computing it. */

:root {
  --ink: #13262A; --paper: #F7F4EE; --white: #FFFFFF; --slate: #4F5D61;
  --teal: #0B6E69; --tint: #DCEDEA; --marigold: #EFA53A; --rule: #D9D3C7;
  --night: #0E1C1F; --night-surface: #17292D; --chalk: #F3EFE7; --fog: #A7B5B3;
  --teal-light: #5CC8BC;

  /* Light theme roles */
  --bg: var(--paper);            /* ink 14.29, slate 6.23, teal 5.55 */
  --text: var(--ink);
  --muted: var(--slate);
  --link: var(--teal);
  --focus: var(--teal);
  --surface: var(--white);       /* ink 15.69, slate 6.84, teal 6.09 */
  --surface-text: var(--ink);
  --surface-muted: var(--slate);
  --surface-label: var(--teal);
  --inset: var(--tint);          /* ink 12.96, teal 5.03 */
  --inset-text: var(--ink);
  --border: var(--rule);
  --btn-bg: var(--teal);         /* white on teal 6.09 */
  --btn-text: var(--white);
  --logo: var(--ink);

  --font-head: "Schibsted Grotesk", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, "Segoe UI", Arial, sans-serif;
  --wrap: 1140px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night);              /* chalk 15.20, fog 8.22, teal-light 8.67 */
    --text: var(--chalk);
    --muted: var(--fog);
    --link: var(--teal-light);
    --focus: var(--teal-light);
    --surface: var(--night-surface); /* chalk 13.16, fog 7.12. No links on dark cards. */
    --surface-text: var(--chalk);
    --surface-muted: var(--fog);
    --surface-label: var(--fog);
    --inset: var(--night);           /* chalk 15.20 */
    --inset-text: var(--chalk);
    --border: #2C4044;               /* borders only, never text */
    --btn-bg: var(--teal-light);     /* night on teal-light 8.67 */
    --btn-text: var(--night);
    --logo: var(--chalk);
    color-scheme: dark;
  }
}

@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(17px, 1rem + 0.25vw, 19px);
  line-height: 1.55;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.15rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img, svg, video { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--btn-bg); color: var(--btn-text);
  padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--link);
  margin: 0 0 14px;
}
.lede { font-size: 1.12em; color: var(--muted); }
.muted { color: var(--muted); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { color: var(--logo); display: inline-block; padding: 8px 0; }
.logo img { width: 176px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.site-nav a { color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--link); text-decoration: underline; }
@media (max-width: 859px) { .site-nav li:not(:last-child) { display: none; } }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { border-top: 1px solid var(--border); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 88px); }
.hero h1 { margin-bottom: 24px; }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.4fr 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px;
  border-radius: 8px; font-family: var(--font-head); font-weight: 700; font-size: 16px;
  text-decoration: none; border: 2px solid var(--btn-bg);
}
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-secondary { background: transparent; color: var(--link); border-color: var(--link); }
.btn:hover { text-decoration: underline; }

/* Cards */
.card {
  background: var(--surface); color: var(--surface-text);
  border: 1px solid var(--border); border-radius: 14px;
  padding: clamp(22px, 3vw, 34px);
}
.card .label {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--surface-label); margin: 0 0 10px;
}
.card .muted, .card small { color: var(--surface-muted); }

/* Sample finding */
.finding { box-shadow: 0 18px 40px -24px rgba(19, 38, 42, 0.35); }
.finding h2 { font-size: 1.35rem; margin-bottom: 4px; }
.finding .note { font-size: 14px; color: var(--surface-muted); margin: 0 0 18px; }
.quote {
  background: var(--inset); color: var(--inset-text);
  border-left: 4px solid var(--border); border-radius: 8px;
  padding: 14px 16px; margin: 0 0 12px;
}
.quote p { margin: 0; }
.quote .where { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; margin-bottom: 4px; }
.finding dl { margin: 18px 0 0; display: grid; gap: 10px; }
.finding dt { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.finding dd { margin: 0; color: var(--surface-muted); font-size: 16px; }

/* Reel */
.reel-frame {
  position: relative; aspect-ratio: 16 / 9; background: var(--night);
  border: 1px solid var(--border); border-bottom: 0;
  border-radius: 14px 14px 0 0; overflow: hidden;
}
.reel-frame video { width: 100%; height: 100%; object-fit: cover; background: var(--night); }
.reel-missing {
  display: none; position: absolute; inset: 0; place-content: center; text-align: center;
  padding: 24px; color: var(--chalk); background: var(--night);
}
.reel-missing img { width: 56px; height: 56px; margin: 0 auto 16px; }
.reel-missing p { margin: 0 auto; }
.reel-missing .sub { color: var(--fog); font-size: 16px; margin-top: 6px; }
.reel-frame.is-missing video { visibility: hidden; }
.reel-frame.is-missing .reel-missing { display: grid; }
.disclosure {
  background: var(--teal); color: var(--chalk); /* chalk on teal 5.31 */
  margin: 0; max-width: none; padding: 12px 18px; border-radius: 0 0 14px 14px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
}

/* Problem */
.two-col { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* Products */
.products { display: grid; gap: 24px; }
@media (min-width: 900px) { .products { grid-template-columns: 1fr 1fr; } }
.product { display: flex; flex-direction: column; }
.price { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); letter-spacing: -0.025em; line-height: 1; margin: 8px 0 6px; }
.price small { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.product ul { margin: 0; padding-left: 1.2em; }
.product li { margin-bottom: 8px; }
.product li::marker { color: var(--surface-muted); }
.callout {
  background: var(--inset); color: var(--inset-text); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 22px; margin-top: 24px; max-width: none;
}
.callout p { margin: 0; max-width: none; }

/* How we work */
.rules { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.rules li { padding: 16px 0 16px 28px; border-top: 1px solid var(--border); position: relative; }
.rules li:last-child { border-bottom: 1px solid var(--border); }
.rules li::before { content: ""; position: absolute; left: 4px; top: calc(16px + 0.72em); width: 10px; height: 2px; background: var(--link); }

/* About */
.about { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 860px) { .about { grid-template-columns: 300px 1fr; } }
.portrait { margin: 0; max-width: 300px; }
.portrait-slot {
  aspect-ratio: 4 / 5; border-radius: 14px; background: var(--inset);
  border: 1px solid var(--border); display: grid; place-items: center;
}
.portrait-slot img { width: 88px; height: 88px; }
.portrait figcaption { margin-top: 12px; font-family: var(--font-head); font-weight: 700; }
.portrait figcaption span { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 16px; }
@media (max-width: 859px) {
  .portrait { display: flex; align-items: center; gap: 16px; }
  .portrait-slot { width: 96px; flex: none; aspect-ratio: 1; }
  .portrait-slot img { width: 48px; height: 48px; }
  .portrait figcaption { margin-top: 0; }
}

/* Does not sell: night band in both themes. Chalk, fog and marigold on night are computed. */
.band { background: var(--night); color: var(--chalk); --focus: var(--teal-light); }
.band .eyebrow { color: var(--marigold); }
.band .lede { color: var(--fog); }
.band + section, section + .band { border-top: 0; }
@media (prefers-color-scheme: dark) { section.band { border-block: 1px solid var(--border); } }
.nots { max-width: 760px; font-size: 1.15em; }
.band .section-head { margin-bottom: 20px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; color: var(--link); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 12px; }

/* Contact */
.contact { text-align: left; }
.contact-line { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); margin: 8px 0 16px; }
a.contact-email:not([href]) { color: var(--muted); text-decoration: none; cursor: default; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer p { margin: 0; }
.site-footer .logo img { width: 132px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; }
