@font-face {
  font-family: "Oswald";
  src: url("/fonts/oswald.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #a6a6a6;
  --line: #262626;
  --card: #0b0b0b;
  --accent: #ff9000;
  --measure: 40rem;
  --display: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding-inline: var(--gutter);
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #000; }

.wrap { max-width: 76rem; margin: 0 auto; }

/* Peace-sign pattern at the top and bottom of the page, fading toward the middle */
.wrap { position: relative; isolation: isolate; }
.wrap::before, .wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cg transform='translate(30 30) rotate(-12)'%3E%3Ccircle r='16'/%3E%3Cpath d='M0-16V16M0 0L-11.3 11.3M0 0L11.3 11.3'/%3E%3C/g%3E%3Cg transform='translate(90 90) rotate(10)'%3E%3Ccircle r='16'/%3E%3Cpath d='M0-16V16M0 0L-11.3 11.3M0 0L11.3 11.3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}
.wrap::before {
  top: 0;
  height: min(80svh, 48rem);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.wrap::after {
  bottom: 0;
  height: min(70svh, 40rem);
  background-position: 0 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
}

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--fg); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0 0 1rem; max-width: var(--measure); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92svh, 56rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2rem;
  margin-top: var(--gutter);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background:
    /* crop marks */
    linear-gradient(var(--accent), var(--accent)) top left / 2rem 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 2px 2rem no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 2rem 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 2px 2rem no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 2rem 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 2px 2rem no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 2rem 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 2px 2rem no-repeat,
    radial-gradient(ellipse 60% 55% at 78% 40%, rgba(255, 144, 0, 0.16), transparent 70%),
    var(--bg); /* opaque: keeps the peace-sign pattern outside the frame */
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--display);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.rec { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.rec::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.75rem var(--accent);
  animation: blink 1.4s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

.lang a, .lang span { padding: 0.25rem 0.4rem; text-decoration: none; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--accent); }
.lang [aria-current] { color: #000; background: var(--accent); }

.hero-main {
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
}
.portrait {
  width: clamp(7rem, 18vw, 12rem);
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  flex: none;
  background:
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 255, 255, 0.04) 10px 11px),
    #111;
  border: 1px solid var(--line);
  box-shadow: 0.6rem 0.6rem 0 var(--accent);
}
.hero h1 {
  font-size: clamp(3rem, 11vw, 8.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.tagline {
  margin: 1rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9375rem;
}
.toc a { color: var(--fg); text-decoration: none; }
.toc a span { color: var(--accent); margin-right: 0.4rem; }
.toc a:hover { color: var(--accent); }

/* ---------- Sections ---------- */
section {
  padding-block: clamp(4rem, 9vw, 7rem);
  border-bottom: 1px solid var(--line);
}
/* Headings can't be selected or copied with the cursor */
.sec-head, .work-head h3 {
  -webkit-user-select: none;
  user-select: none;
}
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.sec-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.sec-head h2 { font-size: clamp(2.25rem, 6vw, 4rem); }

/* History */
.timeline {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 44rem);
  border-left: 2px solid var(--line);
}
.timeline dt, .timeline dd { padding-bottom: 2rem; }
.timeline dt {
  position: relative;
  padding-left: 1.5rem;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.timeline dt::before {
  content: "";
  position: absolute;
  left: calc(-0.5rem - 1px);
  top: 0.55rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline dt:last-of-type::before { background: var(--accent); box-shadow: 0 0 1rem var(--accent); }
.timeline dd { margin: 0; }
.timeline dd:last-of-type, .timeline dt:last-of-type { padding-bottom: 0; }
.timeline dd a { white-space: nowrap; font-weight: 600; }

/* Work: long-form left, shorts right.
   On wide screens the columns and card lists are flattened into one grid
   (display: contents), so header, card 1, card 2… sit in shared rows and
   each long-form card is exactly as tall as the short beside it. */
.work-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
@media (min-width: 56.0625rem) {
  .work-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    column-gap: clamp(2rem, 5vw, 4rem);
    row-gap: 1.75rem;
    /* divider exactly between the two equal columns */
    background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat;
  }
  .work-col, .work-col > .cards { display: contents; }
  .work-col:not(.work-col--shorts) > *, .work-col:not(.work-col--shorts) > .cards > * { grid-column: 1; }
  .work-col--shorts > *, .work-col--shorts > .cards > * { grid-column: 2; }
  .work-head { margin-bottom: 0.25rem; }
}
.work-col h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.work-col h3::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
}
.lead { color: var(--muted); margin: 0.75rem 0 0; }

.cards { display: grid; gap: 1.75rem; margin-top: 1.75rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }

.frame { position: relative; }
.frame iframe, .frame .still {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
  object-fit: cover;
}
/* Shorts: horizontal card — vertical video on the left, text on the right */
.cards--shorts .card { flex-direction: row; }
.cards--shorts .frame {
  flex: 0 0 48%;
  display: flex;
  align-items: center;
  background: #000;
}
.cards--shorts .frame iframe { aspect-ratio: 9 / 16; }
.cards--shorts .card-body { flex: 1; min-width: 0; align-self: center; }

.card-body { padding: 1.1rem 1.25rem 1.35rem; font-size: 0.9375rem; }
.card h4 { font-size: 1.375rem; margin-bottom: 0.35rem; }
.cards--shorts .card-body { padding: 1rem 1.1rem; font-size: 0.875rem; }
.cards--shorts .card h4 { font-size: 1.125rem; }
.card .meta {
  color: var(--accent);
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}
.card .roles { color: var(--muted); margin-bottom: 0.75rem; }
.card p:last-child { margin-bottom: 0; }
.watch {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  font-weight: 600;
}
.badge {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #000;
  background: var(--accent);
  padding: 0.1rem 0.5rem;
  margin-bottom: 0.5rem;
}

/* Writing */
.writing-title {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  max-width: 50rem;
  margin-bottom: 1.5rem;
}

/* Channels */
.pull {
  max-width: 48rem;
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  line-height: 1.45;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem clamp(1rem, 3vw, 2rem);
  margin: 2.5rem auto 0;
  max-width: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: min(100%, 15rem);
  padding: 1.1rem 2.25rem;
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  border: 1.5px solid var(--accent);
  background: var(--bg); /* opaque so the peace-sign pattern doesn't show through */
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent); color: #000; }

.buttons--social {
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  max-width: none;
  margin-block: 2.5rem 0;
}
.btn--social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-width: min(15rem, 100%);
  padding: 1.1rem 2rem;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  border-width: 2px;
}
.btn--social svg {
  width: 1.6em;
  height: 1.6em;
  flex: none;
  fill: currentColor;
}
@media (max-width: 36rem) {
  .buttons--social { flex-direction: column; align-items: stretch; }
}
.btn-icon { width: 1.6em; height: 1.6em; flex: none; }

/* About */
.about-text {
  font-size: clamp(1.25rem, 2.8vw, 1.875rem);
  line-height: 1.45;
  max-width: 50rem;
}

/* Footer */
.site-footer { padding-block: clamp(4rem, 9vw, 6rem) 3rem; }
.footer-label {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.email {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 5.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  overflow-wrap: anywhere;
  margin-bottom: 2rem;
}
.email:hover { color: var(--accent); }
.software {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  max-width: none;
}

/* ---------- Narrow screens ---------- */
@media (max-width: 56rem) {
  .work-col--shorts {
    border-top: 1px solid var(--line);
    padding-top: 2.5rem;
  }
}
@media (max-width: 36rem) {
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline dt { padding-bottom: 0.25rem; }
  .timeline dd { padding-left: 1.5rem; }
  .hero { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rec::before { animation: none; }
  .card, .btn { transition: none; }
  .card:hover { transform: none; }
}
