/* Mock stylesheet, Clear Box Commons sitemap mockup.
   Inherits brand tokens from the live Coming Soon page.
   No third-party JS. No external font requests. Self-hosted woff2 only. */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper-mid: #f7f4ed;
  --paper-bright: #fefdfa;
  --paper-raised: #fbf9f3;
  --ink: #141617;
  --ink-muted: #4a5560;
  --ink-hair: rgba(20, 22, 23, 0.14);
  --ink-hair-strong: rgba(20, 22, 23, 0.26);
  --steel: #2f4a66;
  --steel-deep: #1e3449;
  --steel-soft: #6b89a8;
  --sky: #3b88b5;
  --sky-link: #2c6a90;

  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --col-max: 720px;
  --col-wide: 960px;
  --chrome-max: var(--col-wide);
  --pad-x: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper-mid);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Visually-hidden, for accessibility patterns from coding_standards.md */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link, off-screen until focused (keyboard accessibility) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 1000;
  background: var(--ink);
  color: #fefdfa;
  padding: 8px 14px;
  border-radius: 0 0 3px 3px;
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; outline: 2px solid var(--sky); }

/* ─── Header (banner + nav) ──────────────────────────────────────────── */

.chrome-header { position: sticky; top: 0; z-index: 100; }
:target { scroll-margin-top: 90px; }
/* DARP body copy: left-align gray <p> paragraphs for readability; block stays centered by its container. .node-desc = node pages, .wd-close/.wd-brief-note = explorer word detail */
.node-desc, .wd-close, .wd-brief-note, .word-detail .wd-gloss { text-align: left; }
/* Explorer: avoid single-word widows on the reading paragraphs */
.wd-close, .wd-brief-note { text-wrap: pretty; }
.wd-close + .wd-brief-note { margin-top: 22px; }
/* Explorer word detail: one left-aligned column at the SAME pixel width for lead/body/notes/actions.
   Uses rem (not ch) because ch is font-relative, so the large blue lead and small gray body would otherwise differ in pixel width and not line up. */
.word-detail .wd-gloss,
.word-detail .wd-close,
.word-detail .wd-brief-note { max-width: 33rem; margin-left: auto; margin-right: auto; }
.word-detail .wd-actions { justify-content: flex-start; max-width: 33rem; margin: 22px auto 0; }
/* Explorer letter/act panel (the "Devise/Author/…" and "Maker/Performer/…" views): same
   left-aligned uniform column as the word detail. .np-def = blue lead, .np-question = gray
   question, .np-deeper = the cue text + go-deeper chevron. padding-left:0 so the cue's left
   edge lines up exactly with the paragraphs (they sit flush at the column edge). */
.node-panel .np-def,
.node-panel .np-question { text-align: left; max-width: 33rem; margin-left: auto; margin-right: auto; }
/* width:100% (not just max-width) because a <button> otherwise shrink-wraps to its
   content, collapsing the column and pushing the cue off the paragraphs' left edge. */
.node-panel .np-deeper { display: flex; width: 100%; max-width: 33rem; padding-left: 0; padding-right: 0; }
.node-panel .np-deeper-text { align-self: flex-start; text-align: left; }
.node-panel .np-carrot { align-self: center; }
.site-header {
  border-bottom: 1px solid var(--ink-hair);
  padding: 9px var(--pad-x);
  background: color-mix(in srgb, var(--sky) 7%, rgba(247, 244, 237, 0.9));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(20, 22, 23, 0.05);
}
.site-header-inner {
  max-width: var(--chrome-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .brand a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  line-height: 0;
}
.site-header .brand a:hover { opacity: 0.7; }
.site-header .brand a:active { opacity: 0.5; }
.site-header .brand img {
  display: block;
  width: auto;
  max-height: 60px;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.site-nav .mobile-only { display: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--steel-deep);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--steel-soft); }
.site-nav a:active { color: var(--ink); border-bottom-color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--sky-link); border-bottom-color: var(--sky); }
.site-nav a:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; border-radius: 1px; }
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--steel-deep);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 8px 0;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-dropdown-toggle:hover { color: var(--ink); border-bottom-color: var(--steel-soft); }
.nav-dropdown-toggle.is-active { color: var(--sky-link); border-bottom-color: var(--sky); }
.nav-dropdown-toggle:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; border-radius: 1px; }
.nav-caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.15s ease;
}
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 168px;
  display: none;
  flex-direction: column;
  gap: 2px;
  background: var(--paper-bright);
  border: 1px solid var(--ink-hair);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(20, 22, 23, 0.10);
  padding: 6px;
  z-index: 60;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  display: block;
  min-height: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--steel-deep);
  text-decoration: none;
  padding: 9px 12px;
  border: 0;
  border-radius: 4px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--paper-mid); color: var(--ink); border: 0; }
.nav-dropdown-menu a[aria-current="page"] { color: var(--sky-link); }

/* ─── DARP section navigation ────────────────────────────────────────── */

.darp-subnav {
  position: relative;
  padding: 5px 0 7px;
  background:
    linear-gradient(to bottom,
      color-mix(in srgb, #3b88b5 8%, var(--paper-bright)) 0%,
      var(--paper-mid) 100%);
  overflow: hidden;
}
.darp-subnav-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(14px, 3.8vw, 30px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.darp-subnav-inner::-webkit-scrollbar {
  display: none;
}
.darp-subnav-label {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}
.darp-subnav a {
  position: relative;
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--steel-deep);
  text-decoration: none;
  opacity: 1;
  transform: translateY(2px) scale(0.95);
  transform-origin: center center;
  transition:
    color 520ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}
.darp-subnav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 28px;
  height: 2px;
  background: var(--steel-soft);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.42);
  transform-origin: center center;
  transition:
    opacity 300ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.darp-subnav a:hover {
  color: var(--ink);
  transform: translateY(0) scale(0.985);
}
.darp-subnav a:active {
  color: var(--ink);
  transform: translateY(0) scale(0.96);
}
.darp-subnav a[aria-current="page"] {
  color: var(--sky-link);
  font-weight: 600;
  transform: translateY(0) scale(1);
}
.darp-subnav a:hover::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}
.darp-subnav a[aria-current="page"]::after {
  background: var(--sky);
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}
.darp-subnav a:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 4px;
  border-radius: 2px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─── Page container ─────────────────────────────────────────────────── */

.page {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 48px var(--pad-x) 56px;
}
.page-wide {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: 48px var(--pad-x) 56px;
}

.darp-static {
  max-width: var(--col-wide);
  margin: 0 auto;
  padding: 40px var(--pad-x) 110px;
  min-height: 52vh;
  background: linear-gradient(to bottom,
    color-mix(in srgb, #3b88b5 7%, var(--paper-bright)) 0%,
    var(--paper-bright) 34%,
    var(--paper-mid) 100%);
}
.darp-static-inner {
  max-width: 680px;
  margin: 0 auto;
}
.node.sky-wash {
  max-width: var(--col-wide);
  margin: 0 auto;
}

/* ─── Eyebrow + section labels (matches live homepage) ───────────────── */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-deep);
  margin: 0 0 20px;
}

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-deep);
  margin: 0 0 14px;
}

/* ─── Typography ─────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--sans);
  color: var(--ink);
  margin: 0 0 16px;
}
h1 { font-size: 44px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; }

p { margin: 0 0 16px; font-size: 17px; }
.lead { font-size: 19px; line-height: 1.5; max-width: 600px; }
.body-large { font-size: 19px; line-height: 1.5; }

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

strong { font-weight: 600; }

/* ─── Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding: 16px 0 32px;
}
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 { font-size: 52px; line-height: 1.04; margin-bottom: 24px; }
.hero .lead { font-size: 21px; margin-bottom: 32px; }
.hero .cta-row { display: flex; gap: 28px; flex-wrap: wrap; }
.hero .cta-row a {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink);
}
.hero .cta-row a:hover { color: var(--steel); border-bottom-color: var(--steel); }
.hero .cta-row a:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }

/* ─── Section block (matches live homepage section pattern) ──────────── */

.section {
  margin: 56px 0;
  padding-top: 36px;
  border-top: 1px solid var(--ink-hair);
}

/* ─── Card grid ──────────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0 0;
}
.cards--two { grid-template-columns: repeat(2, 1fr); }
.cards--list { grid-template-columns: 1fr; gap: 0; }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--ink-hair);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--ink-hair-strong); }
.card:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.card .card-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-deep);
}
.card h3 { margin: 0; }
.card p { margin: 0; font-size: 15px; color: var(--ink-muted); }

.event-card {
  padding: 22px 0;
  border-bottom: 1px solid var(--ink-hair);
  display: block;
  text-decoration: none;
  color: inherit;
}
.event-card:last-child { border-bottom: none; }
.event-card:hover h3 { color: var(--steel); }
.event-card .event-meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin: 0 0 6px;
}
.event-card h3 { margin: 0 0 4px; font-size: 19px; }
.event-card p { margin: 0; font-size: 15px; color: var(--ink-muted); }

/* ─── Draft banner (mock-only, strip before going live) ─────────────── */

.draft-banner {
  background: #fdf6dc;
  border-bottom: 1px solid #d4b85a;
  padding: 8px var(--pad-x);
  font-family: var(--sans);
  font-size: 11px;
  text-align: center;
  color: #6b4f1c;
  letter-spacing: 0.06em;
}
.draft-banner a { color: #4a3608; text-decoration: underline; text-decoration-thickness: 1px; }
.draft-banner a:hover { color: #2a1f04; }

/* ─── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--ink-hair);
  box-shadow: inset 0 7px 9px -9px rgba(20, 22, 23, 0.09);
  margin-top: 72px;
  background: var(--paper-mid);
}
.site-footer-inner {
  max-width: calc(var(--chrome-max) + 56px);
  margin: 0 auto;
  padding: 24px 28px 56px;
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer h2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-deep);
  margin: 0 0 14px;
}
.site-footer p, .site-footer li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 8px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin: 0; }
.site-footer li a {
  display: inline-block;
  padding: 5px 0;
  line-height: 1.5;
}
.site-footer a { color: var(--ink-muted); text-decoration: underline; text-decoration-color: var(--ink-hair); }
.site-footer a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.site-footer a:active { color: var(--steel-deep); }

/* ─── Chrome placeholder height reservation ─────────────────────────── */

/* ─── Footer subscribe form ─────────────────────────────────────────── */

.footer-subscribe {
  padding: 24px 40px 20px;
}
.footer-subscribe-inner {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: var(--chrome-max);
  margin: 0 auto;
}
.footer-subscribe-form { grid-column: 2 / 4; }
.site-footer .footer-subscribe-copy h2 {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  margin: 4px 0 0;
}
.text-accent { color: var(--sky-link); font-weight: 600; }
.footer-subscribe-copy h2 .text-accent {
  color: var(--sky-link);
}
.site-footer .footer-subscribe-copy p {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-muted);
  margin: 4px 0 0;
}
.footer-subscribe-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}
.footer-subscribe input[type="email"] {
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--ink-hair-strong);
  border-radius: 4px;
  background: var(--paper-bright);
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 0;
}
.footer-subscribe input[type="email"]:focus {
  outline: 2px solid var(--sky);
  outline-offset: 1px;
  border-color: var(--sky);
}
.footer-subscribe-tags {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 0;
}
.footer-subscribe-tags label {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.footer-subscribe-tags input[type="checkbox"] {
  accent-color: var(--sky);
}
.footer-subscribe button {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  background: var(--steel-deep);
  color: var(--paper-bright);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.footer-subscribe button:hover { background: var(--steel); }
.footer-subscribe button:active { background: var(--ink); }
.footer-subscribe button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.footer-subscribe-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.footer-subscribe-ok,
.footer-subscribe-err {
  font-family: var(--sans);
  font-size: 14px;
  margin: 8px 0 0;
}
.footer-subscribe-ok { color: var(--steel-deep); }
.footer-subscribe-err { color: #a33; }
.contact-ok,
.contact-err {
  font-family: var(--sans);
  font-size: 15px;
  margin: 12px 0 0;
}
.contact-ok { color: var(--steel-deep); font-weight: 600; }
.contact-err { color: #a33; }

[data-chrome="header"] { min-height: 108px; }
[data-chrome="footer"] { min-height: 320px; }

/* ─── No-JS fallback nav ────────────────────────────────────────────── */

.site-nav-fallback {
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav-fallback a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
.darp-subnav-fallback {
  border-top: 1px solid var(--ink-hair, #d5d8db);
}

/* ─── No-JS fallback footer ─────────────────────────────────────────── */

.site-footer-fallback {
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── Footer "soon" label ───────────────────────────────────────────── */

.soon { color: var(--ink-soft, #5c6570); }

/* ─── Mobile (compact-mobile breakpoint at 480px per coding_standards.md) ─ */

@media (max-width: 480px) {
  :root { --pad-x: 20px; }
  .site-header { padding: 7px var(--pad-x); }
  .site-header .brand img { max-height: 28px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 10px; }
  .nav-dropdown-toggle { font-size: 10px; }
  .nav-dropdown-menu a { font-size: 13px; letter-spacing: 0.03em; }
  .site-nav .desktop-only { display: none; }
  .site-nav .mobile-only { display: inline; }
  .darp-subnav { padding-top: 4px; padding-bottom: 6px; }
  .darp-subnav-inner { padding: 0 var(--pad-x); gap: 9px; }
  .darp-subnav-label { font-size: 14px; }
  .darp-subnav a { font-size: 13px; }
  .page, .page-wide { padding: 32px var(--pad-x) 40px; }
  .darp-static { padding: 34px var(--pad-x) 82px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 18px; }
  .hero .cta-row { gap: 16px; }
  .lead { font-size: 17px; }
  .body-large { font-size: 17px; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .cards--two { grid-template-columns: 1fr; }
  .site-footer { margin-top: 56px; }
  .site-footer-inner { padding: 28px var(--pad-x) 40px; grid-template-columns: 1fr; gap: 28px; }
  [data-chrome="header"] { min-height: 180px; }
  [data-chrome="footer"] { min-height: 420px; }
  .footer-subscribe { padding: 20px var(--pad-x) 16px; }
  .footer-subscribe-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-subscribe-form { grid-column: auto; }
  .footer-subscribe-copy h2 { font-size: 19px; }
  .footer-subscribe input[type="email"] { width: 100%; }
  .footer-subscribe-row { flex-direction: column; }
  .footer-subscribe button { width: 100%; }
  [data-chrome="footer"] { min-height: 580px; }
}
