:root {
  color-scheme: dark;
  --background: #10120e;
  --surface: #1b1e17;
  --text: #f1f4e9;
  --muted: #b7bdb1;
  --line: #363e30;
  --accent: #d1f28f;
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; text-underline-offset: 0.22em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
p, h1, h2, figure, dl, dd { margin: 0; }
.wrap { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header { min-height: 5rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 780; text-decoration: none; }
.brand img { border-radius: 7px; border: 1px solid var(--line); }
.site-header nav, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-header nav a, .site-footer a { color: var(--muted); font-size: 0.91rem; }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.9fr); gap: clamp(2.2rem, 8vw, 7rem); align-items: center; padding-block: clamp(2rem, 7vw, 5rem); }
.hero h1 { max-width: 12ch; font-size: clamp(3.15rem, 7.6vw, 6.5rem); line-height: 1.04; letter-spacing: -0.085em; font-weight: 860; }
.platform { margin-bottom: 1.35rem; color: var(--accent); font-size: 0.92rem; font-weight: 680; }
.lede { margin-block: 1.5rem 1.75rem; max-width: 32rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.7; word-break: keep-all; }
.action { display: inline-flex; align-items: center; min-height: 2.75rem; border-radius: 0.5rem; padding-inline: 1.05rem; background: var(--accent); color: #161b10; font-weight: 750; text-decoration: none; }
.action:hover { background: #e0f7b3; }
.portrait { justify-self: center; width: min(100%, 23.5rem); }
.viewfinder { isolation: isolate; position: relative; overflow: hidden; aspect-ratio: 9 / 14; border: 1px solid #6d875b; border-radius: 1.2rem; background: var(--surface); }
.viewfinder img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.reticle { position: absolute; top: 23%; left: 35%; width: 30%; aspect-ratio: 1; border: 1px solid #e7f2b7; border-radius: 0.55rem; opacity: 0.7; }
.lens { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); border-radius: 2rem; padding: 0.38rem 0.76rem; background: #131710e8; color: var(--accent); font-size: 0.9rem; font-weight: 700; }
figcaption { color: var(--muted); font-size: 0.82rem; margin-top: 0.6rem; text-align: center; }

.preset { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 1rem 2rem; align-items: center; padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 1.15rem; background: var(--surface); }
.preset h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); letter-spacing: -0.06em; }
.preset p { margin-top: 0.55rem; color: var(--muted); line-height: 1.65; word-break: keep-all; }
.preset dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; }
.preset dt { color: var(--muted); font-size: 0.89rem; }
.preset dd { margin-top: 0.3rem; font-size: clamp(0.9rem, 1.8vw, 1.16rem); font-weight: 720; color: var(--accent); }
.preset .fine { grid-column: 1 / -1; font-size: 0.86rem; margin-top: 0; }
.site-footer { margin-top: 3rem; padding-block: 1.6rem 2.5rem; border-top: 1px solid var(--line); color: var(--muted); }

.document { max-width: 46rem; padding-top: clamp(2.5rem, 7vw, 5rem); line-height: 1.72; }
.document h1 { font-size: clamp(2.3rem, 6.5vw, 4rem); line-height: 1.16; letter-spacing: -0.07em; }
.document h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); letter-spacing: -0.045em; }
.document p { margin-top: 0.7rem; color: var(--muted); }
.document .date { margin-block: 0.7rem 1.8rem; font-size: 0.89rem; }
.document section { margin-top: 2rem; }
.document a { color: var(--accent); overflow-wrap: anywhere; }

@media (max-width: 48rem) {
  .hero, .preset { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 2.2rem; }
  .portrait { width: min(100%, 22rem); }
  .preset dl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1rem; }
  .site-footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
