/*
 * Shared architectural design
 * Classical elevation drawing + Beaux-Arts watercolor drafting
 */

:root {
  --radius-card: 0;
  --radius-control: 0;
  --draft-red: #9c554d;
  --draft-red-soft: rgba(156, 85, 77, 0.16);
  --draft-blue: #607f98;
  --draft-grid: rgba(63, 82, 94, 0.105);
  --draft-grid-major: rgba(63, 82, 94, 0.17);
  --draft-shadow: 0 18px 45px rgba(42, 35, 24, 0.09);
  --display: "Bodoni 72", Didot, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", Consolas, "Liberation Mono", monospace;
}

body.product-icarus {
  --site-code: "ICR";
  --paper: #f8f5eb;
  --paper-2: #eee9dc;
  --ink: #263744;
  --ink-strong: #14232d;
  --muted: #58656c;
  --muted-2: #626e73;
  --muted-soft: var(--muted-2);
  --line: rgba(45, 68, 82, 0.17);
  --line-strong: rgba(38, 62, 78, 0.34);
  --surface: rgba(255, 253, 247, 0.67);
  --surface-strong: rgba(255, 253, 247, 0.88);
  --accent: #668da5;
  --accent-2: #bc9147;
  --accent-3: #7d927e;
  --accent-soft: rgba(102, 141, 165, 0.16);
  --draft-red: #a05a52;
  --draft-grid: rgba(61, 91, 108, 0.10);
  --draft-grid-major: rgba(61, 91, 108, 0.17);
}

body.product-pantheon {
  --site-code: "PTH";
  --paper: #f8f3e8;
  --paper-2: #ece5d7;
  --ink: #3d3933;
  --ink-strong: #211f1c;
  --muted: #655f57;
  --muted-2: #6e675e;
  --muted-soft: var(--muted-2);
  --line: rgba(62, 56, 47, 0.17);
  --line-strong: rgba(62, 56, 47, 0.34);
  --surface: rgba(255, 252, 244, 0.67);
  --surface-strong: rgba(255, 252, 244, 0.88);
  --accent: #7889a7;
  --accent-2: #b28c4d;
  --accent-3: #8a78a0;
  --accent-soft: rgba(120, 137, 167, 0.16);
  --draft-red: #9a5850;
  --draft-grid: rgba(79, 75, 84, 0.095);
  --draft-grid-major: rgba(79, 75, 84, 0.16);
}

body.product-hades {
  --site-code: "HDS";
  --paper: #faf4e4;
  --paper-2: #eee4cf;
  --ink: #40392a;
  --ink-strong: #211d15;
  --muted: #675f4d;
  --muted-2: #70664f;
  --muted-soft: var(--muted-2);
  --line: rgba(69, 58, 35, 0.17);
  --line-strong: rgba(69, 58, 35, 0.34);
  --surface: rgba(255, 251, 238, 0.67);
  --surface-strong: rgba(255, 251, 238, 0.88);
  --accent: #b18e3d;
  --accent-2: #73845c;
  --accent-3: #a35e55;
  --accent-soft: rgba(177, 142, 61, 0.17);
  --draft-red: #9e594f;
  --draft-grid: rgba(92, 72, 35, 0.095);
  --draft-grid-major: rgba(92, 72, 35, 0.16);
}

:root[data-current-theme="dark"] body.product-icarus {
  --paper: #10161a;
  --paper-2: #182229;
  --ink: #dce7e9;
  --ink-strong: #f4f4ec;
  --muted: #b4c0c2;
  --muted-2: #89979a;
  --line: rgba(205, 224, 228, 0.16);
  --line-strong: rgba(205, 224, 228, 0.32);
  --surface: rgba(30, 43, 50, 0.67);
  --surface-strong: rgba(37, 52, 61, 0.88);
  --accent: #8eb6ca;
  --accent-2: #d0aa63;
  --accent-3: #a2b29b;
  --accent-soft: rgba(142, 182, 202, 0.17);
  --draft-red: #ca8277;
  --draft-grid: rgba(171, 205, 216, 0.09);
  --draft-grid-major: rgba(171, 205, 216, 0.15);
  --draft-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

:root[data-current-theme="dark"] body.product-pantheon {
  --paper: #15130f;
  --paper-2: #211d18;
  --ink: #e7dfd1;
  --ink-strong: #fff7e9;
  --muted: #beb3a3;
  --muted-2: #92877a;
  --line: rgba(234, 223, 207, 0.16);
  --line-strong: rgba(234, 223, 207, 0.31);
  --surface: rgba(38, 33, 27, 0.68);
  --surface-strong: rgba(48, 42, 35, 0.88);
  --accent: #aebcda;
  --accent-2: #d0aa66;
  --accent-3: #b0a2d6;
  --accent-soft: rgba(174, 188, 218, 0.17);
  --draft-red: #ca8175;
  --draft-grid: rgba(206, 199, 215, 0.085);
  --draft-grid-major: rgba(206, 199, 215, 0.145);
  --draft-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

:root[data-current-theme="dark"] body.product-hades {
  --paper: #15120b;
  --paper-2: #241d10;
  --ink: #eadfc9;
  --ink-strong: #fff4de;
  --muted: #c1b397;
  --muted-2: #97896e;
  --line: rgba(235, 219, 187, 0.16);
  --line-strong: rgba(235, 219, 187, 0.31);
  --surface: rgba(42, 34, 20, 0.69);
  --surface-strong: rgba(54, 44, 26, 0.88);
  --accent: #d1ae57;
  --accent-2: #9caf7c;
  --accent-3: #c87a70;
  --accent-soft: rgba(209, 174, 87, 0.17);
  --draft-red: #ce8174;
  --draft-grid: rgba(225, 197, 130, 0.085);
  --draft-grid-major: rgba(225, 197, 130, 0.145);
  --draft-shadow: 0 18px 46px rgba(0, 0, 0, 0.29);
}

html {
  scroll-padding-top: calc(var(--header-height) + 34px);
}

:focus-visible {
  outline: 3px solid var(--draft-red);
  outline-offset: 4px;
}

body {
  background: linear-gradient(180deg, var(--paper), var(--paper-2) 55%, var(--paper));
}

body::before {
  z-index: -1;
  opacity: 1;
  background-image:
    linear-gradient(var(--draft-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--draft-grid-major) 1px, transparent 1px),
    linear-gradient(var(--draft-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--draft-grid) 1px, transparent 1px);
  background-size: 192px 192px, 192px 192px, 48px 48px, 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 5%, #000 94%, transparent);
}

body::after {
  z-index: -1;
  opacity: 0.55;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), var(--draft-grid-major) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(180deg, transparent calc(50% - 0.5px), var(--draft-grid-major) 50%, transparent calc(50% + 0.5px));
}

h1,
h2 {
  font-variant-ligatures: common-ligatures;
  letter-spacing: -0.022em;
}

h3 {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-header {
  top: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  box-shadow: var(--draft-shadow);
  backdrop-filter: blur(16px) saturate(0.9);
  -webkit-backdrop-filter: blur(16px) saturate(0.9);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  pointer-events: none;
}

.site-header::after {
  content: var(--site-code) " / INDEX";
  position: absolute;
  right: 12px;
  bottom: -17px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  pointer-events: none;
}

body.nav-scrolled .site-header,
body.menu-open .site-header {
  top: 10px;
  border-color: var(--line-strong);
  border-radius: 0;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
}

.header-shell {
  min-height: 68px;
  padding: 0 14px 0 16px;
}

.brand {
  gap: 11px;
}

.brand img,
.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  padding: 4px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.brand-text span:first-child {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.brand-text span:last-child {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-nav {
  gap: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.site-nav a,
.mobile-nav a {
  position: relative;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 12px 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.site-nav a:last-child {
  border-right: 0;
}

.site-nav a::after,
.mobile-nav a::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 5px;
  left: 10px;
  height: 1px;
  background: var(--draft-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink-strong);
  background: var(--accent-soft);
  box-shadow: none;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after,
.mobile-nav a:hover::after,
.mobile-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav .nav-cta,
.mobile-nav .nav-cta {
  border-color: var(--line-strong);
  color: var(--ink-strong);
  background:
    linear-gradient(135deg, transparent 49%, color-mix(in srgb, var(--accent) 18%, transparent) 50%, transparent 51%),
    color-mix(in srgb, var(--paper) 46%, var(--accent-soft));
}

.theme-toggle,
.menu-button {
  border-radius: 0;
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--paper) 82%, transparent), inset 0 0 0 5px var(--line);
}

.mobile-nav {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 6px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: var(--draft-shadow), inset 0 0 0 5px color-mix(in srgb, var(--paper) 78%, transparent), inset 0 0 0 6px var(--line);
}

.mobile-nav a {
  border-right: 0;
  border-bottom: 1px solid var(--line);
  padding: 14px 13px;
}

.hero {
  min-height: var(--hero-min-height, 102svh);
  margin-top: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--paper);
  box-shadow: inset 0 0 0 7px color-mix(in srgb, var(--paper) 52%, transparent), inset 0 0 0 8px var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 3;
  border: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background:
    linear-gradient(90deg, transparent 39.9%, color-mix(in srgb, var(--draft-red) 46%, transparent) 40%, transparent 40.1%),
    linear-gradient(180deg, transparent 74.9%, color-mix(in srgb, var(--draft-red) 36%, transparent) 75%, transparent 75.1%),
    linear-gradient(90deg, var(--line-strong) 14px, transparent 14px) 0 0 / 38px 1px repeat-x,
    linear-gradient(var(--line-strong) 14px, transparent 14px) 0 0 / 1px 38px repeat-y;
  pointer-events: none;
}

.hero-shell {
  min-height: calc(var(--hero-min-height, 102svh) - var(--header-height));
  padding-top: clamp(78px, 9vw, 132px);
}

.hero-copy {
  position: relative;
  max-width: 565px;
  border: 1px solid var(--line-strong);
  padding: 47px 34px 32px;
  background:
    linear-gradient(90deg, var(--draft-red-soft) 1px, transparent 1px) 24px 0 / 100% 100% no-repeat,
    color-mix(in srgb, var(--paper) 84%, transparent);
  box-shadow: var(--draft-shadow);
  backdrop-filter: blur(12px) saturate(0.82);
  -webkit-backdrop-filter: blur(12px) saturate(0.82);
}

.hero-copy::before {
  content: var(--site-code) " / PRIMARY ELEVATION";
  position: absolute;
  top: 15px;
  right: 16px;
  left: 34px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: right;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  pointer-events: none;
}

.hero-copy h1 {
  max-width: 9.5ch;
  margin-bottom: 18px;
}

.hero-copy .eyebrow {
  margin-bottom: 14px;
}

.hero-lede {
  max-width: 47ch;
  margin-bottom: 0;
}

.mythic-pronunciation {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  max-width: 100%;
  margin: 13px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 6px 0 7px;
}

.mythic-pronunciation strong {
  flex: 0 0 auto;
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1;
}

.mythic-pronunciation-guide {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--accent) 80%, var(--ink));
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.045em;
  line-height: 1.25;
  white-space: nowrap;
}

.mythic-pronunciation-note {
  flex: 1 1 210px;
  min-width: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
}

.hero-copy .mythic-pronunciation + .actions {
  margin-top: 16px;
}

.hero-art {
  isolation: isolate;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-art::before {
  z-index: 8;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--paper) 24%, transparent), transparent 46%),
    linear-gradient(180deg, transparent 72%, color-mix(in srgb, var(--paper) 12%, transparent));
}

.hero-art::after {
  z-index: 9;
  background: linear-gradient(90deg, color-mix(in srgb, var(--paper) 62%, transparent), transparent 43%);
}

.hero-layer {
  inset: 0;
  opacity: 1;
}

.hero-layer img {
  object-fit: cover;
  object-position: center center;
}

img.hero-layer {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.hero-flat {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

:root[data-hero-mode="flat"] .hero-art .hero-layer {
  display: none;
}

:root[data-hero-mode="flat"] .hero-art .hero-flat {
  display: block;
}

.hero-layer:nth-child(1) {
  --z: 1;
  --tx: calc(var(--pointer-x) * -3px);
  --ty: calc((var(--pointer-y) * -2px) + (var(--hero-scroll) * -5px));
}

.hero-layer:nth-child(2) {
  --z: 2;
  --tx: calc(var(--pointer-x) * 3px);
  --ty: calc((var(--pointer-y) * 2px) + (var(--hero-scroll) * -8px));
  opacity: 0.83;
}

.hero-layer:nth-child(3) {
  --z: 3;
  --tx: calc(var(--pointer-x) * 5px);
  --ty: calc((var(--pointer-y) * 3px) + (var(--hero-scroll) * -10px));
  opacity: 0.82;
}

.hero-layer:nth-child(4) {
  --z: 4;
  --tx: calc(var(--pointer-x) * 9px);
  --ty: calc((var(--pointer-y) * 5px) + (var(--hero-scroll) * -15px));
  opacity: 1;
}

.hero-layer:nth-child(5) {
  --z: 5;
  --tx: calc(var(--pointer-x) * 13px);
  --ty: calc((var(--pointer-y) * 7px) + (var(--hero-scroll) * -20px));
  opacity: 1;
}

.hero-layer:nth-child(6) {
  --z: 6;
  --tx: calc(var(--pointer-x) * 4px);
  --ty: calc((var(--pointer-y) * 2px) + (var(--hero-scroll) * -7px));
  opacity: 0.88;
}

.hero-layer:nth-child(7) {
  --z: 7;
  --tx: calc(var(--pointer-x) * 5px);
  --ty: calc((var(--pointer-y) * 3px) + (var(--hero-scroll) * -9px));
  opacity: 0.88;
}

body.product-icarus .hero-layer:nth-child(6) {
  --z: 6;
  --tx: calc(var(--pointer-x) * 17px);
  --ty: calc((var(--pointer-y) * 9px) + (var(--hero-scroll) * -24px));
  opacity: 1;
}

main {
  counter-reset: detail;
}

.section {
  counter-increment: detail;
  padding: 86px 0;
}

.section::before {
  height: 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.section-inner {
  position: relative;
}

.section-inner::before {
  content: "";
  position: absolute;
  top: -87px;
  bottom: -87px;
  left: -18px;
  width: 1px;
  background: var(--draft-grid-major);
  pointer-events: none;
}

.section-header {
  position: relative;
  max-width: 840px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line-strong);
  padding: 0 0 25px 18px;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: min(240px, 38%);
  height: 9px;
  border-right: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: linear-gradient(var(--line) 1px, transparent 1px) center / 100% 4px repeat-y;
}

.section-header.center {
  max-width: 900px;
  padding-left: 0;
}

.eyebrow {
  gap: 9px;
  color: color-mix(in srgb, var(--accent) 76%, var(--ink));
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.12em;
}

.section-header .eyebrow::before {
  content: "D" counter(detail, decimal-leading-zero) " /";
  color: var(--draft-red);
}

.eyebrow::after {
  width: 48px;
  background: var(--draft-red);
}

.pillar-grid,
.flow-grid,
.principle-grid,
.preview-grid {
  gap: 18px;
}

.content-card,
.form-panel,
.testflight-form,
.interface-panel {
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  box-shadow: none;
}

.content-card::before,
.form-panel::before {
  inset: 6px;
  border-radius: 0;
  opacity: 0.48;
}

.content-card::after {
  display: none;
}

.feature-card,
.flow-step,
.principle-card {
  min-height: 190px;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 25px 4px 27px;
  background: transparent;
  box-shadow: none;
}

.feature-card::before,
.feature-card::after,
.flow-step::before,
.flow-step::after,
.principle-card::before,
.principle-card::after {
  display: none;
}

.feature-card h3,
.flow-step h3,
.principle-card h3,
.content-card h2,
.content-card h3,
.docs-card h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.step-index {
  position: relative;
  place-items: start;
  width: auto;
  height: auto;
  margin-bottom: 20px;
  border: 0;
  border-radius: 0;
  color: var(--draft-red);
  background: transparent;
  box-shadow: none;
  letter-spacing: 0.12em;
}

.interface-panel {
  position: relative;
  min-height: 235px;
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--paper) 75%, transparent), inset 0 0 0 7px var(--line);
}

.interface-panel::after {
  content: var(--site-code) " / UI ELEVATION";
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.interface-bar {
  height: 38px;
  margin: 6px 6px 0;
  border-bottom: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--accent-soft) 52%, transparent);
}

.interface-bar span {
  width: 11px;
  height: 3px;
  border-radius: 0;
  background: var(--draft-red);
}

.ui-row,
.ui-tile,
.ui-line {
  border-radius: 0;
  background: color-mix(in srgb, var(--paper) 78%, var(--surface));
}

.principle-band {
  background: transparent;
}

.ecosystem-band,
.testflight-layout {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.value-strip li,
.token-list span,
.platform-row span,
.testflight-points span,
.status-pill {
  border-radius: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.065em;
}

.value-strip li::before,
.token-list span::before,
.platform-row span::before,
.testflight-points span::before {
  content: "+";
  margin-right: 6px;
  color: var(--draft-red);
  font-family: var(--mono);
}

.button {
  position: relative;
  min-height: 47px;
  border-radius: 0;
  padding: 13px 19px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--paper) 64%, transparent), inset 0 0 0 5px var(--line);
}

.button.primary {
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--ink-strong) 82%, var(--accent)), inset 0 0 0 5px color-mix(in srgb, var(--paper) 22%, transparent);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--paper) 62%, var(--accent-soft)), inset 0 0 0 5px var(--accent), 0 8px 18px color-mix(in srgb, var(--accent) 16%, transparent);
}

.field input,
.field select,
.field textarea,
.docs-search input,
#searchbar input,
#q {
  border-radius: 0;
  background:
    linear-gradient(var(--draft-grid) 1px, transparent 1px) 0 0 / 100% 28px,
    color-mix(in srgb, var(--paper) 76%, transparent);
  font-family: var(--body);
}

.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero,
.page-layout {
  width: min(var(--max), calc(100% - 40px));
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 48svh;
  border-right: 1px solid var(--draft-grid-major);
  border-left: 1px solid var(--draft-grid-major);
  padding: calc(var(--header-height) + 82px) clamp(22px, 4vw, 58px) 58px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--paper) 72%, transparent), transparent 78%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 30%, transparent), transparent);
}

.page-hero::before {
  display: none;
}

.page-hero::after {
  height: 5px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow::before {
  content: var(--site-code) " / REFERENCE";
  color: var(--draft-red);
}

.page-hero h1 {
  max-width: 12ch;
}

.page-layout {
  position: relative;
  border-right: 1px solid var(--draft-grid-major);
  border-left: 1px solid var(--draft-grid-major);
  padding: 38px clamp(16px, 3vw, 38px) 96px;
}

.page-copy {
  gap: 18px;
}

.content-card,
.form-panel {
  padding: 34px;
}

.content-card::after {
  opacity: 0.12;
}

.content-card h2,
.content-card h3 {
  position: relative;
}

.content-card h2::before,
.content-card h3::before {
  content: "+";
  margin-right: 8px;
  color: var(--draft-red);
  font-family: var(--mono);
  font-size: 0.62em;
  vertical-align: 0.15em;
}

.seal {
  width: 132px;
  height: 132px;
  border-radius: 0;
  background: color-mix(in srgb, var(--paper) 60%, var(--accent-soft));
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--paper) 76%, transparent), inset 0 0 0 7px var(--line);
}

.seal svg {
  display: block;
  width: 64px;
  height: 64px;
}

.seal::before {
  display: none;
}

.auth-meta div {
  border-radius: 0;
  font-family: var(--mono);
  font-size: 11px;
}

.docs-nav,
.docs-panel,
.docs-card,
.docs-note,
.article,
pre {
  border-radius: 0 !important;
}

.docs-nav,
.docs-panel,
.docs-card,
.article {
  border-color: var(--line-strong) !important;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 76%, transparent), color-mix(in srgb, var(--paper) 60%, transparent)) !important;
  box-shadow: var(--draft-shadow);
}

.docs-nav {
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--paper) 74%, transparent), inset 0 0 0 6px var(--line), var(--draft-shadow);
}

.docs-nav a,
.docs-nav button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.035em;
}

.docs-note {
  border: 1px solid var(--line-strong) !important;
  border-left: 4px solid var(--draft-red) !important;
  background: color-mix(in srgb, var(--accent-soft) 62%, var(--paper)) !important;
}

pre {
  border: 1px solid var(--line-strong) !important;
  background:
    linear-gradient(var(--draft-grid) 1px, transparent 1px) 0 0 / 100% 24px,
    color-mix(in srgb, var(--paper-2) 74%, var(--surface)) !important;
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--paper) 60%, transparent), inset 0 0 0 6px var(--line);
}

code,
pre {
  font-family: var(--mono);
}

.footer,
.site-footer,
.axis-footer,
.hades-footer {
  border-top: 4px double var(--line-strong);
}

.footer-inner,
.footer,
.axis-footer,
.hades-footer {
  position: relative;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.footer-links a {
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
}

.footer-links a:hover {
  border-bottom-color: var(--draft-red);
}

.footer.has-tagline,
.footer-inner.has-tagline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
}

.footer-tagline {
  max-width: 46ch;
  color: var(--ink-strong);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: none;
}

.footer.has-tagline .footer-links,
.footer-inner.has-tagline .footer-links {
  justify-self: end;
}

@media (max-width: 1120px) {
  .site-nav {
    border: 0;
  }

  .hero-copy {
    max-width: 580px;
  }
}

@media (max-width: 760px) {
  .brand {
    min-height: 44px;
  }

  .theme-toggle,
  .menu-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .footer.has-tagline,
  .footer-inner.has-tagline {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    text-align: center;
  }

  .footer.has-tagline .footer-links,
  .footer-inner.has-tagline .footer-links {
    justify-self: center;
    justify-content: center;
  }

  .site-header {
    top: 8px;
  }

  .site-header::after {
    display: none;
  }

  .hero {
    min-height: var(--hero-mobile-height, 96svh);
    margin-top: 7px;
  }

  .hero::before {
    inset: 10px;
    background:
      linear-gradient(180deg, transparent 74.9%, color-mix(in srgb, var(--draft-red) 35%, transparent) 75%, transparent 75.1%),
      linear-gradient(90deg, var(--line-strong) 10px, transparent 10px) 0 0 / 30px 1px repeat-x,
      linear-gradient(var(--line-strong) 10px, transparent 10px) 0 0 / 1px 30px repeat-y;
  }

  .hero-shell {
    min-height: calc(var(--hero-mobile-height, 96svh) - var(--header-height) - 20px);
    padding: 46px 0 58px;
  }

  .hero-copy {
    max-width: min(100%, 560px);
    padding: 44px 25px 27px;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
  }

  .hero-copy::before {
    left: 25px;
  }

  .hero-art {
    left: 50%;
    width: 165vw;
    opacity: 0.54;
    transform: translateX(-50%);
  }

  .hero-art::after {
    background: linear-gradient(90deg, color-mix(in srgb, var(--paper) 50%, transparent), color-mix(in srgb, var(--paper) 10%, transparent));
  }

  .section {
    padding: 66px 0;
  }

  .section-inner::before {
    top: -67px;
    bottom: -67px;
    left: -8px;
  }

  .section-header {
    padding-left: 12px;
  }

  .page-hero,
  .page-layout {
    width: min(100% - 28px, var(--max));
  }

  .page-hero {
    min-height: 45svh;
    padding: calc(var(--header-height) + 68px) 22px 44px;
  }

  .page-layout {
    padding: 26px 12px 76px;
  }

  .content-card,
  .form-panel {
    padding: 26px;
  }
}

@media (max-width: 480px) {
  .mythic-pronunciation {
    gap: 3px 8px;
    margin-top: 10px;
    padding-top: 5px;
    padding-bottom: 6px;
  }

  .mythic-pronunciation-note {
    flex-basis: 100%;
    font-size: 10px;
  }

  .hero-copy .mythic-pronunciation + .actions {
    margin-top: 12px;
  }

  .hero-copy {
    padding: 42px 20px 23px;
  }

  .hero-copy::before {
    right: 12px;
    left: 20px;
  }

  .feature-card,
  .flow-step,
  .principle-card {
    min-height: 0;
    padding: 22px 2px 24px;
  }

  .actions .button {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-layer {
    transform: none !important;
  }
}
