:root {
  color-scheme: light dark;
  --canvas: #f8f5ed;
  --canvas-secondary: #ece8de;
  --surface: #fdfbf7;
  --ink: #303338;
  --muted: #686d75;
  --line: #d7cdbe;
  --interactive-line: #958875;
  --bronze: #a87139;
  --bronze-text: #8f5928;
  --on-bronze: #0d0f12;
  --night: #171a1d;
  --night-surface: #262b31;
  --night-line: #454b53;
  --night-ink: #efe8dc;
  --night-muted: #bdc0c5;
  --shadow: rgba(48, 51, 56, 0.14);
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas-secondary);
  font-family: var(--sans);
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--canvas-secondary);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--bronze-text);
}

a:focus-visible,
summary:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--bronze);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border: 1px solid var(--interactive-line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-180%);
}

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

.site-frame {
  width: min(100%, 1280px);
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--canvas);
  box-shadow: 0 24px 72px var(--shadow);
}

.site-header {
  position: relative;
  z-index: 3;
  padding: 24px 64px 0;
  background: var(--canvas);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--bronze);
  border-radius: 12px;
}

.language-list,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-switcher {
  position: relative;
}

.language-switcher summary {
  min-width: 112px;
  padding: 10px 0 10px 12px;
  cursor: pointer;
  font-size: 0.875rem;
  text-align: right;
}

.language-switcher[open] .language-list {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 14px 34px var(--shadow);
}

.language-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.875rem;
  text-decoration: none;
}

.language-list a[aria-current="page"] {
  color: var(--bronze-text);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 465px;
  overflow: hidden;
  padding: 54px 64px 42px;
  border-bottom: 1px solid var(--line);
}

.hero-still-life {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-still-life img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(60%, 680px);
}

.rail-index {
  position: absolute;
  top: 54px;
  left: 18px;
  z-index: 2;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.rail-index::after {
  display: block;
  width: 1px;
  height: 28px;
  margin: 8px auto 0;
  background: var(--bronze);
  content: "";
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--bronze-text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--serif);
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 4.4vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.12;
}

.lede {
  max-width: 43ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}

.store-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.store-link img {
  width: auto;
  height: 50px;
}

.store-link--pending {
  cursor: not-allowed;
  opacity: 0.7;
}

.store-note {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.free-note {
  margin: 16px 0 0;
  color: var(--bronze-text);
  font-weight: 700;
}

.experience-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(380px, 1.12fr);
  height: 600px;
  min-height: 0;
  margin: -28px 64px 26px;
  overflow: hidden;
  border: 1px solid var(--night-line);
  border-radius: 24px;
  background: var(--night);
  color: var(--night-ink);
  box-shadow: 0 22px 42px rgba(23, 26, 29, 0.22);
}

.experience-copy {
  overflow: hidden;
  padding: 38px 36px;
  border-right: 1px solid var(--night-line);
}

.experience-copy .eyebrow {
  color: #d39b61;
}

.experience-copy h2 {
  font-size: clamp(1.9rem, 2.8vw, 3rem);
}

.experience-copy > p:not(.eyebrow) {
  color: var(--night-muted);
}

.path-list {
  display: grid;
  gap: 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.path-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
}

.path-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d39b61;
  border-radius: 50%;
  color: #d39b61;
  font-size: 0.85rem;
  font-weight: 700;
}

.path-step h3 {
  margin: 0 0 4px;
  font-size: 1.55rem;
}

.path-step p {
  margin: 0;
  color: var(--night-muted);
  font-size: 0.93rem;
}

.experience-screen {
  min-width: 0;
  min-height: 0;
  padding: 22px 22px 0;
  background: var(--night-surface);
}

.screen-window {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--night-line);
  border-radius: 18px 18px 0 0;
  background: var(--night);
}

.screen-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screen-window picture,
.product-proof picture {
  display: block;
  width: 100%;
  height: 100%;
}

.experience-panel--compact {
  grid-template-columns: minmax(420px, 1.3fr) minmax(280px, 0.7fr);
  height: 430px;
  margin-top: 28px;
}

.experience-panel--compact .path-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.experience-panel--compact .path-step {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
}

.experience-panel--compact .path-number {
  width: 30px;
  height: 30px;
}

.experience-panel--compact .path-step h3 {
  font-size: 1.15rem;
}

.content-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(420px, 1.22fr);
  gap: 44px;
  padding: 12px 64px;
  border-top: 1px solid var(--line);
}

.section-copy {
  align-self: center;
  font-size: 0.9rem;
  line-height: 1.45;
}

.section-copy p:last-child {
  max-width: 46ch;
  margin-bottom: 0;
  color: var(--muted);
}

.method-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.method-rule {
  width: 3px;
  min-height: 28px;
  border-radius: 999px;
  background: var(--bronze);
}

.method-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.method-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-card {
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.quick-card-copy {
  padding: 10px 16px 5px;
}

.quick-card h3 {
  max-width: 24ch;
  margin-bottom: 10px;
}

.quick-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.coin-image {
  width: 100%;
  max-height: 68px;
  object-fit: cover;
  object-position: center;
}

.product-proof {
  min-width: 0;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--night-line);
  border-radius: 16px;
  background: var(--night);
  box-shadow: 0 16px 32px rgba(23, 26, 29, 0.12);
}

.product-proof img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.product-proof--coins img {
  object-position: center;
}

.topic-navigation {
  padding: 18px 64px;
  background: var(--canvas);
}

.topic-navigation--top {
  border-bottom: 1px solid var(--line);
}

.topic-navigation--bottom {
  border-top: 1px solid var(--line);
}

.topic-navigation ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-navigation a {
  display: inline-block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.topic-navigation a[aria-current="page"] {
  color: var(--bronze-text);
  font-weight: 750;
  text-decoration: underline;
}

.gateway-languages {
  padding: 64px;
}

.gateway-languages h2 {
  max-width: 20ch;
}

.gateway-languages ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.gateway-languages a {
  display: grid;
  min-height: 118px;
  align-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
}

.gateway-languages a:hover {
  border-color: var(--bronze);
}

.gateway-languages strong {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.gateway-languages span {
  color: var(--muted);
  font-size: 0.78rem;
}

.demo-video {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(460px, 1.3fr);
  gap: 44px;
  align-items: center;
  margin: 28px 64px 56px;
  padding: 32px;
  border: 1px solid var(--night-line);
  border-radius: 20px;
  background: var(--night);
  color: var(--night-ink);
  box-shadow: 0 18px 38px rgba(23, 26, 29, 0.18);
}

.demo-video h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}

.demo-video .eyebrow {
  color: #d39b61;
}

.demo-video summary {
  color: var(--night-muted);
  cursor: pointer;
  font-size: 0.88rem;
}

.demo-video ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--night-muted);
  font-size: 0.84rem;
}

.demo-video video {
  width: 100%;
  border: 1px solid var(--night-line);
  border-radius: 14px;
  background: #0d0f12;
}

.not-found {
  display: grid;
  width: min(100% - 40px, 720px);
  min-height: 100vh;
  margin: 0 auto;
  place-content: center;
  justify-items: start;
}

.not-found img {
  margin-bottom: 24px;
  border-radius: 14px;
}

.not-found ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.utility-page {
  padding: 56px 64px 72px;
}

.utility-page > header {
  max-width: 760px;
  margin-bottom: 40px;
}

.utility-page h1 {
  max-width: 16ch;
}

.utility-page h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.utility-grid--spaced {
  margin-top: 20px;
}

.utility-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.utility-card > :last-child {
  margin-bottom: 0;
}

.utility-card address {
  font-style: normal;
}

.utility-note {
  margin-top: 20px;
  padding: 20px 24px;
  border-left: 4px solid var(--bronze);
  background: var(--surface);
}

.utility-language-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.utility-language-list details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.utility-language-list summary {
  cursor: pointer;
  font-weight: 700;
}

.product-proof--standard img {
  object-position: center 54%;
}

.product-proof--journal img {
  object-position: center 21%;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 24px 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-tagline {
  margin: 0;
  text-align: center;
}

.footer-navigation {
  position: relative;
  justify-self: end;
}

.footer-navigation summary {
  cursor: pointer;
  white-space: nowrap;
}

.footer-navigation[open] nav {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: calc(100% + 10px);
  width: max-content;
  min-width: 210px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 14px 34px var(--shadow);
}

.footer-nav {
  display: grid;
  gap: 4px;
}

.footer-nav a {
  display: block;
  padding: 6px 8px;
}

.footer-nav a {
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #171a1d;
    --canvas-secondary: #111315;
    --surface: #262b31;
    --ink: #efe8dc;
    --muted: #bdc0c5;
    --line: #454b53;
    --interactive-line: #707983;
    --bronze: #d39b61;
    --bronze-text: #d39b61;
    --shadow: rgba(0, 0, 0, 0.36);
  }

  .hero-still-life {
    filter: brightness(0.58) saturate(0.82);
  }

  .hero-copy {
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.38);
  }

  .quick-card {
    background: var(--surface);
  }
}

@media (max-width: 960px) {
  .site-header {
    padding-inline: 32px;
  }

  .hero { padding-inline: 48px; }

  .hero-copy {
    width: min(58%, 560px);
  }

  .experience-panel {
    grid-template-columns: minmax(280px, 0.88fr) minmax(340px, 1.12fr);
    margin-inline: 32px;
  }

  .experience-copy {
    padding-inline: 32px;
  }

  .content-section {
    gap: 38px;
    padding-inline: 40px;
  }

  .topic-navigation {
    padding-inline: 40px;
  }

  .gateway-languages {
    padding-inline: 40px;
  }

  .demo-video {
    margin-inline: 32px;
  }

  .gateway-languages ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    padding-inline: 40px;
  }
}

@media (max-width: 820px) {
  .utility-page {
    padding: 38px 22px 52px;
  }

  .utility-grid {
    grid-template-columns: 1fr;
  }

  .site-frame {
    border: 0;
  }

  .site-header {
    padding: 18px 20px 0;
  }

  .header-row {
    align-items: flex-start;
  }

  .brand span {
    max-width: 8ch;
    line-height: 1.05;
  }

  .hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 32px 20px 0;
  }

  .hero-copy {
    order: 1;
    width: 100%;
  }

  .hero-still-life {
    position: relative;
    order: 2;
    width: calc(100% + 40px);
    height: 220px;
    max-width: none;
    margin: 24px -20px 0;
  }

  .hero-still-life img {
    object-position: 72% center;
  }

  .rail-index {
    top: 18px;
    left: 20px;
  }

  .rail-index::after {
    display: none;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .lede {
    margin-bottom: 22px;
    font-size: 1rem;
  }

  .store-link img {
    height: 44px;
  }

  .demo-video video {
    width: min(100%, 360px);
    aspect-ratio: 9 / 16;
    justify-self: center;
    object-fit: cover;
    object-position: center;
  }

  .experience-panel {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    margin: 0 20px 36px;
    border-radius: 18px;
  }

  .experience-panel--compact {
    margin-top: 0;
  }

  .experience-panel--compact .path-list {
    grid-template-columns: 1fr;
  }

  .experience-copy {
    padding: 36px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--night-line);
  }

  .experience-screen {
    padding: 20px 20px 0;
  }

  .screen-window {
    min-height: 520px;
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 20px;
  }

  .content-section .rail-index {
    position: static;
    grid-column: 1;
    color: var(--bronze-text);
  }

  .product-proof {
    height: 330px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 20px 32px;
  }

  .topic-navigation {
    padding: 14px 20px;
  }

  .topic-navigation ul {
    justify-content: flex-start;
    gap: 4px 18px;
  }

  .gateway-languages {
    padding: 48px 20px;
  }

  .gateway-languages ul {
    grid-template-columns: 1fr;
  }

  .gateway-languages a {
    min-height: 0;
  }

  .demo-video {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 0 20px 40px;
    padding: 22px;
  }

  .footer-tagline {
    text-align: left;
  }

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

  .footer-navigation {
    justify-self: start;
  }

  .footer-navigation[open] nav {
    position: static;
    width: auto;
    margin-top: 10px;
  }
}

@media (max-width: 380px) {
  .path-step {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .method-rule,
  .rail-index::after {
    background: CanvasText;
  }

  .experience-panel,
  .quick-card,
  .product-proof,
  .store-link {
    border: 1px solid CanvasText;
  }
}
