:root,
html[data-chrome="dark"],
html[data-theme="chrome"],
html[data-theme="apex"] {
  color-scheme: dark;
  --ink: #eee8d6;
  --paper: #080807;
  --muted: #b0ab9d;
  --body: #d8d2c0;
  --line: rgba(200, 167, 75, 0.22);
  --accent: #c8a74b;
  --btn: #c8a74b;
  --btn-ink: #080807;
  --card: rgba(200, 167, 75, 0.07);
  --err: #f0a8a0;
  --ok: #9dcea8;
  --sans: "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent); }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.nav-row, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.apex-nav, .site-nav { border-bottom: 1px solid var(--line); }
.staff-nav { background: #050505; border-bottom-color: rgba(200, 167, 75, 0.35); }
.brand, .brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.brand img, .brand-mini img {
  width: auto;
  height: 40px;
  background: transparent;
  border-radius: 0;
}
.brand-mini img { height: 28px; }
nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover:not(.btn) { color: var(--accent); }
.brand:hover, .brand-mini:hover { color: var(--accent); }
.hero { padding: 72px 0 40px; }
.hero h1, h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; max-width: 20ch; }
.lede { font-size: 1.15rem; max-width: 58ch; color: var(--muted); }
.lede.tight { font-size: 0.98rem; }
.hero-perks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-perks-label {
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.hero-perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-icon {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.6;
  flex: none;
}
.hero-perk-sep {
  width: 1px;
  height: 18px;
  background: var(--line);
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--accent); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn, button.btn {
  background: var(--btn);
  color: var(--btn-ink);
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  display: inline-block;
}
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-small { padding: 6px 12px; font-size: 0.9rem; }
.btn:hover, button.btn:hover { color: var(--btn-ink); }
.btn-ghost:hover { color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 24px 0 64px; }
.cards article { background: var(--card); border: 1px solid var(--line); padding: 20px; border-radius: 16px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; color: var(--muted); font-size: 0.9rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px 28px;
  align-items: center;
  padding: 22px 0;
}
.footer-entity { margin: 0; text-align: center; line-height: 1.45; color: var(--muted); }
.footer-grid nav { justify-content: flex-end; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .footer-entity { text-align: left; }
  .footer-grid nav { justify-content: flex-start; }
}
.legal-editor textarea { min-height: 22rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86rem; }
.legal-versions { margin-top: 28px; }
.prose { padding: 40px 0; max-width: 68ch; color: var(--body, var(--muted)); }
.prose h1 { font-size: 2rem; color: var(--ink); }
.prose blockquote { margin: 0; padding-left: 1rem; border-left: 3px solid var(--accent); color: var(--muted); font-family: var(--serif); }
.stack { display: grid; gap: 12px; max-width: 36rem; }
.stack.wide { max-width: none; }
label { display: grid; gap: 6px; font-size: 0.92rem; }
input, textarea, select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #141414;
  color: var(--ink);
}
input[type="color"] { padding: 4px; height: 42px; width: 72px; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { width: auto; margin-top: 3px; }
.flash { padding: 10px 12px; border-radius: 10px; }
.flash.err { background: rgba(240, 168, 160, 0.14); color: var(--err); }
.flash.ok { background: rgba(157, 206, 168, 0.12); color: var(--ok); }
.fine { color: var(--muted); font-size: 0.88rem; }
.table { width: 100%; border-collapse: collapse; background: var(--card); }
.table th, .table td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px 8px; vertical-align: top; }
.banner { background: rgba(200, 167, 75, 0.12); border: 1px solid rgba(200, 167, 75, 0.35); padding: 10px 12px; border-radius: 10px; }
.auth { padding: 40px 0 64px; }
.studio, .staff { padding: 28px 0 64px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #2a2722; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; padding: 40px 0; }
.card-link { text-decoration: none; display: grid; gap: 8px; color: var(--ink); }
.card-link img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.photo-grid { padding: 12px 0 40px; }
.report-box { margin: 32px 0; color: var(--muted); }
.report-form { display: grid; gap: 10px; max-width: 28rem; margin-top: 10px; }
.linkish { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; }
.lightbox { border: 0; padding: 0; background: rgba(10,10,8,0.92); color: #fff; max-width: none; width: 100%; height: 100%; }
.lightbox img { max-width: min(96vw, 1200px); max-height: 78vh; display: block; margin: 4vh auto 0; }
.lb-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 16px; }
.lb-actions button, .lb-actions input { border-radius: 8px; border: 0; padding: 8px 10px; }
.tile-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.8rem; }
.ph { aspect-ratio: 1; display: grid; place-items: center; background: #2a2722; border-radius: 8px; color: var(--muted); }
.empty { padding: 48px 0; }
[data-theme="film"] .photo-grid img, [data-theme="film"] .home-grid img { filter: grayscale(1) contrast(1.15); }

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.theme-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  background: transparent;
  color: inherit;
  font: inherit;
}
.theme-card[aria-pressed="true"] { outline: 2px solid var(--accent); }
.theme-swatch {
  height: 56px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: grid;
  place-items: end start;
  padding: 8px;
  font-size: 0.78rem;
}
.swatch-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.swatch-row .shift { display: flex; gap: 6px; }
.shift button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}
.theme-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  background: var(--paper);
  color: var(--body, var(--muted));
  max-width: 36rem;
}
.theme-preview h3 { margin: 0 0 8px; color: var(--ink); font-family: var(--serif); }
.theme-preview a { color: var(--accent); }
.theme-preview .preview-btn {
  display: inline-block;
  margin-top: 12px;
  background: var(--btn);
  color: var(--btn-ink);
  border-radius: 999px;
  padding: 8px 14px;
}
.contrast-box { min-height: 1.4em; }
.contrast-box.bad { color: var(--err); }
.contrast-box.ok { color: var(--ok); }
.orig-note { font-size: 0.8rem; color: var(--muted); }
.site-split {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .site-split { grid-template-columns: 1fr 1fr; align-items: start; }
}
.block-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: var(--card);
}
.page-hero img { width: 100%; border-radius: 12px; margin: 16px 0; }
.logo-preview { height: 48px; width: auto; border-radius: 8px; background: #080807; }

@media (max-width: 720px) {
  .nav-row { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 40px; }
}
