/* Modify — marketing site
   Palette: ink on paper, thermal-stencil violet accent. Light is paper-first;
   dark is the ink side of the same sheet. Every color routes through tokens so
   both themes resolve as a set. */

:root {
  color-scheme: light;
  --ink: #17141a;        /* primary text + heavy rules */
  --paper: #f6f5f2;      /* page ground */
  --raised: #fcfbf9;     /* cells and plates */
  --stencil: #5b1ec8;    /* thermal-stencil violet — the primary accent */
  --stencil-hover: #4a16a6;
  --gold: #7d5e0d;       /* old gold — reserved for money moments and seals */
  --steel: #5d5a66;      /* secondary text */
  --line: #dcd9e2;       /* minor hairlines */
}

/* The band inverts to the ink ground in light theme (and to paper in dark),
   so its accents must come from the OPPOSITE theme's set or they vanish. */
.band { --stencil: #9d5cff; --stencil-hover: #b27eff; --gold: #d9a83c; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #ece9f1;
    --paper: #141218;
    --raised: #1c1922;
    --stencil: #9d5cff;
    --stencil-hover: #b27eff;
    --gold: #d9a83c;
    --steel: #9b96a6;
    --line: #2b2833;
  }
  :root:not([data-theme="light"]) .band {
    --stencil: #5b1ec8; --stencil-hover: #4a16a6; --gold: #7d5e0d;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ece9f1;
  --paper: #141218;
  --raised: #1c1922;
  --stencil: #9d5cff;
  --stencil-hover: #b27eff;
  --gold: #d9a83c;
  --steel: #9b96a6;
  --line: #2b2833;
}
:root[data-theme="dark"] .band {
  --stencil: #5b1ec8; --stencil-hover: #4a16a6; --gold: #7d5e0d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; }

a { color: var(--stencil); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--stencil-hover); }

:focus-visible { outline: 2px solid var(--stencil); outline-offset: 2px; }

.wrap { max-width: 1100px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }

/* ---- type roles ---- */

.display {
  font-family: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
}

.mono, .stamp, .btn, nav a {
  font-family: "IBM Plex Mono", "Courier New", monospace;
}

.eyebrow {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel);
}

/* stamped label — border like a rubber stamp, stencil-violet */
.stamp {
  display: inline-block;
  border: 1.5px solid var(--stencil);
  color: var(--stencil);
  padding: 0.3em 0.75em;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.stamp--gold { border-color: var(--gold); color: var(--gold); }

/* ---- header ---- */

.site-header {
  border-bottom: 2px solid var(--ink);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}
.brand .mark-bg { fill: var(--ink); }
.brand .mark-m { fill: var(--paper); }
.brand-name {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.8rem);
}
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.site-header nav a:hover { color: var(--stencil); }

/* ---- buttons ---- */

.btn {
  display: inline-block;
  padding: 0.8em 1.5em;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--stencil); border-color: var(--stencil); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--stencil); color: var(--stencil); }

/* header CTA stays compact */
.site-header .btn { padding: 0.55em 1.1em; }

/* ---- hero ---- */

.hero { padding-block: clamp(4rem, 9vw, 7.5rem); }
.hero h1 {
  font-size: clamp(3.1rem, 8.5vw, 6.6rem);
  max-width: 14ch;
  margin-top: 1.2rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--stencil);
}
.hero .lede {
  max-width: 58ch;
  font-size: 1.2rem;
  margin-block: 1.6rem 2.2rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---- sections ---- */

section { border-top: 2px solid var(--ink); padding-block: clamp(3rem, 6vw, 5rem); }

.section-head { margin-bottom: 2.4rem; }
.section-head h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  margin-top: 0.6rem;
  max-width: 22ch;
}
.section-head p { max-width: 62ch; color: var(--steel); margin-bottom: 0; }

/* three-up: how local-first works */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.5rem);
}
.trio h3 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0.9rem 0 0.5rem;
}
.trio p { margin: 0; color: var(--steel); font-size: 1rem; }
.trio .rule { width: 3rem; height: 4px; background: var(--stencil); }

/* flash-sheet feature grid: 1px ink rules via grid gap */
.flash {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 2px solid var(--ink);
}
.flash article { background: var(--raised); padding: 1.4rem 1.3rem 1.6rem; }
.flash .no {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--stencil);
}
.flash h3 {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-transform: uppercase;
  margin: 0.55rem 0 0.5rem;
}
.flash p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--steel); }

/* inverted ink band — the one loud moment */
.band {
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--ink);
}
.band .wrap { padding-block: clamp(3rem, 6vw, 5rem); }
.band h2 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 16ch;
  color: var(--paper);
}
.band h2 em { font-style: normal; color: var(--gold); }
.band p { max-width: 58ch; font-size: 1.15rem; margin-top: 1.4rem; margin-bottom: 0; }

/* ---- pricing ---- */

.price-plate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink);
  border: 2px solid var(--ink);
}
.price-cell { background: var(--raised); padding: clamp(1.6rem, 3.5vw, 2.6rem); }
.price-cell .amount {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price-cell .amount small {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}
.price-cell h3 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stencil);
  margin: 0 0 1rem;
}
.price-cell ul { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.price-cell li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}
.price-notes {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ---- contact ---- */

.contact .wrap { text-align: center; }
.contact h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-inline: auto; }
.contact p { max-width: 52ch; margin-inline: auto; color: var(--steel); }
.contact .cta-row { justify-content: center; margin-top: 1.8rem; }

/* ---- footer ---- */

.site-footer { border-top: 2px solid var(--ink); padding-block: 2rem 2.6rem; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer, .site-footer a { color: var(--steel); }
.site-footer .fine {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---- legal placeholder pages ---- */

.legal { padding-block: 3rem 5rem; }
.legal .prose { max-width: 68ch; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1.4rem; }

/* ---- responsive ---- */

@media (max-width: 900px) {
  .flash { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header nav a:not(.btn) { display: none; }
  .flash { grid-template-columns: 1fr; }
  .price-plate { grid-template-columns: 1fr; }
}

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