:root {
    color-scheme: dark;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: #f6f4f0;
    background: #111218;
    --muted: #bfbec9;
    --line: #333541;
    --accent: #ffc0a9;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.frame { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.nav, .footer, .nav-links { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { min-height: 72px; }
.wordmark { display: flex; align-items: center; gap: 7px; font-size: 26px; font-weight: 750; letter-spacing: -.04em; }
.wordmark img { width: 31px; height: 31px; border-radius: 7px; }
.nav-links > a:not(.button), .footer { color: var(--muted); }
.nav-links > a:hover, .footer a:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr); align-items: center; gap: clamp(32px, 5.5vw, 86px); padding-block: clamp(66px, 8vw, 118px); }
h1 { font-size: clamp(40px, 5.25vw, 72px); font-weight: 720; letter-spacing: -.08em; line-height: 1.14; margin: 0; }
.hero-copy p, .releases > p { color: var(--muted); font-size: 17px; line-height: 1.85; max-width: 36ch; margin: 24px 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 48px; padding: 0 16px; border: 1px solid #505362; border-radius: 8px; font-weight: 650; }
.button:hover { background: #242633; }
.button.primary { color: #1f1410; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: #ffdacb; border-color: #ffdacb; }
.button.small { min-height: 38px; }
.canvas { min-height: 406px; border: 1px solid #404250; border-radius: 15px; overflow: hidden; background: #191b25; box-shadow: 0 30px 80px #0005; }
.canvas-bar { height: 42px; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid #404250; font-size: 12px; color: #d9d8e4; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border-radius: 100%; background: #626477; }
.zoom { font-variant-numeric: tabular-nums; color: var(--muted); }
.board { position: relative; min-height: 364px; background: radial-gradient(#4b4d61 1px, transparent 1px) 0 0 / 18px 18px, radial-gradient(ellipse at 60% 45%, #333344 0%, #161821 72%); }
.tile { position: absolute; z-index: 1; padding: 12px; border: 1px solid #585b70; border-radius: 8px; background: #252736; box-shadow: 0 10px 30px #0005; color: #eeedf7; }
.tile span { color: #b9b7ce; display: block; font-size: 10px; margin-bottom: 7px; }
.tile strong { font-size: 13px; font-weight: 650; }
.tile p { margin: 7px 0 1px; font-size: 11px; line-height: 1.55; color: #cccada; }
.brief { top: 46px; left: 6%; width: 30%; }
.still { top: 82px; right: 6%; width: 50%; border-color: #dc9d90; padding: 8px; }
.still span { padding-inline: 4px; }
.still-frame { aspect-ratio: 1.7; border-radius: 5px; background: #2c3549 url("/assets/coast.webp") center / cover no-repeat; }
.shot { bottom: 22px; left: 26%; width: 39%; }
.line { position: absolute; height: 1px; background: #b28c9e; }
.line-one { top: 111px; left: 33%; width: 17%; transform: rotate(14deg); }
.line-two { top: 258px; right: 29%; width: 25%; transform: rotate(-44deg); }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; border-block: 1px solid var(--line); padding-block: 30px; }
.details h2, .release-grid h2 { font-size: 18px; margin: 0 0 9px; }
.details p, .release-grid p { color: var(--muted); line-height: 1.7; margin: 0; }
.footer { min-height: 86px; font-size: 14px; }
.releases { padding-block: 72px 56px; }
.release-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-block: 28px; }
.release-grid section { background: #191b25; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.release-files { padding-left: 20px; }
.release-files a { color: var(--accent); text-decoration: underline; }
.release-files details { margin-block: 8px 18px; color: var(--muted); }
.release-files code { overflow-wrap: anywhere; }

@media (max-width: 800px) {
    .hero { grid-template-columns: 1fr; }
    .canvas { min-height: 380px; }
    .board { min-height: 338px; }
    .details { gap: 18px; }
}

@media (max-width: 460px) {
    .frame { width: calc(100% - 30px); }
    .nav-links { gap: 12px; font-size: 14px; }
    .details, .release-grid { grid-template-columns: 1fr; }
    .brief { left: 4%; width: 38%; }
    .still { right: 4%; width: 49%; }
    .canvas { min-height: 342px; }
    .board { min-height: 300px; }
    .shot { left: 23%; width: 52%; }
}
