/* Filibuster — the ledger style sheet, as a web page.
   Printed matter (headings, labels) = Old Standard TT. Written matter (reading text) = Source Serif 4. */

@font-face { font-family: "Old Standard TT"; src: url(fonts/old-standard-tt-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Old Standard TT"; src: url(fonts/old-standard-tt-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Old Standard TT"; src: url(fonts/old-standard-tt-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(fonts/source-serif-4-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #ECE8DC;
  --ink: #1F2230;
  --faded: #6B5B4A;
  --pencil: #66686B;
  --feint: #8FA6BF;
  --red: #A3302A;
  --printed: "Old Standard TT", Georgia, serif;
  --written: "Source Serif 4", Georgia, serif;
  --measure: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--written);
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 0.2em; }
a:hover { color: var(--red); }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.hero img { mix-blend-mode: multiply; } /* the painting's white paper becomes ledger paper */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Printed matter */
h1, h2, h3, nav, .studio, .stamp, dt, th, .views p, .when {
  font-family: var(--printed);
}
h2, nav, .studio, .stamp, .when, .views p {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Rules: a single red line separates figures from words; a double red line means closure. */
.wordmark::after, footer::before {
  content: "";
  display: block;
  height: 7px;
  border-top: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
}

/* Masthead */
.masthead {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--feint);
  font-size: 0.85rem;
}
.studio { text-decoration: none; font-weight: 700; }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
nav a { text-decoration: none; padding: 0.25rem 0; }

/* Sections */
main > section { max-width: var(--measure); margin: 0 auto; padding: 4rem var(--gutter) 0; }
h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--red);
}
h3 { font-size: 1.2rem; margin: 0.75rem 0 0.25rem; }
.lede { max-width: 42rem; margin: 0 0 2rem; }

/* Hero: the capsule's layout — title in the sky, top left */
.hero { position: relative; padding-top: 2rem; }
.wordmark {
  display: inline-block;
  margin: 0 0 1.25rem;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wordmark::after { margin-top: 0.15em; }
@media (min-width: 701px) {
  .wordmark { position: absolute; top: 4.5%; left: calc(var(--gutter) + 3.5%); margin: 0; z-index: 1; }
  .hero { padding-top: 1.5rem; }
}
.pitch { max-width: 42rem; margin: 1.5rem auto 0; text-align: center; }
.logline { font-family: var(--printed); font-style: italic; font-size: 1.45rem; line-height: 1.35; margin: 0 0 0.75rem; }
.stamp {
  display: inline-block;
  margin: 1rem 0 0.5rem;
  padding: 0.85rem 1.75rem 0.75rem;
  border: 4px double var(--red);
  color: var(--red);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.stamp:hover { background: var(--red); color: var(--paper); }
.when { margin: 0; font-size: 0.8rem; color: var(--pencil); }

/* Empty frames waiting for art: a blank ledger leaf with feint lines and a pencilled note */
.frame {
  position: relative;
  border: 1px solid var(--faded);
  background: repeating-linear-gradient(transparent 0 23px, color-mix(in srgb, var(--feint) 45%, transparent) 23px 24px);
}
.frame::after {
  content: attr(aria-label);
  position: absolute;
  inset: auto 0.75rem 0.75rem;
  font: italic 0.85rem/1.3 var(--written);
  color: var(--pencil);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame:has(img)::after { content: none; }
.portrait { aspect-ratio: 5 / 8; }
.shot { aspect-ratio: 16 / 9; }

/* People */
.people, .views, .downloads { list-style: none; margin: 0; padding: 0; }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.25rem; max-width: 54rem; margin: 0 auto; }
@media (min-width: 760px) { .people { grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; } }
.people p { margin: 0; font-size: 1rem; }

/* The island */
.views { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 560px) { .views { grid-template-columns: repeat(2, 1fr); } }
.views .wide { grid-column: 1 / -1; }
.views p { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--faded); }

/* Particulars: questions in the left column, answers on feint lines, a red rule between */
.ledger {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
}
.ledger dt, .ledger dd { margin: 0; padding: 0.9rem 1rem; border-bottom: 1px solid var(--feint); }
.ledger dt { font-weight: 700; border-right: 1px solid var(--red); }
@media (max-width: 700px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger dt { border-right: 0; border-bottom: 0; padding-bottom: 0; }
}

/* Press kit */
.facts { border-collapse: collapse; width: 100%; max-width: 40rem; margin-bottom: 2rem; }
.facts th, .facts td { text-align: left; padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--feint); vertical-align: top; }
.facts th { width: 40%; font-weight: 400; color: var(--faded); border-right: 1px solid var(--red); }
.facts td { padding-left: 1rem; }
.downloads li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; max-width: 40rem; padding: 0.5rem 0; border-bottom: 1px dotted var(--feint); }
.downloads span { color: var(--pencil); font-size: 0.9rem; }

/* Footer: the double rule that closes the account */
footer {
  max-width: var(--measure);
  margin: 5rem auto 0;
  padding: 0 var(--gutter) 3rem;
  font-size: 0.85rem;
  color: var(--faded);
}
footer::before { margin-bottom: 1.25rem; }
footer p { margin: 0.25rem 0; }

@media (max-width: 700px) {
  body { font-size: 1.0625rem; }
  main > section { padding-top: 3rem; }
}
