:root {
  --ivory: #f2e6c7;
  --ivory-soft: rgba(242, 230, 199, 0.72);
  --ivory-faint: rgba(242, 230, 199, 0.12);
  --old-gold: #dba647;
  --night-ink: #121421;
  --deep-ink: #0d0b10;
  --rose-glass: #bd476b;
  --blue-glass: #1a59ab;
  --teal-glass: #21949e;
  --stone: #565661;
  --panel: rgba(242, 230, 199, 0.075);
  --panel-strong: rgba(18, 20, 33, 0.78);
  --line: rgba(242, 230, 199, 0.16);
  --shadow: rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 88% 10%, rgba(219, 166, 71, 0.18), transparent 30rem),
    radial-gradient(circle at 12% 84%, rgba(189, 71, 107, 0.13), transparent 28rem),
    linear-gradient(135deg, var(--night-ink), #2a1c24 52%, var(--deep-ink));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 230, 199, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 230, 199, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 78%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  transform: translateY(-150%);
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  color: #160f09;
  background: var(--old-gold);
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(242, 230, 199, 0.08);
  background: rgba(13, 11, 16, 0.72);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(219, 166, 71, 0.18);
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: var(--ivory-soft);
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ivory);
  background: rgba(242, 230, 199, 0.09);
}

.nav-links a:active,
.button:active {
  transform: translateY(1px);
}

.hero {
  position: relative;
  min-height: clamp(560px, 72dvh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid rgba(242, 230, 199, 0.08);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 11, 16, 0.94) 0%, rgba(18, 20, 33, 0.76) 48%, rgba(13, 11, 16, 0.2) 100%),
    linear-gradient(0deg, rgba(13, 11, 16, 0.96) 0%, rgba(13, 11, 16, 0.1) 38%),
    url("assets/atelier-background.png") right 18% center / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 7rem 0 5rem;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(240px, 0.48fr);
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: end;
}

.kicker {
  margin: 0 0 0.8rem;
  color: var(--old-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 6.3rem);
  line-height: 0.96;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  margin: 0;
}

.lede {
  max-width: 660px;
  margin-top: 1.2rem;
  color: var(--ivory-soft);
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
}

.hero-mark {
  justify-self: end;
  width: min(320px, 100%);
  padding: 1rem;
  border-radius: 8px;
  background: rgba(18, 20, 33, 0.58);
  border: 1px solid rgba(219, 166, 71, 0.34);
  box-shadow: inset 0 1px 0 rgba(242, 230, 199, 0.10), 0 24px 60px var(--shadow);
}

.hero-mark img {
  border-radius: 8px;
}

.page-hero {
  padding: clamp(4rem, 10vw, 7rem) 0 3rem;
  border-bottom: 1px solid rgba(242, 230, 199, 0.08);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section + .section {
  border-top: 1px solid rgba(242, 230, 199, 0.08);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1fr);
  gap: clamp(2rem, 7vw, 5.5rem);
  align-items: start;
}

.section-label {
  color: var(--old-gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.support-panel,
.glass-panel,
.legal-panel,
.toc {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(242, 230, 199, 0.115), rgba(242, 230, 199, 0.04));
  box-shadow: inset 0 1px 0 rgba(242, 230, 199, 0.09), 0 22px 55px rgba(0, 0, 0, 0.18);
}

.support-panel {
  padding: clamp(1.2rem, 3vw, 1.6rem);
}

.support-panel p {
  color: var(--ivory-soft);
}

.support-panel a,
.legal-panel a,
.doc-body a {
  color: var(--old-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 230, 199, 0.18);
  color: var(--ivory);
  background: rgba(242, 230, 199, 0.09);
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button.primary {
  color: #1a1208;
  background: var(--old-gold);
  border-color: rgba(242, 230, 199, 0.38);
}

.button:hover {
  background: rgba(242, 230, 199, 0.14);
  border-color: rgba(242, 230, 199, 0.32);
}

.button.primary:hover {
  background: #e4b65c;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.quick-links a {
  min-height: 128px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ivory);
  background: rgba(18, 20, 33, 0.46);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.quick-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(219, 166, 71, 0.45);
  background: rgba(242, 230, 199, 0.075);
}

.quick-links strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.quick-links span {
  display: block;
  color: var(--ivory-soft);
  font-size: 0.92rem;
}

.qa-list {
  display: grid;
  gap: 0.85rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 20, 33, 0.48);
  overflow: hidden;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  color: var(--ivory);
  font-weight: 750;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  padding: 0 1.1rem 1.1rem;
  color: var(--ivory-soft);
}

.glass-panel {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(33, 148, 158, 0.20), transparent 13rem),
    radial-gradient(circle at 74% 72%, rgba(189, 71, 107, 0.18), transparent 12rem),
    rgba(18, 20, 33, 0.62);
}

.fragment-art {
  width: min(88%, 390px);
  opacity: 0.56;
  filter: sepia(0.34) saturate(1.25);
  mix-blend-mode: screen;
}

.pane-art {
  position: absolute;
  right: -7%;
  bottom: -12%;
  width: min(58%, 300px);
  opacity: 0.22;
}

.status-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(242, 230, 199, 0.08);
}

.status-strip div {
  padding: 0.9rem;
  background: rgba(18, 20, 33, 0.56);
}

.status-strip strong {
  display: block;
  color: var(--old-gold);
  font-size: 0.86rem;
}

.status-strip span {
  display: block;
  margin-top: 0.18rem;
  color: var(--ivory-soft);
  font-size: 0.84rem;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 1rem;
}

.toc strong {
  color: var(--old-gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  margin-top: 0.75rem;
  color: var(--ivory-soft);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ivory);
}

.doc-body {
  display: grid;
  gap: 1rem;
}

.legal-panel {
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.legal-panel h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.legal-panel h3 {
  margin-top: 1rem;
  margin-bottom: 0.45rem;
}

.legal-panel p,
.legal-panel li {
  color: var(--ivory-soft);
}

.legal-panel ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.meta-grid div {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(242, 230, 199, 0.12);
  background: rgba(18, 20, 33, 0.42);
}

.meta-grid strong {
  display: block;
  color: var(--old-gold);
}

.meta-grid span {
  display: block;
  margin-top: 0.25rem;
  color: var(--ivory-soft);
  font-size: 0.92rem;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(242, 230, 199, 0.08);
  color: rgba(242, 230, 199, 0.58);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-inner a {
  color: rgba(242, 230, 199, 0.68);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--ivory);
}

@media (max-width: 820px) {
  .nav {
    grid-template-columns: 1fr;
    padding: 0.85rem 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-content,
  .split,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .hero-mark {
    justify-self: start;
    width: min(220px, 70vw);
  }

  .quick-links,
  .meta-grid,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-mark {
    animation: breathe 5.6s ease-in-out infinite alternate;
  }

  .fragment-art {
    animation: glass-drift 10s ease-in-out infinite alternate;
  }
}

@keyframes breathe {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes glass-drift {
  from {
    transform: rotate(-2deg) scale(0.98);
  }

  to {
    transform: rotate(2deg) scale(1.02);
  }
}
