@import url('https://cdn.jsdelivr.net/npm/@fontsource/maple-mono@5.2.5/index.min.css');

:root {
  --accent: #c2410c;
  --ink: #1f2937;
  --muted: #6b7280;
  --surface: #ffffff;
  --bg: #faf7f2;
  --line: #ece5da;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  /* Literal colors: custom properties don't resolve in scrollbar styling */
  scrollbar-color: #c9bfae #faf7f2;
}

/* WebKit (Safari/Chrome) scrollbar — literal hex, since var(--bg) is NOT
   resolved inside ::-webkit-scrollbar pseudo-elements, which left a white track. */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #faf7f2;
}

::-webkit-scrollbar-thumb {
  background: #c9bfae;
  border-radius: 999px;
  border: 3px solid #faf7f2;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Hero ---- */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}

.tagline {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: var(--muted);
}

/* ---- Main ---- */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  gap: 3rem;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  position: relative;
  padding-left: 1rem;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 4px;
  background: var(--accent);
}

.bio p + p {
  margin-top: 1rem;
}

.bio em {
  font-style: italic;
  color: var(--accent);
}

/* ---- Film list ---- */
.film-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.film-list li {
  list-style: none;
}

/* Static (non-clickable) film row — used on the standalone single page */
.film-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
}

.film-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.film-link:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.12);
}

.film-link .arrow {
  margin-left: auto;
  color: var(--muted);
  font-family: 'Maple Mono', monospace;
  font-weight: 500;
  transition: transform 0.15s ease, color 0.15s ease;
}

.film-link:hover .arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.film-list .year {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
  min-width: 3.2rem;
}

.film-list .title {
  font-size: 1.1rem;
  font-weight: 500;
}

/* ---- Top bar / back link (film pages) ---- */
.topbar {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.75rem 2rem 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 4px 14px 4px 11px;
  border-radius: 20px;
  border: 1.5px solid var(--accent);
  background: #fbeee8;
  color: var(--accent);
  font-family: 'Maple Mono', monospace;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.back-link:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateX(-2px);
}

/* ---- Footer ---- */
footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
