:root {
  color-scheme: dark;
  --page: #11130f;
  --page-raised: #181b16;
  --page-soft: #1d211a;
  --ink: #f0efe7;
  --muted: #a4a69b;
  --quiet: #73776b;
  --line: #30342b;
  --accent: #c9e6a3;
  --accent-ink: #182014;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #f5f4ed;
  --page-raised: #eeede4;
  --page-soft: #e8e8dd;
  --ink: #25271f;
  --muted: #686b60;
  --quiet: #828578;
  --line: #dedfd3;
  --accent: #68894b;
  --accent-ink: #fbfcf5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.section-wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip-link, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { z-index: 20; width: auto; height: auto; clip: auto; padding: 12px 16px; margin: 12px; background: var(--accent); color: var(--accent-ink); }

.site-header { width: min(1280px, calc(100% - 80px)); height: 88px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 650; letter-spacing: -.055em; }
.brand-mark { width: 29px; height: 29px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--accent); }
.brand-mark > span { width: 0; height: 0; margin-left: 2px; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid var(--accent-ink); }
.site-nav { display: flex; align-items: center; gap: 35px; color: var(--muted); font-size: 13px; }
.site-nav > a { transition: color .18s ease; }
.site-nav > a:hover { color: var(--ink); }
.theme-toggle { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.theme-toggle:hover { background: var(--page-soft); border-color: var(--quiet); }
.theme-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon, [data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

.hero { position: relative; min-height: 601px; display: grid; grid-template-columns: 1fr .87fr; align-items: center; padding-top: 30px; padding-bottom: 58px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 4px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 27px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(68px, 8.2vw, 108px); font-weight: 400; line-height: .96; letter-spacing: -.075em; }
.hero h1 > span { color: var(--accent); font-style: italic; }
.hero-description { width: min(390px, 90%); margin: 25px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; gap: 25px; padding: 0 19px; border: 0; border-radius: 4px; font-size: 13px; font-weight: 650; cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: color-mix(in srgb, var(--accent) 86%, white); }
.button > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-note { margin: 16px 0 0; color: var(--quiet); font-size: 11px; letter-spacing: .025em; }

.hero-art { position: relative; width: min(450px, 100%); aspect-ratio: 1 / .95; justify-self: end; display: grid; place-items: center; }
.art-orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.art-orbit-outer { width: 94%; height: 94%; }
.art-orbit-inner { width: 77%; height: 77%; border-style: dashed; opacity: .7; }
.art-card { position: relative; z-index: 1; width: 72%; padding: 14px; background: var(--page-raised); border: 1px solid var(--line); border-radius: 7px; transform: rotate(-3.5deg); box-shadow: 0 26px 65px rgb(0 0 0 / .17); animation: card-arrive .7s both cubic-bezier(.2,.8,.2,1); }
.art-card-top, .art-card-bottom { display: flex; align-items: center; justify-content: space-between; color: var(--quiet); font-size: 8px; letter-spacing: .1em; }
.art-card-dot { width: 6px; height: 6px; margin-right: auto; border-radius: 50%; background: var(--accent); }
.art-card-top > span:nth-child(2) { margin-left: 8px; }
.art-play { position: relative; height: 175px; margin: 12px 0 11px; display: grid; place-items: center; overflow: hidden; background: var(--page-soft); border: 1px solid var(--line); }
.art-play::before, .art-play::after { position: absolute; content: ""; width: 140px; height: 140px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 50%; }
.art-play::after { width: 90px; height: 90px; }
.art-play-triangle { position: relative; z-index: 1; width: 0; height: 0; margin-left: 5px; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 17px solid var(--accent); }
.art-stamp { position: absolute; z-index: 2; top: 11%; right: 3%; width: 75px; height: 75px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--page); color: var(--muted); font-family: var(--serif); font-size: 10px; line-height: 1.05; text-align: center; transform: rotate(9deg); }
.stamp-star { margin-top: 3px; color: var(--accent); font-size: 18px; }
.art-spark { position: absolute; color: var(--accent); }
.art-spark-one { top: 18%; left: 8%; font-size: 22px; }
.art-spark-two { right: 8%; bottom: 19%; font-size: 36px; }
.hero-index { position: absolute; bottom: 35px; left: 0; display: flex; align-items: center; gap: 11px; color: var(--quiet); font-size: 9px; letter-spacing: .06em; }
.hero-index > span:first-child { color: var(--accent); }
.hero-index > span:nth-child(2) { width: 30px; height: 1px; background: var(--line); }

.about { padding-top: 82px; padding-bottom: 94px; border-top: 1px solid var(--line); }
.section-label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.section-label > span:first-child { color: var(--accent); }
.label-rule { width: 27px; height: 1px; background: var(--line); }
.about-content { display: grid; grid-template-columns: 1fr .57fr; gap: 70px; align-items: end; margin-top: 32px; }
.about-content h2, .library-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5.2vw, 65px); font-weight: 400; line-height: 1.05; letter-spacing: -.06em; }
.about-content h2 span { color: var(--muted); font-style: italic; }
.about-aside { padding-bottom: 2px; }
.about-aside > p { max-width: 330px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.handwritten { display: inline-block; margin-top: 23px; color: var(--quiet); font-family: var(--serif); font-size: 13px; font-style: italic; transform: rotate(-4deg); }
.handwritten > span { color: var(--accent); font-family: var(--sans); font-style: normal; }

.status-section { padding-bottom: 95px; }
.status-card { display: grid; grid-template-columns: 1fr 1px 1.4fr 1px 1fr; align-items: center; gap: 28px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 5px; background: var(--page-raised); }
.status-item { display: grid; gap: 11px; }
.status-label { color: var(--quiet); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.status-value { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13px; }
.status-indicator { width: 7px; height: 7px; border-radius: 50%; background: #d78a78; }
.status-indicator.is-online { background: #9dc876; box-shadow: 0 0 0 3px color-mix(in srgb, #9dc876 15%, transparent); }
.status-divider { width: 1px; height: 35px; background: var(--line); }
.status-time { color: var(--muted); }
.status-footnote { min-height: 15px; margin: 10px 0 0; color: var(--quiet); font-size: 10px; text-align: right; }

.library { padding-top: 72px; padding-bottom: 85px; border-top: 1px solid var(--line); }
.library-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 27px 0 28px; }
.library-heading h2 { font-size: clamp(40px, 5vw, 57px); }
.library-heading p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.text-button { padding: 8px 0; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.text-button:hover { color: var(--ink); }
.text-button > span { margin-left: 6px; font-size: 17px; }
.library-message { min-height: 20px; margin: 0 0 17px; color: var(--muted); font-size: 13px; }
.video-player-wrap { margin-bottom: 26px; padding: 13px; border: 1px solid var(--line); background: var(--page-raised); }
.video-player-wrap video { display: block; width: 100%; max-height: 68vh; background: #080908; }
.video-caption { margin: 11px 1px 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 13px; }
.video-card { padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--page-raised); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease; }
.video-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.video-card-art { aspect-ratio: 1.56; display: grid; place-items: center; border-bottom: 1px solid var(--line); background: var(--page-soft); }
.video-card-play { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--quiet); border-radius: 50%; color: var(--accent); }
.video-card-play::after { content: ""; margin-left: 2px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid currentColor; }
.video-card-name { display: block; padding: 12px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }

.site-footer { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.footer-wordmark { font-size: 14px; }
.footer-wordmark .brand-mark { width: 24px; height: 24px; border-radius: 8px; }
.footer-wordmark .brand-mark > span { border-top-width: 5px; border-bottom-width: 5px; border-left-width: 7px; }
.site-footer > p { color: var(--quiet); font-size: 11px; }
.site-footer > p > span { color: #ce8b78; }
.back-top { color: var(--muted); font-size: 11px; }
.back-top:hover { color: var(--ink); }
.back-top > span { margin-left: 5px; }

.pin-dialog { width: min(440px, calc(100% - 32px)); padding: 0; overflow: visible; border: 1px solid var(--line); border-radius: 7px; background: var(--page-raised); color: var(--ink); box-shadow: 0 30px 100px rgb(0 0 0 / .45); }
.pin-dialog::backdrop { background: rgb(5 6 5 / .72); backdrop-filter: blur(3px); }
.pin-form { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 39px; }
.dialog-close { position: absolute; top: 13px; right: 14px; width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 21px; cursor: pointer; }
.dialog-close:hover { color: var(--ink); }
.dialog-mark { margin-bottom: 27px; }
.pin-form .eyebrow { margin-bottom: 13px; }
.pin-form h2 { margin: 0; font-family: var(--serif); font-size: 31px; font-weight: 400; letter-spacing: -.045em; }
.pin-description { margin: 11px 0 23px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.pin-form input { width: 100%; height: 51px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--page); color: var(--ink); font-size: 20px; letter-spacing: .3em; }
.pin-form input::placeholder { color: var(--quiet); }
.pin-form input[aria-invalid="true"] { border-color: #d78a78; }
.pin-error { min-height: 17px; margin: 8px 0 12px; color: #e7a08e; font-size: 12px; }
.pin-submit { width: 100%; justify-content: space-between; }
.pin-privacy { margin: 14px 0 0; color: var(--quiet); font-size: 10px; }

@keyframes card-arrive { from { opacity: 0; transform: translateY(12px) rotate(-1deg); } to { opacity: 1; transform: translateY(0) rotate(-3.5deg); } }
@media (max-width: 760px) {
  .section-wrap, .site-header { width: calc(100% - 40px); }
  .site-header { height: 72px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 75px; padding-bottom: 65px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(66px, 16vw, 92px); }
  .hero-description { max-width: 350px; }
  .hero-art { width: min(370px, 92%); margin: 33px auto 0; justify-self: center; }
  .art-play { height: clamp(130px, 40vw, 170px); }
  .hero-index { bottom: 21px; }
  .about { padding-top: 60px; padding-bottom: 62px; }
  .about-content { grid-template-columns: 1fr; gap: 23px; margin-top: 26px; }
  .about-content h2 { font-size: clamp(44px, 10.6vw, 61px); }
  .about-aside > p { font-size: 19px; }
  .status-section { padding-bottom: 68px; }
  .status-card { grid-template-columns: 1fr 1fr; gap: 20px 14px; padding: 19px; }
  .status-divider { display: none; }
  .status-item:last-child { grid-column: 1 / -1; padding-top: 15px; border-top: 1px solid var(--line); }
  .status-value { font-size: 12px; }
  .status-footnote { text-align: left; }
  .library { padding-top: 58px; padding-bottom: 65px; }
  .library-heading { align-items: flex-start; flex-direction: column; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .video-card-name { padding: 10px; font-size: 11px; }
  .site-footer { min-height: 104px; flex-wrap: wrap; padding-top: 17px; padding-bottom: 17px; }
  .site-footer > p { order: 1; width: 100%; margin: 0; }
  .site-footer > a:last-child { margin-left: auto; }
  .pin-form { padding: 32px 25px; }
}

@media (max-width: 380px) {
  .section-wrap, .site-header { width: calc(100% - 32px); }
  .site-nav { gap: 22px; }
  .hero { padding-top: 60px; }
  .status-card { padding: 16px 13px; }
  .status-label { font-size: 9px; }
  .status-value { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
