/* The hub and the list page of every line. Colours and type follow filipbanasiak.com. */
@font-face { font-family: "Apfel Grotezk"; src: url("https://framerusercontent.com/assets/KwK0fH9Qx1gAi2nY6HV637MnF0.woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Apfel Grotezk"; src: url("https://framerusercontent.com/assets/soAoqUg4XLlllNDBOZtgbSkDFLM.woff2"); font-weight: 500; font-display: swap; }

:root {
  --canvas: #f7f7f7;
  --surface: #ffffff;
  --ink: #1a1b1c;
  --ink-60: rgba(26, 27, 28, 0.64);
  --ink-40: rgba(26, 27, 28, 0.44);
  --rule: rgba(26, 27, 28, 0.14);
  --hairline: rgba(26, 27, 28, 0.08);
  --grey: #c7c7c7;
  --accent: #f4f85c;
  --font: "Apfel Grotezk", Inter, system-ui, sans-serif;
  --radius: 16px;
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--canvas); }
body { font-family: var(--font); font-size: 18px; line-height: 1.5; color: var(--ink); -webkit-font-smoothing: antialiased; padding: var(--pad); }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); }
code { font-size: 0.9em; background: var(--hairline); padding: 1px 6px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }

.masthead { display: flex; flex-direction: column; gap: 14px; padding-bottom: clamp(24px, 3vw, 32px); border-bottom: 1px solid var(--rule); }
.crumb { margin: 0; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-40); }
.crumb a:hover { color: var(--ink); }
h1 { font-weight: 500; font-size: min(64px, 8vw); line-height: 1.02; letter-spacing: -0.035em; margin: 0; }
.lede { margin: 0; max-width: 62ch; color: var(--ink-60); text-wrap: pretty; }

.list { display: flex; flex-direction: column; gap: clamp(16px, 2.2vw, 24px); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(20px, 3.4vw, 48px); align-items: center;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: clamp(16px, 2vw, 22px) clamp(16px, 2vw, 22px) clamp(16px, 2vw, 22px) clamp(20px, 2.8vw, 34px);
  transition: border-color 180ms ease, background-color 180ms ease;
}
.row:hover { border-color: var(--grey); }
.row:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.row__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--ink-40); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 100px; background: var(--accent); color: var(--ink); font-weight: 500; }
.row h2 { font-weight: 500; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
.row p { margin: 0; font-size: 16px; color: var(--ink-60); max-width: 58ch; text-wrap: pretty; }
.cta { margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.cta svg { transition: transform 180ms ease; }
.row:hover .cta svg { transform: translate(2px, -2px); }
.shot { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #efefef; border: 1px solid var(--hairline); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

footer { padding-top: clamp(20px, 3vw, 28px); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 14px; color: var(--ink-40); }
footer a:hover { color: var(--ink); }

@media (max-width: 767px) {
  .row { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 20px; }
  .row .shot { order: -1; }
  .row__text { padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
