@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,400&family=Work+Sans:wght@300;400;500&display=swap');

:root {
  --bg: #0a0a0c;
  --surface: #141418;
  --surface-2: #1b1b21;
  --text: #ede9e1;
  --muted: #918d84;
  --faint: #55534e;
  --gold: #c9a24e;
  --dusk: #7c8fa6;
  --border: rgba(237, 233, 225, 0.09);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', -apple-system, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video { max-width: 100%; display: block; }

/* ---- Header / nav ---- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-header .name {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--gold);
}

/* ---- Layout helpers ---- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-head {
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3.5rem;
}

.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 0 0 0.9rem;
  max-width: 14ch;
}

.page-head p {
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.02rem;
  margin: 0;
}

main { min-height: 60vh; }

/* ---- Footer ---- */

.site-footer {
  max-width: var(--max);
  margin: 5rem auto 0;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- Entry page ---- */

.entry {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.entry h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 9vw, 5.2rem);
  letter-spacing: 0.01em;
  margin: 0;
  position: relative;
  background: linear-gradient(100deg, var(--text) 40%, var(--gold) 50%, var(--text) 60%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--text);
  animation: sheen 7s ease-in-out infinite;
}

@keyframes sheen {
  0%   { background-position: 200% 0; }
  45%  { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

.entry .enter {
  margin-top: 2.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--faint);
  padding-bottom: 0.3rem;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.entry .enter:hover {
  color: var(--gold);
  border-color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .entry h1 { animation: none; }
}

/* ---- Archive grid ---- */

.archive-section-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: 4rem;
}

.grid.core { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}

.work {
  background: var(--bg);
  position: relative;
}

.work .frame {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.work video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  color: var(--faint);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
}

.work .caption {
  padding: 1rem 0.2rem 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.work .caption .title { color: var(--text); font-style: italic; font-family: var(--serif); }

/* ---- Documents ---- */

.doc-list { list-style: none; margin: 0 0 4rem; padding: 0; }

.doc-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.75rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.doc-item .year {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
}

.doc-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
}

.doc-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 60ch;
}

.doc-item .pending {
  color: var(--faint);
  font-style: italic;
}

/* ---- Biography ---- */

.bio-text {
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--text);
}

.bio-text p { margin: 0 0 1.4rem; }

.bio-text .lede {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 2.2rem;
}

.pull {
  border-left: 1px solid var(--gold);
  padding-left: 1.5rem;
  margin: 3rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 46ch;
}

/* ---- Private Viewing Room / Contact ---- */

.pvr-body, .contact-body {
  max-width: 56ch;
  margin-bottom: 3.5rem;
}

.pvr-body p, .contact-body p {
  color: var(--muted);
  font-size: 1.02rem;
}

.request-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
  max-width: 34rem;
  margin-bottom: 4rem;
}

.request-box p { color: var(--muted); margin: 0 0 1.3rem; font-size: 0.95rem; }

.request-box a.mail-link {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  border-bottom: 1px solid transparent;
}
.request-box a.mail-link:hover { border-bottom-color: var(--gold); }

.note {
  color: var(--faint);
  font-size: 0.85rem;
  max-width: 50ch;
}
