:root {
  color-scheme: light;
  --ink: #172229;
  --muted: #4e5e67;
  --dark: #081118;
  --paper: #f9f8f2;
  --tint: #e9ede9;
  --line: #cdd4ce;
  --accent: #f5bb60;
  --width: 1190px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #ac6110;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  padding: .5rem 1rem;
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }
.wrap { width: min(var(--width), calc(100% - 5rem)); margin-inline: auto; }
.site-header { color: #f8f7f0; background: var(--dark); border-bottom: 1px solid #ffffff22; }
.header-inner { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-size: .92rem; font-weight: 650; text-decoration: none; line-height: 1.2; }
.brand-mark { border: 1px solid #f5bb607d; color: var(--accent); padding: .4rem .55rem; font-size: .72rem; letter-spacing: .13em; }
nav { display: flex; flex-wrap: wrap; gap: clamp(.85rem, 3vw, 2.4rem); font-size: .88rem; }
nav a { color: #d3dddf; text-decoration: none; white-space: nowrap; }
nav a:hover, nav a:focus-visible { color: var(--accent); }
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(530px, 71vh, 735px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  color: #fcfbf6;
}
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: center 51%; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #081118f5 0%, #081118eb 21%, #081118a6 44%, #08111814 73%),
              linear-gradient(0deg, #08111873, transparent 33%);
}
.hero-inner { padding-block: 4.5rem; }
.hero h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.4rem, 5.3vw, 5.3rem);
  font-weight: 710;
  line-height: 1.025;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.hero p {
  max-width: 32ch;
  margin: 1.45rem 0 2rem;
  color: #dce5e7;
  font-size: clamp(1.05rem, 1.7vw, 1.26rem);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  padding: .78rem 1rem;
  color: #1c211c;
  background: var(--accent);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
}
.button:hover { background: #ffd18c; }
.button span { font-size: 1.1rem; line-height: 1; }
.section { padding-block: clamp(3.2rem, 7vw, 6.7rem); scroll-margin-top: 1rem; }
.section-tinted { background: var(--tint); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .76fr);
  align-items: end;
  gap: 1.8rem 3rem;
  margin-bottom: clamp(1.7rem, 4vw, 3.2rem);
}
h2, h3 { margin: 0; line-height: 1.12; }
h2 { font-size: clamp(2rem, 4.1vw, 3.5rem); letter-spacing: -.045em; font-weight: 680; }
h3 { font-size: 1.28rem; letter-spacing: -.023em; }
.section-heading p, .flow p, .type-card p:not(.designation), details p { margin: 0; color: var(--muted); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.flow li { border-top: 1px solid #9cadab; padding: 1.05rem 1.15rem .2rem 0; }
.flow li + li { border-left: 1px solid var(--line); padding-left: 1.15rem; }
.step { display: block; margin-bottom: 1.15rem; color: #74500f; font: 600 .8rem/1.3 Consolas, monospace; }
.flow p, .type-card p:not(.designation) { margin-top: .75rem; font-size: .95rem; }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.type-card { background: var(--paper); border-top: 3px solid #9faeaa; padding: 1.45rem 1.45rem 1.65rem; }
.designation { margin: 0 0 .7rem; color: #74500f; font: 700 .8rem/1.4 Consolas, monospace; letter-spacing: .08em; }
.glossary { border-top: 1px solid #9cadab; }
details { border-bottom: 1px solid var(--line); padding: .45rem .15rem; }
summary { cursor: pointer; font-weight: 650; padding: .5rem 0; }
details p { padding: .05rem 1.25rem 1rem; max-width: 66ch; }
.site-footer { background: var(--dark); color: #e0e7e6; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.75rem; font-size: .92rem; }
.footer-inner p { margin: 0; }
.footer-inner a { text-underline-offset: .22em; }
@media (max-width: 900px) {
  .wrap { width: min(var(--width), calc(100% - 3rem)); }
  .hero-image { object-position: 62% center; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li { padding-bottom: 1.25rem; }
  .flow li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .type-card { padding-inline: 1.05rem; }
}
@media (max-width: 630px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 0; align-items: start; flex-direction: column; gap: .68rem; padding-block: .9rem; }
  nav { gap: .6rem 1.1rem; font-size: .83rem; }
  .hero { min-height: 510px; align-items: end; }
  .hero-inner { padding-block: 2rem 2.65rem; }
  .hero-image { object-position: 63% 46%; }
  .hero::after { background: linear-gradient(0deg, #081118ff 0%, #081118e3 28%, #0811182b 82%); }
  .hero h1 { font-size: clamp(2.12rem, 8.6vw, 3.15rem); }
  .hero p { margin-block: 1rem 1.25rem; }
  .section-heading, .types { grid-template-columns: 1fr; gap: .9rem; }
  .footer-inner { flex-direction: column; align-items: start; gap: .5rem; }
}
@media (max-width: 355px) {
  .flow { grid-template-columns: 1fr; }
  .flow li + li { border-left: 0; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
