/* Golden Hour hub: index.html and about.html */

:root {
  --bg: #f6f1e7;
  --bg-2: #efe7d7;
  --surface: #fcf9f2;
  --ink: #18151c;
  --ink-2: #3f3942;
  --muted: #655d63;
  --line: #ddd1bc;
  --gold: #8a5d0a;        /* gold for text and hairlines: AA on --bg */
  --sun: #d39a2b;         /* decorative gold */
  --ph-bg: #1d1922;       /* placeholder tiles stay ink in both themes */
  --ph-ink: #efe6d4;
  --ph-sun: #d9a23a;
  --focus: #1f5fd1;
  --shadow: 0 1px 2px rgb(40 30 10 / .05), 0 10px 30px -12px rgb(40 30 10 / .18);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100e14;
    --bg-2: #16131b;
    --surface: #1a1720;
    --ink: #f2ebdd;
    --ink-2: #d4ccbe;
    --muted: #a59c90;
    --line: #2f2a35;
    --gold: #e4b45a;
    --sun: #e4b45a;
    --ph-bg: #221e28;
    --focus: #8ab4ff;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 34px -14px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #100e14;
  --bg-2: #16131b;
  --surface: #1a1720;
  --ink: #f2ebdd;
  --ink-2: #d4ccbe;
  --muted: #a59c90;
  --line: #2f2a35;
  --gold: #e4b45a;
  --sun: #e4b45a;
  --ph-bg: #221e28;
  --focus: #8ab4ff;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 34px -14px rgb(0 0 0 / .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 8px; }

/* ---------- Opening card ---------- */
.opening { padding: 22px 0 18px; }
.opening-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow {
  font: 600 12px/1.3 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.theme-toggle {
  flex: none;
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }

.title-card { margin-top: 14px; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 13vw, 104px);
  line-height: .95;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.wordmark em { font-style: italic; font-weight: 500; }
.horizon {
  position: relative;
  height: 1px;
  margin: 14px 0 16px;
  background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 30%, transparent) 70%, transparent);
}
.horizon::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 26px; height: 13px;
  border-radius: 26px 26px 0 0;
  background: var(--sun);
}
.statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(19px, 4.6vw, 28px);
  line-height: 1.3;
  max-width: 34ch;
  font-variation-settings: "opsz" 36;
}
.byline { margin-top: 10px; color: var(--muted); font-size: 14.5px; max-width: 60ch; }

.jump {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  margin: 16px 0 0; padding: 0; list-style: none;
}
.jump a {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
}
.jump a:hover { border-color: var(--gold); color: var(--gold); }

@media (min-width: 720px) {
  .opening { padding: 44px 0 30px; }
  .title-card { margin-top: 26px; }
  .horizon { margin: 22px 0 22px; }
  .horizon::before { width: 40px; height: 20px; }
}

/* ---------- Sections ---------- */
.section { padding: 26px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .section { padding: 48px 0; } }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.section-num { font: 500 12px/1 var(--font-mono); color: var(--gold); letter-spacing: .06em; }
.section-title { font-size: clamp(26px, 6vw, 40px); font-variation-settings: "opsz" 96; }
.section-note { color: var(--muted); max-width: 62ch; margin-bottom: 16px; font-size: 15px; }

#projects { border-top: 0; padding-top: 0; }
.group { padding: 10px 0 22px; }
.group + .group { border-top: 1px solid var(--line); padding-top: 22px; }
.group-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.group-title { font-size: clamp(22px, 5vw, 30px); }
.group-note { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; max-width: 62ch; }

/* ---------- Project cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.card {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.card.is-linked:hover { border-color: var(--gold); }
.card.is-linked:focus-within { border-color: var(--gold); }
.shot {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ph-bg);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* Designed placeholder for projects without a screenshot (never a fake screenshot) */
.ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ph-ink);
  background:
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--ph-sun) 26%, transparent) 0 28%, transparent 62%),
    var(--ph-bg);
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; left: 50%; bottom: 30%;
  width: 22%; aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background: var(--ph-sun);
  opacity: .9;
}
.ph::after {
  content: "";
  position: absolute; left: 8%; right: 8%; bottom: 30%;
  height: 1px;
  background: var(--ph-sun);
  opacity: .7;
}
.ph-text {
  position: absolute; left: 0; right: 0; top: 14%;
  padding: 0 8%;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  line-height: 1.15;
}
.ph-status {
  position: absolute; left: 0; right: 0; bottom: 9%;
  text-align: center;
  font: 600 8px/1 var(--font-body);
  letter-spacing: .18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ph-ink) 70%, transparent);
}

.card-body { display: grid; gap: 4px; min-width: 0; }
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px/1.2 var(--font-body);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid currentColor; flex: none;
}
.status-live { color: var(--gold); }
.status-live::before { background: currentColor; }
.status-in-progress::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.card h3 { font-size: 19px; line-height: 1.15; font-variation-settings: "opsz" 30; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:focus-visible { outline: none; }
.card h3 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
.tagline { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.role { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.role b { font-weight: 600; color: var(--ink-2); }
.go { font-size: 13.5px; font-weight: 600; color: var(--gold); margin-top: 2px; }
.go-none { color: var(--muted); font-weight: 500; }

@media (max-width: 599px) {
  .card .tagline { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card .go { display: none; }
}
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .card { grid-template-columns: 1fr; padding: 12px 12px 16px; gap: 14px; }
  .card.is-linked:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .card-body { padding: 0 4px; gap: 6px; }
  .card h3 { font-size: 22px; }
  .tagline { font-size: 15px; }
  .ph-text { font-size: clamp(16px, 2.4vw, 22px); top: 16%; }
  .ph-status { font-size: 10px; }
}
@media (min-width: 980px) {
  .group[data-group="film-culture"] .cards,
  .group[data-group="community-policy"] .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .group[data-group="film-culture"] .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Lighter group: fan & community projects */
.group-light .cards { grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .group-light .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.group-light .card { grid-template-columns: 1fr; padding: 12px 14px; background: transparent; }
.group-light .shot { display: none; }
.group-light .card h3 { font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 28px 0 24px; font-size: 14px; color: var(--ink-2); }
.foot-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr; gap: 40px; } }
.foot-title { font: 600 12px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.foot-projects { list-style: none; margin: 0; padding: 0; columns: 2 180px; column-gap: 24px; }
.foot-projects li { break-inside: avoid; padding: 3px 0; }
.foot-projects .st { color: var(--muted); font-size: 12.5px; }
.site-footer p + p { margin-top: 8px; }
.foot-base { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; }
.foot-mark { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* ---------- About page ---------- */
.page-head { padding: 26px 0 8px; }
@media (min-width: 720px) { .page-head { padding: 48px 0 12px; } }
.page-head h1 { font-size: clamp(36px, 9vw, 64px); font-variation-settings: "opsz" 144; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(22px, 5vw, 30px); margin: 0 0 10px; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 10px; }
.prose ul { margin: 0; padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.back { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--gold); }
