/* Filmmaker Websites: festival-program editorial look. Warm paper, projector ink, amber and rust. */
:root {
  --ink: #14110f;
  --ink-2: #221d19;
  --paper: #f4efe6;
  --paper-2: #ebe3d6;
  --text: #1d1916;
  --muted: #5a5249;
  --line: #d3c8b6;
  --rust: #a03a24;
  --amber: #e8b04a;
  --on-ink: #f1e9dc;
  --on-ink-muted: #b9ad9c;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --measure: 41rem;
  --wide: 68rem;
  --radius: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans); text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Masthead: a projection booth band with sprocket holes */
.masthead { background: var(--ink); color: var(--on-ink); position: relative; }
.masthead::after {
  content: ""; display: block; height: 10px;
  background: radial-gradient(circle at 8px 5px, var(--paper) 2.5px, transparent 3px) 0 0 / 22px 10px repeat-x, var(--ink);
}
.masthead-inner { max-width: var(--wide); margin: 0 auto; padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: .8rem; align-items: center; color: var(--on-ink); text-decoration: none; }
.brand-mark { width: 30px; height: 22px; border: 2px solid var(--amber); border-radius: 2px; position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 10px; top: 4px; border-left: 9px solid var(--amber); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.brand-text { font: 600 1.15rem/1.1 var(--serif); letter-spacing: .01em; }
.brand-text small { display: block; font: 500 .68rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-ink-muted); margin-top: .25rem; }
.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a { color: var(--on-ink); text-decoration: none; font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: .5rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--amber); color: var(--amber); }

/* Title card */
.page { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.title-card { max-width: 52rem; margin: 0 auto; padding: clamp(2.5rem, 8vw, 5.5rem) 0 2.25rem; text-align: center; border-bottom: 1px solid var(--line); }
.slate { display: none; margin: 0 0 1.2rem; font: 600 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.slate time:empty { display: none; }
.kind-article .slate, .kind-tool .slate { display: flex; justify-content: center; gap: 1rem; }
.kind-article .slate-kind::before { content: "Guide"; color: var(--rust); }
.kind-tool .slate-kind::before { content: "Free tool"; color: var(--rust); }
h1 { font: 400 clamp(2.1rem, 6vw, 3.9rem)/1.06 var(--serif); letter-spacing: -.015em; margin: 0 auto; max-width: 18em; font-variation-settings: "opsz" 144; }
.dek { font: italic 300 clamp(1.1rem, 2.4vw, 1.35rem)/1.5 var(--serif); color: var(--muted); max-width: 36em; margin: 1.25rem auto 0; }

/* Prose */
.content { max-width: var(--measure); margin: 0 auto; padding: 2.75rem 0 4rem; }
.content > p:first-child::first-letter { font: 400 3.4em/.8 var(--serif); float: left; margin: .08em .1em 0 0; color: var(--rust); }
.kind-home .content > p:first-child::first-letter, .kind-tool .content > p:first-child::first-letter { font: inherit; float: none; margin: 0; color: inherit; }
h2 { font: 500 clamp(1.55rem, 3.6vw, 2.05rem)/1.2 var(--serif); margin: 3rem 0 .9rem; letter-spacing: -.01em; }
h3 { font: 600 1.18rem/1.35 var(--serif); margin: 2rem 0 .5rem; }
p, ul, ol { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .45rem; }
li::marker { color: var(--rust); }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
blockquote, .note { margin: 1.75rem 0; padding: 1rem 1.25rem; background: var(--paper-2); border-left: 3px solid var(--rust); font-size: .98rem; }
.note p:last-child { margin-bottom: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: .9rem; }
.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: .05rem; font: 600 .85rem/1.6 var(--serif); color: var(--rust); border-top: 1px solid var(--rust); }
.sources { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 3rem; }
table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.75rem; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .74rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; }

/* Featured screening panel (home CTA) */
.feature { background: var(--ink); color: var(--on-ink); padding: clamp(1.5rem, 5vw, 2.75rem); margin: 2.25rem 0; border-radius: var(--radius); position: relative; overflow: hidden; }
.feature::before { content: "Now showing"; display: block; font: 600 .7rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--amber); margin-bottom: 1rem; }
.feature h2 { margin-top: 0; color: var(--on-ink); }
.feature p { color: var(--on-ink-muted); }
.feature a:not(.button) { color: var(--amber); }
.button { display: inline-block; font: 600 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: .95rem 1.4rem; border-radius: 2px; background: var(--amber); color: var(--ink); border: 2px solid var(--amber); cursor: pointer; }
.button:hover { background: transparent; color: var(--amber); }
.button.ghost { background: transparent; color: var(--rust); border-color: var(--rust); }
.button.ghost:hover { background: var(--rust); color: var(--paper); }

/* Tool cards */
.tool-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.tool-grid li { margin: 0; }
.tool-grid a { display: block; height: 100%; padding: 1.3rem 1.25rem; border: 1px solid var(--line); border-top: 3px solid var(--ink); background: #fbf8f2; color: var(--text); text-decoration: none; }
.tool-grid a:hover { border-top-color: var(--rust); background: #fff; }
.tool-grid strong { display: block; font: 500 1.2rem/1.25 var(--serif); margin-bottom: .35rem; }
.tool-grid span { font-size: .93rem; color: var(--muted); }

/* Guide list: a festival program */
.reels { list-style: none; padding: 0; margin: 1.25rem 0 0; counter-reset: reel; }
.reel { counter-increment: reel; margin: 0; border-top: 1px solid var(--line); }
.reel:last-child { border-bottom: 1px solid var(--line); }
.reel-link { display: grid; grid-template-columns: 3rem 1fr; gap: .2rem 1rem; padding: 1.35rem 0; color: var(--text); text-decoration: none; }
.reel-link::before { content: counter(reel, decimal-leading-zero); grid-row: span 3; font: 300 1.9rem/1 var(--serif); color: var(--rust); }
.reel-title { font: 500 1.3rem/1.3 var(--serif); }
.reel-link:hover .reel-title { text-decoration: underline; text-decoration-color: var(--rust); text-underline-offset: 4px; }
.reel-desc { color: var(--muted); font-size: .97rem; }
.reel-date { font: 600 .7rem/1.8 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Tool widgets */
.widget { margin: 2rem calc((min(100vw - 3.5rem, var(--wide) - 2.5rem) - 100%) / -2); padding: clamp(1.1rem, 4vw, 2rem); background: #fbf8f2; border: 1px solid var(--line); border-top: 3px solid var(--ink); }
.widget h2:first-child { margin-top: 0; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
label { display: block; font: 600 .78rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1px solid #a99d8b; border-radius: 2px; padding: .6rem .7rem; }
textarea { min-height: 5.5rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.status { min-height: 1.5em; font-size: .92rem; color: var(--rust); margin-top: .5rem; }
.output { margin-top: 1.5rem; }
.disclaimer { font-size: .88rem; color: var(--muted); font-style: italic; }

/* Safe zone frames */
.frames { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; align-items: end; }
.frame-card { margin: 0; text-align: center; }
.frame { position: relative; margin: 0 auto; background: linear-gradient(160deg, #3a2f27, #14110f 70%); color: var(--on-ink); overflow: hidden; border-radius: 3px; }
.frame.r916 { aspect-ratio: 9 / 16; width: 100%; max-width: 13rem; }
.frame.r11 { aspect-ratio: 1 / 1; width: 100%; max-width: 15rem; }
.frame.r169 { aspect-ratio: 16 / 9; width: 100%; max-width: 22rem; }
.zone { position: absolute; border: 2px dashed var(--amber); }
.ui-band { position: absolute; left: 0; right: 0; background: rgba(160, 58, 36, .55); font: 600 .62rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; text-align: center; padding: .2rem; }
.ui-side { position: absolute; top: 0; bottom: 0; background: rgba(160, 58, 36, .35); }
.frame-label { font: 600 .74rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-top: .6rem; }
.frame-card figcaption { font-size: .88rem; color: var(--muted); }
.thirds { position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent 33.1%, rgba(241,233,220,.25) 33.3%, transparent 33.5%, transparent 66.5%, rgba(241,233,220,.25) 66.7%, transparent 66.9%),
  linear-gradient(0deg, transparent 33.1%, rgba(241,233,220,.25) 33.3%, transparent 33.5%, transparent 66.5%, rgba(241,233,220,.25) 66.7%, transparent 66.9%); }
.toggles { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: 1.25rem; }
.toggles label { display: flex; gap: .45rem; align-items: center; text-transform: none; letter-spacing: 0; font: 500 .95rem/1.3 var(--sans); color: var(--text); margin: 0; }
.toggles input { width: auto; }

/* Teaser timeline */
.timeline { display: flex; width: 100%; height: 3rem; border: 1px solid var(--ink); margin: 1rem 0; }
.timeline span { display: flex; align-items: center; justify-content: center; font: 600 .66rem/1.1 var(--sans); color: var(--on-ink); overflow: hidden; padding: 0 2px; text-align: center; border-right: 1px solid var(--paper); }
.timeline span:nth-child(4n+1) { background: var(--ink); }
.timeline span:nth-child(4n+2) { background: var(--rust); }
.timeline span:nth-child(4n+3) { background: #5b4a3c; }
.timeline span:nth-child(4n) { background: #7a5a1f; }

/* Checklist */
.checklist { list-style: none; padding: 0; }
.checklist li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.checklist input { width: 1.2rem; height: 1.2rem; margin-top: .3rem; accent-color: var(--rust); }
.checklist label { text-transform: none; letter-spacing: 0; font: 400 1rem/1.5 var(--sans); color: var(--text); margin: 0; }
.checklist label strong { display: block; }
.checklist li.done label { color: var(--muted); }
.checklist .hint { display: block; font-size: .9rem; color: var(--muted); }
.progress { font: 600 .8rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.shot-card { border: 1px solid var(--line); background: #fff; padding: 1rem; margin-bottom: .75rem; }
.shot-card pre { white-space: pre-wrap; font: .9rem/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--paper-2); padding: .75rem; margin: .5rem 0; }

/* Footer: end credits */
.credits { background: var(--ink); color: var(--on-ink-muted); text-align: center; padding: 3rem 1.25rem 3.5rem; font-size: .9rem; }
.credits-inner { max-width: var(--measure); margin: 0 auto; }
.credits a { color: var(--on-ink); }
.end-card { font: italic 300 2rem/1 var(--serif); color: var(--amber); margin-bottom: 1.25rem; }

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .masthead-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 1rem; }
  .title-card { text-align: left; }
  .dek, h1 { margin-left: 0; }
  .kind-article .slate, .kind-tool .slate { justify-content: flex-start; }
  .reel-link { grid-template-columns: 2.2rem 1fr; }
  .reel-link::before { font-size: 1.4rem; }
  .widget { margin-left: 0; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .masthead, .credits, .skip, .actions, .no-print, .dek, .slate { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page, .content { max-width: none; padding: 0; }
  .title-card { padding: 0 0 .5rem; text-align: left; border: 0; }
  h1 { font-size: 20pt; }
  .widget { margin: 0; padding: 0; border: 0; background: #fff; }
  .checklist li { break-inside: avoid; padding: .35rem 0; }
  .checklist input { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
[hidden] { display: none !important; }
