@font-face {
    font-family: "DM Sans";
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/dm-sans.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow Condensed";
    font-weight: 800;
    font-display: swap;
    src: url("fonts/barlow-condensed-800.woff2") format("woff2");
}

:root {
    color-scheme: dark;
    --night: #081525;
    --panel: #0d2138;
    --ink: #f4f7fd;
    --muted: #bbcbe0;
    --gold: #ffbd25;
    --line: #2a4260;
    font: 16px "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--night); line-height: 1.55; }
h1, h2, p, figure, ul, dl, dd { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
[id] { scroll-margin-top: 1.5rem; }

.skip { position: absolute; z-index: 3; top: 1rem; left: 1rem; transform: translateY(-160%); padding: .5rem .8rem; background: var(--gold); color: #101a26; }
.skip:focus { transform: none; }
.wrap { width: min(100% - clamp(2rem, 8vw, 7rem), 74rem); margin-inline: auto; }
.masthead { background: radial-gradient(ellipse at 82% 21%, #163c60 0, transparent 50%), #071322; }

.top, .foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.top { border-bottom: 1px solid var(--line); }
.top nav { display: flex; gap: clamp(.85rem, 4vw, 2.15rem); font-size: .9rem; }
.top nav a, .foot a { text-decoration: none; }
.top nav a:hover, .foot a:hover { text-decoration: underline; text-underline-offset: .25em; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.2rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.wordmark span { display: grid; place-items: center; width: 2.05rem; aspect-ratio: 1; color: #111924; background: var(--gold); border-radius: .45rem; letter-spacing: 0; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .84fr); align-items: center; gap: clamp(1.35rem, 5vw, 5rem); padding-block: clamp(2.15rem, 5vw, 4.6rem); }
.hero-copy { position: relative; z-index: 1; }
.hero-art { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 484 / 616; width: min(100%, 28rem); justify-self: end; border-radius: 1.4rem; background: #102b49; }
.hero-art img { position: absolute; display: block; width: 231.82%; max-width: none; height: auto; right: 0; top: -16.56%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #071322 0%, transparent 24%), linear-gradient(90deg, #0a1b2e83, transparent 23%); pointer-events: none; }

.eyebrow { color: var(--gold); font-size: .77rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin-block: .33em .52em; font-size: clamp(2rem, 4vw, 4rem); line-height: .99; font-weight: 700; letter-spacing: -.055em; text-transform: uppercase; }
h1 strong { display: block; margin-block: .04em .13em; color: var(--gold); font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; font-size: clamp(3.85rem, 8.1vw, 8.55rem); line-height: .85; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.07; font-weight: 700; letter-spacing: -.045em; text-wrap: balance; }
.intro { max-width: 37ch; color: var(--muted); font-size: clamp(1.02rem, 1.9vw, 1.23rem); }
.facts { display: flex; flex-wrap: wrap; gap: .25rem .95rem; margin-block: 1.15rem 1.45rem; padding: 0; list-style: none; color: var(--muted); font-size: .87rem; }
.facts li { display: inline-flex; align-items: center; gap: .42rem; }
.facts li::before { content: ""; width: .26rem; height: .26rem; flex: 0 0 auto; border-radius: 50%; background: var(--gold); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3.2rem; padding: .72rem 1.25rem; border: 1px solid #ffd46a; border-radius: 1.65rem; background: linear-gradient(180deg, #ffcf45, #ffae15); color: #101722; font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { background: #ffd15b; }
.text-link { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .4em; text-underline-offset: .26em; font-size: .92rem; }
.notice, .progress { margin-block: .6rem; color: var(--gold); font-size: .94rem; }

.paper { padding-block: clamp(2.5rem, 6vw, 5rem); background: #0a192b; border-block: 1px solid var(--line); }
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-top: 1.35rem; }
.skills div { padding: 1.15rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); }
.skills dt { margin-bottom: .36rem; color: #ffca4d; font-size: 1.06rem; font-weight: 700; }
.skills dd, .try p { color: var(--muted); }

.try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .56fr); align-items: center; gap: clamp(1.3rem, 6vw, 4rem); padding: clamp(1.2rem, 5vw, 3.3rem); margin-block: clamp(2.4rem, 7vw, 5.2rem); border: 1px solid var(--line); border-radius: .85rem; background: radial-gradient(ellipse at 92% 12%, #1b3651, transparent 66%), var(--panel); }
.try h2 { text-wrap: initial; }
.try p { max-width: 54ch; margin-top: .8rem; }
.try summary { min-height: 2.75rem; padding-block: .55rem; color: var(--gold); }
.try details { margin-top: .55rem; }
.try details p { margin-top: .15rem; }

.film { justify-self: center; width: min(100%, 15rem); border: 1px solid #53708e; border-radius: .7rem; background: #081321; overflow: hidden; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; background: #030911; object-fit: contain; }
.film figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .65rem; padding: .66rem .8rem; color: var(--muted); font-size: .8rem; }
.film strong { color: var(--ink); font-weight: 600; }

.split { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: clamp(1.5rem, 6vw, 5rem); padding-block: clamp(1.45rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.byline { margin-top: .75rem; font-size: .92rem; color: var(--muted); }
.byline a, .chapter a { text-underline-offset: .22em; }
.chapter + .chapter { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
.chapter summary { min-height: 2.75rem; padding-block: .66rem; }
.chapter p, .chapter ul { padding-bottom: .82rem; color: var(--muted); }
.chapter ul { list-style: none; padding-inline: 0; }
.chapter li { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding-block: .45rem; }
.duration { font-size: .86rem; white-space: nowrap; }
.end-action { margin-top: 1.5rem; }
.review { display: grid; justify-items: start; gap: .55rem; }
.review :is(textarea, select) { padding: .55rem .7rem; border: 1px solid #53708e; border-radius: .35rem; color: var(--ink); background: var(--panel); font: inherit; }
.review textarea { width: 100%; }
.review .button { margin-top: .4rem; }
.published-review { padding-block: .85rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.foot { color: var(--muted); font-size: .87rem; }

@media (max-width: 900px) {
    .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .top, .foot { min-height: 3.75rem; }
    .hero, .split, .try { grid-template-columns: minmax(0, 1fr); }
    .hero-art { justify-self: center; width: min(100%, 21.5rem); }
    .try { align-items: start; }
    .film { justify-self: start; }
}

@media (max-width: 370px) {
    .top nav { gap: .65rem; font-size: .8rem; }
    .hero h1 { font-size: 1.85rem; }
    .skills { grid-template-columns: minmax(0, 1fr); }
}
