:root {
  color-scheme: dark;
  --surface: #121018;
  --paper: #fbf1e9;
  --muted: #c0b4c6;
  --stroke: #332a3b;
  --amber: #ffc49b;
  background: #0e0c13;
  color: var(--paper);
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #d3bcff; outline-offset: 5px; }
figure, h1, h2, h3, p { margin: 0; }
.site-width { max-width: 1320px; width: calc(100% - clamp(32px, 9vw, 128px)); margin-inline: auto; }
.skip { position: absolute; inset: 8px auto auto 8px; transform: translateY(-150%); background: var(--surface); padding: 8px 12px; }
.skip:focus { transform: none; }
.site-header, .site-footer { background: #110f18; border-block-end: 1px solid var(--stroke); }
.site-footer { border-block: 1px solid var(--stroke) 0; }
.header-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 680; text-decoration: none; }
.header-row nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px clamp(13px, 3vw, 34px); }
.header-row nav a { padding-block: 6px; font-size: 14px; text-decoration: none; color: var(--muted); }
.header-row nav a:hover, .header-row nav [aria-current] { color: var(--paper); }

.catalog-intro { padding-block: clamp(30px, 5vw, 64px) clamp(24px, 4vw, 50px); }
.catalog-intro h1 { font: 400 clamp(38px, 5.5vw, 76px)/1.04 Georgia, serif; letter-spacing: -.055em; }
.catalog-intro p { color: var(--muted); margin-top: 12px; font-size: clamp(16px, 1.55vw, 19px); }
.pack-intro {
  display: grid;
  grid-template-columns: minmax(245px, .72fr) minmax(0, 1.48fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding-bottom: clamp(36px, 6vw, 76px);
}
.pack-intro h2 { font: 400 clamp(44px, 5.8vw, 76px)/1 Georgia, serif; letter-spacing: -.065em; margin-bottom: 14px; }
.pack-lede { color: var(--muted); font-size: clamp(16px, 1.55vw, 19px); max-width: 31ch; }
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 10px 18px;
  margin-top: 26px;
  background: var(--amber);
  color: #22121a;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
}
.download:hover { background: #ffdac2; }
.pack-meta { color: var(--muted); font-size: 13px; margin-top: 12px; }
.pack-jump { display: inline-block; margin-top: 18px; color: var(--muted); text-underline-offset: 4px; }
.pack-jump:hover { color: var(--paper); }
.hero-art { border: 1px solid #7b574a; border-radius: 11px; overflow: hidden; box-shadow: 0 18px 90px #491c3255; }
.hero-art video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--surface); }

.scene-gallery { border-top: 1px solid var(--stroke); padding-top: 26px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 24px; }
h2 { font-size: clamp(25px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.035em; }
.section-heading p, .install p { color: var(--muted); }
.scene-pair {
  display: grid;
  grid-template-columns: minmax(158px, .32fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--stroke);
}
h3 { font-size: clamp(18px, 2.2vw, 25px); line-height: 1.3; }
.scene-gallery-views { display: grid; grid-template-columns: minmax(0, 3.16fr) minmax(0, 1fr); gap: clamp(8px, 2vw, 22px); }
.scene-gallery-views img { width: 100%; background: var(--surface); border: 1px solid var(--stroke); border-radius: 5px; }
figcaption { color: var(--muted); font-size: 13px; margin-top: 7px; }
.pack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); align-items: start; }
.pack-card { border-radius: 11px; overflow: hidden; border: 1px solid var(--stroke); background: var(--surface); }
.pack-card .hero-art { border: 0; border-radius: 0; box-shadow: none; }
.pack-card-body { padding: clamp(16px, 3vw, 26px); }
.pack-card h3 { font-size: clamp(27px, 3.5vw, 41px); margin-bottom: 5px; }
.pack-card p { color: var(--muted); }
.paperline h3 { font-family: Georgia, serif; font-weight: 400; }
.paperline .download { background: #f2dece; }
.paperline .download:hover { background: #fff1e3; }
.overdrive .download { background: #c6ff66; }
.overdrive .download:hover { background: #defcae; }
.pack-layouts { margin-top: 18px; color: var(--muted); }
.pack-layouts summary { width: fit-content; cursor: pointer; }
.pack-layouts summary:focus-visible { outline: 2px solid #d3bcff; outline-offset: 5px; }
.pack-stills { display: grid; grid-template-columns: minmax(0, 3.16fr) minmax(0, 1fr); gap: 10px; margin-top: 16px; }
.pack-stills img { width: 100%; border-radius: 4px; border: 1px solid var(--stroke); }
.pro-templates { margin-top: 34px; }
.pro-pack-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.pro-pack-lock { position: relative; width: 11px; height: 8px; border: 1px solid currentColor; border-radius: 2px; }
.pro-pack-lock::before { content: ""; position: absolute; inset: -5px 1px auto; height: 4px; border: 1px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.pro-offline-note { color: var(--muted); font-size: 14px; margin-top: 18px; }
.night-circuit .download { background: #81e8fa; }
.night-circuit .download:hover { background: #b8f5ff; }
.aurelia h3 { font-family: Georgia, serif; font-weight: 400; }
.aurelia .download { background: #f4d49e; }
.aurelia .download:hover { background: #ffe9c7; }
.control-room .download { background: #f7ae79; }
.control-room .download:hover { background: #ffcea8; }
.coastline h3 { font-family: Georgia, serif; font-weight: 400; }
.coastline .download { background: #dce9ef; }
.coastline .download:hover { background: #f1f8fb; }
.pro-portrait { display: block; width: min(100%, 260px); height: auto; aspect-ratio: 9 / 16; margin-top: 12px; }
.pro-account { margin-top: 20px; padding: clamp(16px, 3vw, 26px); border: 1px solid var(--stroke); border-radius: 8px; }
.pro-account form { margin-top: 14px; }
.pro-account form p, .pro-status { color: var(--muted); margin-top: 10px; }
.pro-account label { display: inline-grid; width: min(100%, 330px); gap: 5px; margin-inline-end: 8px; }
.pro-account input { min-height: 44px; min-width: 0; padding: 8px 10px; border: 1px solid var(--stroke); border-radius: 5px; font: inherit; }
.pro-templates button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.pro-templates button:disabled { cursor: default; opacity: .68; }
.pro-templates button:focus-visible, .pro-templates input:focus-visible { outline: 2px solid #d3bcff; outline-offset: 4px; }
.pro-templates [hidden] { display: none; }
.pro-account .download { margin-top: 10px; }
.pro-account [data-upgrade-options] { margin-top: 16px; }
.pro-account [data-upgrade-options] p { color: var(--muted); }
.pro-account [data-upgrade-plan] { margin-inline-end: 8px; }
.install { margin-block: 34px 66px; padding: clamp(20px, 4vw, 38px); background: var(--surface); border: 1px solid var(--stroke); border-radius: 8px; }
.install ol { padding-inline-start: 21px; margin: 15px 0; }
.install li + li { margin-top: 7px; }
.install p { font-size: 14px; }

@media (max-width: 770px) {
  .pack-intro, .scene-pair, .pack-grid { grid-template-columns: minmax(0, 1fr); }
  .pack-lede { max-width: 43ch; }
}

@media (max-width: 440px) {
  .header-row { align-items: flex-start; }
  .header-row nav { width: 100%; }
  .scene-gallery-views { grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); }
  figcaption { font-size: 12px; }
}
