/* Atropolis website — shared styles. DRAFT v0.1, 2026-10-18.
   Visual reference: Brand Book v3.1 (bedrock dark ground, limestone light ground,
   condensed serif display + grotesk text, thin copper rule).
   Colour values are read from documents/atropolis-brand/brand-tokens.json — do not re-derive.
   Copper rule (v3.1 house rule + tokens hardRules): copper marks the core and only the core.
   It appears here ONLY as: the wordmark file, the core dot, and the copper rail/rule.
   It is never a button, label or link colour. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/InstrumentSerif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* The supplied Archivo-400/500/700 files are byte-identical (one variable file), so one face covers the range. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-400.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
/* No italic face is loaded on purpose: the italic emphasis device is retired (v3.1, Aug 2026). */

:root {
  --bedrock: #131722;
  --ink: #1E2430;
  --limestone: #F2EEE6;
  --card: #FBF8F2;
  --hair: #DDD5C8;
  --pale: #CBD9E9;
  --slate: #79808E;        /* rings and decoration only — fails AA as text */
  --copper: #B56B3F;       /* the core only */
  --line-dark: rgba(203, 217, 233, .16);
  --grid-dark: rgba(203, 217, 233, .045);
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --text: "Archivo", Arial, Helvetica, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 12px;
  --ease: cubic-bezier(.4, 0, .2, 1); /* slow and mechanical: no bounce, no overshoot */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--limestone); color: var(--ink);
  font: 400 17px/1.6 var(--text); font-style: normal;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
em, i, cite { font-style: normal; } /* italic device retired */
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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

/* ---------- Grounds ---------- */
.atr-dark { background: var(--bedrock); color: var(--limestone); }
.atr-dark .atr-body, .atr-dark p { color: var(--pale); }
.atr-grid {
  background-image:
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-size: 90px 90px;
}

/* ---------- Type ---------- */
.atr-eyebrow {
  font: 700 12px/1.4 var(--text); letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 18px;
}
.atr-dark .atr-eyebrow { color: var(--pale); }
.atr-h1, .atr-h2, .atr-h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -.012em; }
.atr-h1 { font-size: clamp(50px, 7.4vw, 108px); line-height: .98; }
.atr-h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; }
.atr-h3 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.1; }
.atr-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; max-width: 46ch; margin: 26px 0 0; }
.atr-body { max-width: 62ch; }
.atr-muted { opacity: .8; }
.atr-rule { border: 0; border-top: 1px solid var(--hair); margin: 34px 0; }
.atr-dark .atr-rule { border-top-color: var(--line-dark); }

/* ---------- Copper rail (the book's thin copper rule + core node) ---------- */
.atr-rail { position: fixed; top: 0; bottom: 0; left: 28px; width: 1.5px; background: var(--copper); z-index: 40; pointer-events: none; }
.atr-rail::after { content: ""; position: absolute; top: 132px; left: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--copper); }
@media (max-width: 1099px) { .atr-rail { display: none; } }

/* ---------- Draft banner + flags (diagnostic chrome: deliberately NON-brand colours) ---------- */
.atr-draftbar {
  position: sticky; top: 0; z-index: 60; background: #2a2118; color: #f0c274;
  font: 600 11.5px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em;
  text-transform: uppercase; text-align: center; padding: 7px 12px; border-bottom: 1px solid #d8a24a;
}
.atr-flag {
  display: inline-block; font: 600 11.5px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em;
  color: #7a4f05; background: #fff3d6; border: 1px dashed #d8a24a; border-radius: 4px; padding: 2px 7px; vertical-align: middle;
}
.atr-dark .atr-flag { color: #f0c274; background: #2a2118; }
.atr-placeholder { border: 1px dashed #d8a24a; background: rgba(255, 243, 214, .55); border-radius: 8px; padding: 18px 20px; }
.atr-dark .atr-placeholder { background: rgba(42, 33, 24, .7); }

/* ---------- Header / nav ---------- */
.atr-header { position: relative; z-index: 30; }
.atr-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.atr-header__logo img { height: 34px; width: auto; }
.atr-nav { display: flex; align-items: center; gap: 34px; }
.atr-nav a { text-decoration: none; font: 500 15px/1 var(--text); letter-spacing: .01em; padding: 8px 0; border-bottom: 1px solid transparent; }
.atr-nav a:hover, .atr-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.atr-nav a.atr-btn { padding: 11px 16px; border: 1px solid var(--bedrock); }
.atr-dark .atr-nav a.atr-btn { border-color: var(--limestone); }
.atr-header--light { background: var(--limestone); color: var(--ink); border-bottom: 1px solid var(--hair); }
.atr-header--dark { background: var(--bedrock); color: var(--limestone); border-bottom: 1px solid var(--line-dark); }
.atr-burger { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 4px; width: 44px; height: 40px; cursor: pointer; }
.atr-burger span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 4px auto; }
@media (max-width: 860px) {
  .atr-nav { display: none; }
  .atr-burger { display: block; }
  .atr-header__bar { height: 72px; }
  .atr-header__logo img { height: 28px; }
}

/* ---------- Mobile nav ---------- */
.atr-mnav { position: fixed; inset: 0; z-index: 70; background: var(--bedrock); color: var(--limestone); display: none; flex-direction: column; padding: 0 var(--gutter) 32px; }
.atr-mnav.is-open, .atr-mnav--static { display: flex; }
.atr-mnav--static { position: relative; inset: auto; min-height: 640px; }
.atr-mnav__top { display: flex; justify-content: space-between; align-items: center; height: 72px; border-bottom: 1px solid var(--line-dark); }
.atr-mnav__top img { height: 28px; width: auto; }
.atr-mnav__close { background: none; border: 1px solid currentColor; color: inherit; border-radius: 4px; height: 40px; padding: 0 14px; font: 500 14px var(--text); cursor: pointer; }
.atr-mnav__links { list-style: none; margin: 28px 0 0; padding: 0; }
.atr-mnav__links a { display: block; text-decoration: none; font: 400 40px/1.1 var(--display); padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.atr-mnav__foot { margin-top: auto; padding-top: 28px; font-size: 14px; color: var(--pale); }

/* ---------- Buttons ---------- */
.atr-btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 500 15px/1 var(--text); letter-spacing: .01em; padding: 16px 22px; border-radius: 4px;
  background: var(--bedrock); color: var(--limestone); border: 1px solid var(--bedrock);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.atr-btn:hover { background: var(--ink); }
.atr-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.atr-btn--ghost:hover { background: var(--ink); color: var(--limestone); }
.atr-dark .atr-btn { background: var(--limestone); color: var(--bedrock); border-color: var(--limestone); }
.atr-dark .atr-btn:hover { background: var(--card); }
.atr-dark .atr-btn--ghost { background: transparent; color: var(--limestone); border-color: var(--pale); }
.atr-dark .atr-btn--ghost:hover { background: var(--limestone); color: var(--bedrock); }
.atr-btn--sm { padding: 11px 16px; font-size: 14px; }
.atr-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* ---------- Sections ---------- */
.atr-section { padding: clamp(72px, 9vw, 128px) 0; }
.atr-section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.atr-section__head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }

/* ---------- Hero ---------- */
.atr-hero { position: relative; overflow: hidden; }
.atr-hero__inner { position: relative; z-index: 2; padding: clamp(84px, 11vw, 160px) 0 clamp(84px, 10vw, 150px); max-width: 820px; }
.atr-hero__ripple { position: absolute; z-index: 1; right: -12vw; top: 50%; transform: translateY(-50%); width: min(78vw, 980px); pointer-events: none; }
.atr-hero--light .atr-hero__inner { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(56px, 7vw, 96px); }
@media (max-width: 860px) {
  .atr-hero__ripple { right: -55vw; width: 130vw; opacity: .55; }
}

/* ---------- Ripple (rings + core dot) ---------- */
.atr-ripple circle.ring { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.atr-ripple circle.core { fill: var(--copper); }

/* ---------- Purpose band ---------- */
.atr-purpose { text-align: left; }
.atr-purpose__line { font: 400 clamp(52px, 8vw, 120px)/.98 var(--display); letter-spacing: -.015em; margin: 0; max-width: 12ch; }
.atr-purpose__sub { margin-top: 28px; font-size: 19px; }

/* ---------- Statement block (dark) ---------- */
.atr-statement { position: relative; background: var(--bedrock); color: var(--limestone); border-radius: var(--radius); padding: clamp(34px, 4.5vw, 64px) clamp(28px, 5vw, 72px); overflow: hidden; }
.atr-statement::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px; background: var(--copper); }
.atr-statement__text { font: 400 clamp(32px, 4.2vw, 58px)/1.06 var(--display); margin: 0; max-width: 22ch; letter-spacing: -.01em; }
.atr-statement__cap { margin: 20px 0 0; font: 600 12px/1.4 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--pale); }

/* ---------- Cards ---------- */
.atr-cards { display: grid; gap: 16px; }
.atr-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .atr-cards--2 { grid-template-columns: 1fr; } }
.atr-card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.atr-card__num { font: 700 12px/1 var(--text); letter-spacing: .2em; margin: 0 0 18px; }
.atr-card p { margin: 12px 0 0; }

/* Pillar card: serif statement heading */
.atr-pillar .atr-card__title { font: 400 clamp(28px, 2.6vw, 36px)/1.08 var(--display); margin: 0; }
/* Value card: grotesk bold heading, as the book sets values */
.atr-value .atr-card__title { font: 700 21px/1.25 var(--text); margin: 0; }

/* Product card */
.atr-product { display: flex; flex-direction: column; gap: 16px; }
.atr-product__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.atr-product__name { font: 400 clamp(34px, 3.2vw, 44px)/1 var(--display); margin: 0; }
.atr-product__access { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.atr-product__access small { font: 600 12px/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Two-week timeline (Core Map) ---------- */
.atr-weeks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.atr-week { padding: 34px 34px 8px 0; position: relative; }
.atr-week + .atr-week { padding-left: 34px; border-left: 1px solid var(--line-dark); }
.atr-week__label { font: 700 12px/1 var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--pale); margin: 0 0 14px; }
.atr-week__title { font: 400 clamp(44px, 5vw, 72px)/1 var(--display); margin: 0; }
.atr-week ul { list-style: none; padding: 0; margin: 22px 0 0; }
.atr-week li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-dark); color: var(--pale); }
.atr-week li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--slate); transform: translateY(-1px); }
.atr-week li.is-core::before { background: var(--copper); } /* the core, mapped — the only copper on this list */
@media (max-width: 760px) {
  .atr-weeks { grid-template-columns: 1fr; }
  .atr-week { padding-right: 0; }
  .atr-week + .atr-week { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
}

/* ---------- Not-list ---------- */
.atr-not { font: 400 clamp(30px, 3.4vw, 44px)/1.12 var(--display); margin: 0; }

/* ---------- CTA band ---------- */
.atr-cta { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(40px, 6vw, 84px) clamp(28px, 5vw, 72px); }
.atr-cta__ripple { position: absolute; right: -140px; top: 50%; transform: translateY(-50%); width: 560px; opacity: .9; pointer-events: none; }
.atr-cta__inner { position: relative; max-width: 640px; }
@media (max-width: 760px) { .atr-cta__ripple { right: -260px; opacity: .45; } }

/* ---------- Form ---------- */
.atr-form { display: grid; gap: 20px; max-width: 720px; }
.atr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .atr-form__row { grid-template-columns: 1fr; } }
.atr-field label, .atr-field legend { display: block; font: 600 13px/1.3 var(--text); letter-spacing: .04em; margin-bottom: 8px; }
.atr-field input, .atr-field select, .atr-field textarea {
  width: 100%; font: 400 16px/1.4 var(--text); color: var(--ink); background: var(--card);
  border: 1px solid var(--hair); border-radius: 6px; padding: 14px 14px;
}
.atr-field textarea { min-height: 150px; resize: vertical; }
.atr-field input:focus, .atr-field select:focus, .atr-field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.atr-field__hint { font-size: 13.5px; margin-top: 6px; opacity: .8; }
.atr-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.atr-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.atr-form__note { display: none; }
.atr-form__note.is-shown { display: block; }

/* ---------- Cookie notice ---------- */
.atr-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; background: var(--bedrock); color: var(--limestone); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 10px 40px rgba(19, 23, 34, .25); }
.atr-cookie--static { position: relative; left: auto; right: auto; bottom: auto; box-shadow: none; }
.atr-cookie p { margin: 0 0 16px; font-size: 14.5px; color: var(--pale); }

/* ---------- Footer ---------- */
.atr-footer { background: var(--bedrock); color: var(--limestone); padding: 72px 0 40px; }
.atr-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.atr-footer__logo img { height: 30px; width: auto; }
.atr-footer__purpose { font: 400 34px/1.05 var(--display); margin: 26px 0 0; }
.atr-footer h4 { font: 700 12px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--pale); margin: 6px 0 18px; }
.atr-footer ul { list-style: none; margin: 0; padding: 0; }
.atr-footer li a { display: inline-block; text-decoration: none; padding: 6px 0; font-size: 15px; }
.atr-footer li a:hover { text-decoration: underline; }
.atr-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font: 500 12px/1.5 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--pale); }
@media (max-width: 760px) { .atr-footer__top { grid-template-columns: 1fr 1fr; } .atr-footer__brand { grid-column: 1 / -1; } }

/* ---------- Legal shell ---------- */
.atr-legal { max-width: 760px; }
.atr-legal .atr-placeholder + .atr-placeholder { margin-top: 14px; }

/* ---------- Two-column split ---------- */
.atr-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .atr-split { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Mock-up additions — placeholder vocabulary (diagnostic chrome, deliberately non-brand colours) */
.atr-ph { display: flex; flex-direction: column; gap: 10px; }
.atr-ph p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.atr-ph--shot { aspect-ratio: 16 / 10; justify-content: center; align-items: center; text-align: center; }
.atr-ph--shot.is-tall { aspect-ratio: 4 / 5; }
.atr-ph--avatar { aspect-ratio: 1 / 1; max-width: 320px; justify-content: center; align-items: center; text-align: center; }
.atr-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .atr-cards--3 { grid-template-columns: 1fr; } }
.atr-quote { display: flex; flex-direction: column; gap: 18px; }
.atr-quote__text { font: 400 clamp(22px, 2vw, 27px)/1.3 var(--display); margin: 0; }
.atr-quote__who { font-size: 14px; }
.atr-faq details { border-top: 1px solid var(--hair); padding: 16px 0; }
.atr-faq details:last-child { border-bottom: 1px solid var(--hair); }
.atr-faq summary { cursor: pointer; font: 600 16px/1.4 var(--text); list-style: none; }
.atr-faq summary::-webkit-details-marker { display: none; }
.atr-faq p { margin: 10px 0 0; max-width: 62ch; }
.atr-list { list-style: none; padding: 0; margin: 18px 0 0; max-width: 62ch; }
.atr-list li { padding: 10px 0; border-bottom: 1px solid var(--hair); display: flex; gap: 14px; }
.atr-list li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--slate); transform: translateY(9px); }
.atr-kicker { font: 600 13px/1.4 var(--text); letter-spacing: .04em; margin: 0 0 8px; }
.atr-lib__item { padding: 34px 0; border-top: 1px solid var(--hair); }
.atr-lib__label { font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: #7a4f05; margin: 0 0 16px; }
.atr-lib__frame { border: 1px dashed #d8a24a; border-radius: 8px; overflow: hidden; }
.atr-cookie__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.atr-symbol { width: 100%; height: auto; display: block; border: 1px solid var(--hair); border-radius: 12px; background: #FBF8F2; }
.atr-symbol-cap { font-size: 13.5px; margin: 10px 0 0; opacity: .85; }
.atr-dark .atr-symbol-cap { color: var(--pale); }
.atr-pill { display: inline-block; font: 600 11.5px/1.4 var(--text); letter-spacing: .14em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 99px; padding: 4px 11px; }
.atr-stack { display: grid; gap: 18px; }
.atr-banner { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(28px, 3.5vw, 44px); }
.atr-banner__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.atr-banner__brand img { height: 40px; width: auto; }
.atr-banner__name { font: 400 clamp(30px, 2.8vw, 40px)/1 var(--display); margin: 0; }
@media (max-width: 860px) { .atr-banner { grid-template-columns: 1fr; } }
.atr-skip { position: absolute; left: -9999px; }
.atr-skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--limestone); color: var(--ink); padding: 10px 14px; }

.atr-form__note.is-shown{display:block;margin:0}
