/* Afterwork One: The Project Kit landing page
   Fonts and colors come from the product source files (kit-v2.1.css). */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url("assets/fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("assets/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-display: swap; src: url("assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #152B3C;
  --coral: #F0785A;
  --ivory: #F7F4EC;
  --logo-ivory: #F7F4ED;   /* background baked into the logo file */
  --teal: #55786F;
  --teal-ink: #46655D;     /* darker teal for small text: 5.8:1 on ivory */
  --muted: #4E5D68;
  --paper: #FFFFFF;
  --rule: rgba(21, 43, 60, 0.16);
  --rule-strong: rgba(21, 43, 60, 0.4);
  --focus: var(--navy);

  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --gutter: 20px;
  --header-h: 64px;
  --section-y: clamp(48px, 8vw, 112px);
  --shadow-sheet: 0 1px 2px rgba(21, 43, 60, 0.10), 0 18px 40px -14px rgba(21, 43, 60, 0.30);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--sans); margin: 0; color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--navy); color: var(--ivory); padding: 10px 16px;
  font-family: var(--sans); font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-align: center; text-decoration: none;
  border: 2px solid transparent; border-radius: 4px;
  cursor: pointer;
}
.btn-primary, .btn-small { background: var(--coral); color: var(--navy); border-color: var(--coral); }
.btn-primary:hover, .btn-small:hover { background: #F48C72; border-color: #F48C72; }
.btn-large { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-small { min-height: 44px; padding: 8px 14px; font-size: 0.9375rem; white-space: nowrap; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--ivory); }

/* Checkout not configured: links have no href and are marked aria-disabled */
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; filter: saturate(0.5); }
.btn[aria-disabled="true"]:hover { background: inherit; }
.btn-primary[aria-disabled="true"]:hover, .btn-small[aria-disabled="true"]:hover { background: var(--coral); border-color: var(--coral); }
.btn-secondary[aria-disabled="true"]:hover { background: transparent; color: var(--navy); }

.link-arrow {
  font-family: var(--sans); font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px;
}
.link-arrow::after { content: "→"; margin-left: 0.4em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--logo-ivory);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; min-height: 44px; flex: none; }
.brand img { height: 46px; width: auto; }
.nav-desktop { display: none; margin-left: auto; }
.nav-desktop ul { display: flex; gap: 4px; list-style: none; }
.nav-desktop a, .nav-mobile a {
  font-family: var(--sans); font-weight: 500; font-size: 0.9688rem; text-decoration: none;
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
}
.nav-desktop a:hover, .nav-mobile a:hover { text-decoration: underline; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.nav-mobile summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-family: var(--sans); font-weight: 700; font-size: 0.9375rem;
  border: 1.5px solid var(--navy); border-radius: 4px;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--navy); color: var(--ivory); }
.nav-mobile nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--logo-ivory); border-bottom: 1px solid var(--rule);
  box-shadow: 0 12px 24px -16px rgba(21, 43, 60, 0.4);
}
.nav-mobile ul { list-style: none; padding: 8px var(--gutter) 16px; }
.nav-mobile li + li { border-top: 1px solid var(--rule); }
.nav-mobile a { font-size: 1.0625rem; min-height: 48px; padding: 0; }

@media (max-width: 379px) {
  .header-inner { gap: 8px; }
  .brand img { height: 42px; }
  .btn-small { padding: 8px 10px; font-size: 0.875rem; }
  .nav-mobile summary { padding: 0 10px; font-size: 0.875rem; }
}
@media (min-width: 960px) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
  .header-actions { margin-left: 8px; }
}

/* ---------- Shared section bits ---------- */
.section { padding: var(--section-y) 0; border-top: 1px solid var(--rule); }
.section-head { margin-bottom: clamp(24px, 4vw, 48px); max-width: 760px; }
.kicker {
  font-family: var(--sans); font-weight: 700; font-size: 0.875rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-ink);
  margin-bottom: 12px;
}
h2 { font-weight: 700; font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3.125rem); line-height: 1.08; letter-spacing: -0.015em; }
.section-sub { margin: 16px 0 0; color: var(--muted); max-width: 60ch; }
.note { font-style: italic; color: var(--muted); font-size: 0.9375rem; max-width: 70ch; margin: 24px 0 0; }
.tag {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 0.8125rem; line-height: 1.3;
  color: var(--teal-ink); border: 1.5px solid var(--teal); border-radius: 3px; padding: 2px 8px;
  white-space: nowrap;
}
.tag-inline { font-size: 0.75rem; padding: 0 6px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 96px) 0 clamp(48px, 7vw, 104px); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow { font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--teal-ink); margin-bottom: 16px; }
.eyebrow-sep { margin: 0 4px; }
h1 {
  font-weight: 800; font-size: clamp(2.75rem, 1.4rem + 5.6vw, 5.25rem);
  line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 24px;
}
.lede { font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.375rem); line-height: 1.5; max-width: 34ch; color: var(--navy); margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 16px; }
.facts-line { font-family: var(--sans); font-weight: 500; font-size: 0.9688rem; color: var(--navy); margin-bottom: 4px; }
.facts-line span { white-space: nowrap; }
.fine { font-size: 0.9375rem; color: var(--muted); margin: 0; }

/* Product mockups (real PDF pages composed in design/mockups): photo-like cards */
.mockup { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px var(--rule); }

.hero-art { margin: 0; width: 100%; max-width: 640px; justify-self: center; }
.hero-art figcaption { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); margin-top: 12px; line-height: 1.4; }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .hero-art { max-width: 560px; justify-self: end; }
}

/* ---------- Situations ---------- */
.situation-list { list-style: none; display: grid; gap: 0; counter-reset: sit; }
.situation-list li { counter-increment: sit; padding: 18px 0 20px; border-top: 2px solid var(--navy); }
.situation-list li::before {
  content: "0" counter(sit); display: block;
  font-family: var(--sans); font-weight: 800; font-size: 0.875rem; color: var(--teal-ink); margin-bottom: 12px;
}
.situation-list h3 { font-size: 1.375rem; line-height: 1.2; margin-bottom: 12px; }
.situation-list p { margin-bottom: 12px; }
.page-ref { font-family: var(--sans); font-weight: 500; font-size: 0.9375rem; color: var(--teal-ink); margin: 0; }
.page-ref::before { content: "→ "; }
@media (min-width: 768px) {
  .situation-list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* ---------- Method: four steps (stair motif from the cover) ---------- */
.stairs { list-style: none; display: grid; gap: 8px; }
.stair { background: var(--navy); color: var(--ivory); padding: 20px 20px 22px; }
.stair h3 { color: inherit; font-weight: 800; font-size: 1.75rem; line-height: 1.1; margin: 2px 0 8px; }
.stair p { margin: 0; font-size: 1rem; line-height: 1.45; }
.stair-num { font-family: var(--sans); font-weight: 700; font-size: 0.875rem; opacity: 0.9; }
.stair-4 { background: var(--coral); color: var(--navy); }
/* Small screens: widths grow step by step, like the cover's stairs turned on their side */
.stair-1 { width: 82%; }
.stair-2 { width: 88%; }
.stair-3 { width: 94%; }
.stair-4 { width: 100%; }
@media (min-width: 720px) {
  .stairs { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
  .stair { width: auto; padding: 20px 18px 28px; }
  .stair-1 { margin-top: 120px; }
  .stair-2 { margin-top: 80px; }
  .stair-3 { margin-top: 40px; }
}

.bookmark-callout {
  margin-top: 24px; padding: 18px 0 0; border-top: 4px solid var(--coral);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px;
}
.bookmark-callout h3 { font-size: 1.1875rem; line-height: 1.3; }
.bookmark-fields { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.bookmark-fields li {
  font-family: var(--sans); font-size: 0.9688rem; line-height: 1.3;
  background: var(--paper); border: 1px solid var(--rule-strong); padding: 6px 12px;
}
.bookmark-callout p { margin: 0; color: var(--muted); font-size: 1rem; flex-basis: 100%; }

/* ---------- Demo (Dana, fictional) ---------- */
.example-flag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 20px 0 0; color: var(--muted); font-size: 1rem; }
.demo-steps { list-style: none; display: grid; gap: 0; counter-reset: demo; border-top: 2px solid var(--navy); }
.demo-step { counter-increment: demo; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--rule); position: relative; }
.demo-step::before {
  content: counter(demo); position: absolute; left: 0; top: 16px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--ivory); font-family: var(--sans); font-weight: 800; font-size: 0.8125rem;
}
.demo-step-bookmark::before { background: var(--coral); color: var(--navy); }
.demo-label { margin: 0 0 2px; font-family: var(--sans); font-weight: 700; font-size: 0.875rem; color: var(--teal-ink); letter-spacing: 0.02em; }
.demo-value { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 1.25rem; line-height: 1.25; }
.demo-source { margin: 20px 0 0; font-size: 0.9688rem; color: var(--muted); }
.demo-source a { font-family: var(--sans); font-weight: 700; color: var(--navy); }
@media (min-width: 900px) {
  .demo-steps { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
  .demo-step { border-bottom: 0; padding: 20px 24px 22px 0; }
  .demo-step::before { position: static; margin-bottom: 12px; }
  .demo-step + .demo-step { padding-left: 24px; border-left: 1px solid var(--rule); }
}

/* ---------- What's inside ---------- */
.tool-groups { display: grid; gap: 28px; }
.tool-group h3 { font-size: 1.25rem; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.tool-group ul { list-style: none; }
.tool-group li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.5; }
.tool-group strong { font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; }
.pg { font-family: var(--sans); font-weight: 500; font-size: 0.875rem; color: var(--teal-ink); white-space: nowrap; }
@media (min-width: 900px) {
  .tool-groups { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.also { margin-top: 28px; max-width: 900px; }
.also strong { font-family: var(--sans); }
.spec-list { list-style: none; display: grid; gap: 8px 32px; margin-top: 20px; font-family: var(--sans); font-weight: 500; font-size: 0.9375rem; line-height: 1.4; }
.spec-list li { position: relative; padding-left: 18px; }
.spec-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px; background: var(--teal); }
@media (min-width: 768px) { .spec-list { grid-template-columns: repeat(2, minmax(0, max-content)); } }

/* ---------- Preview gallery ---------- */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; } }
.thumb { display: block; background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow-sheet); cursor: zoom-in; }
.thumb:hover { outline: 2px solid var(--rule-strong); outline-offset: 2px; }
.thumb:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.thumb-cap { margin: 14px 0 0; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.35; }
.thumb-cap strong { display: block; font-weight: 700; }
.thumb-cap > span { color: var(--muted); font-weight: 500; font-size: 0.875rem; }

.choice { margin-top: clamp(32px, 5vw, 56px); border-top: 2px solid var(--navy); padding-top: 24px; }
.choice-title { font-size: 1.375rem; line-height: 1.25; margin-bottom: 16px; }
.choice-grid { display: grid; gap: 12px; }
.choice-item { background: var(--paper); border: 1px solid var(--rule); padding: 16px 18px; }
.choice-item p { margin: 0; font-size: 1rem; }
.choice-item .choice-name { font-family: var(--sans); font-weight: 800; font-size: 1.25rem; margin-bottom: 8px; }
.choice-name span { font-weight: 500; font-size: 0.875rem; color: var(--teal-ink); margin-left: 6px; }
.choice-or { margin: 0; font-family: var(--sans); font-weight: 800; font-size: 1.125rem; color: var(--teal-ink); text-align: center; align-self: center; }
.choice-note { margin: 20px 0 0; font-family: var(--sans); font-weight: 700; }
@media (min-width: 768px) {
  .choice-grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; }
}

/* ---------- How to start ---------- */
.start-grid { display: grid; gap: 8px; }
.start-steps { list-style: none; counter-reset: st; }
.start-steps li { counter-increment: st; position: relative; padding: 16px 0 16px 56px; border-top: 1px solid var(--rule); }
.start-steps li:last-child { border-bottom: 1px solid var(--rule); }
.start-steps li::before {
  content: counter(st); position: absolute; left: 0; top: 14px;
  width: 38px; height: 38px; display: grid; place-items: center;
  font-family: var(--sans); font-weight: 800; font-size: 1.125rem;
  background: var(--navy); color: var(--ivory);
}
.start-steps li:last-child::before { background: var(--coral); color: var(--navy); }
.start-steps h3 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 6px; }
.start-steps p { margin: 0; font-size: 1rem; }
@media (min-width: 960px) {
  .start-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
}

/* ---------- Offer ---------- */
.offer { background: var(--navy); color: var(--ivory); border-top: 0; --focus: var(--ivory); }
.offer h2 { color: var(--ivory); font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); margin-bottom: 24px; }
.kicker-light { color: #B9CEC8; }
.offer-grid { display: grid; gap: 28px; align-items: center; }
.offer-art { width: 100%; max-width: 560px; }
.offer-art .mockup { box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.6); }
.offer-list { list-style: none; margin-bottom: 24px; }
.offer-list li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid rgba(247, 244, 236, 0.18); font-size: 1.0625rem; line-height: 1.45; }
.offer-list li::before {
  content: ""; position: absolute; left: 2px; top: 17px; width: 14px; height: 8px;
  border-left: 3px solid var(--coral); border-bottom: 3px solid var(--coral); transform: rotate(-45deg);
}
.price-row { margin-bottom: 24px; }
.price { display: flex; align-items: center; gap: 16px; margin: 0; }
.price-amount { font-family: var(--sans); font-weight: 800; font-size: clamp(3.5rem, 2.6rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
.price-terms { font-family: var(--sans); font-weight: 500; font-size: 1rem; line-height: 1.35; }
.offer-fine { margin: 16px 0 0; font-size: 0.9375rem; color: rgba(247, 244, 236, 0.82); }
.offer .btn[aria-disabled="true"] { opacity: 0.55; }
@media (min-width: 900px) {
  .offer-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; }
  .offer-art { max-width: 440px; justify-self: center; }
}

/* ---------- Optional companions (secondary) ---------- */
.companions .section-head h2 { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem); }
.companions .kicker { color: var(--navy); }
.companion-grid { display: grid; gap: 24px; }
.companion { padding: 24px 0 8px; border-top: 1px solid var(--rule-strong); }
.companion .mockup { margin-bottom: 20px; max-width: 440px; }  /* never larger than the main kit's image */
.companion h3 { font-size: 1.25rem; line-height: 1.2; }
.companion-meta { font-family: var(--sans); font-weight: 500; font-size: 0.9375rem; color: var(--teal-ink); margin: 4px 0 12px; }
.companion-body > p { font-size: 1rem; }
.companion-items { list-style: none; margin: 0 0 16px; font-family: var(--sans); font-weight: 500; font-size: 0.9375rem; line-height: 1.35; }
.companion-items li { position: relative; padding: 4px 0 4px 16px; }
.companion-items li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 7px; height: 7px; background: var(--teal); }
.companion-pace { font-style: italic; border-left: 3px solid var(--teal); padding-left: 12px; }
.companion .btn { margin-top: 4px; font-size: 0.9375rem; }
@media (min-width: 768px) {
  .companion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 8px; }
.faq-list details { border-bottom: 1px solid var(--rule-strong); }
.faq-list details:first-child { border-top: 1px solid var(--rule-strong); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  min-height: 56px; display: flex; align-items: center; padding: 14px 44px 14px 0;
  font-family: var(--sans); font-weight: 700; font-size: 1.125rem; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-weight: 500; font-size: 1.75rem; line-height: 1; color: var(--teal-ink);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 20px; max-width: 64ch; font-size: 1rem; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
}

/* ---------- Closing + footer ---------- */
.closing { padding: var(--section-y) 0; border-top: 1px solid var(--rule); text-align: center; }
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.closing h2 { font-weight: 800; letter-spacing: -0.025em; }
.closing .facts-line { margin: 0; }

.site-footer { background: var(--logo-ivory); border-top: 1px solid var(--rule); padding: 40px 0 48px; }
.footer-grid { display: grid; gap: 24px; }
.footer-brand img { width: 108px; }
.footer-text { font-size: 0.9375rem; color: var(--muted); max-width: 70ch; }
.footer-text p { margin-bottom: 12px; }
.footer-links { font-family: var(--sans); font-weight: 500; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links[hidden] { display: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-small { font-size: 0.875rem; line-height: 1.8; }
.footer-small a { color: var(--muted); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 140px minmax(0, 1fr); gap: 40px; }
}

/* ---------- Page viewer (dialog) ---------- */
.viewer {
  padding: 0; border: 0; margin: auto;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  background: var(--ivory); color: var(--navy);
  display: none; flex-direction: column;
}
.viewer[open] { display: flex; }
.viewer::backdrop { background: rgba(21, 43, 60, 0.82); }
@media (min-width: 900px) {
  .viewer { width: min(1040px, 94vw); height: 94vh; height: 94dvh; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4); }
}
.viewer-bar {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--rule); background: var(--logo-ivory);
}
.viewer-title { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; line-height: 1.3; flex: 1 1 220px; }
.viewer-controls { display: flex; gap: 6px; }
.vbtn {
  min-width: 44px; min-height: 44px; padding: 0 12px;
  font-family: var(--sans); font-weight: 700; font-size: 0.9375rem;
  background: transparent; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 4px; cursor: pointer;
}
.vbtn:hover, .vbtn[aria-pressed="true"] { background: var(--navy); color: var(--ivory); }
.vbtn-close { background: var(--navy); color: var(--ivory); }
.viewer-stage { flex: 1 1 auto; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 16px; background: #E9E5DB; }
.viewer-img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; background: var(--paper); box-shadow: var(--shadow-sheet); margin: auto; }
.viewer-img.is-loading { visibility: hidden; }
.viewer.is-zoomed .viewer-stage { display: block; }
.viewer.is-zoomed .viewer-img { max-height: none; max-width: none; width: 1400px; margin: 0; }

/* Local preview notice (only shown on localhost; never part of the published copy) */
.dev-notice {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 520px;
  background: #FFF6D6; color: #3B2F00; border: 1px solid #C9A400; border-radius: 6px;
  padding: 12px 44px 12px 14px; font-family: var(--sans); font-size: 0.875rem; line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.dev-notice p { margin: 0; }
.dev-notice button {
  position: absolute; right: 6px; top: 6px; width: 32px; height: 32px;
  background: transparent; border: 0; font-size: 1.25rem; cursor: pointer; color: inherit;
}

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

@media print {
  .site-header, .dev-notice, .viewer { display: none !important; }
}
