/* Noah Alatza — site styles */
:root {
  --ink: #13212f;
  --ink-2: #24364a;
  --paper: #f7f5f0;
  --paper-2: #eeebe3;
  --white: #fffdf9;
  --rule: #dcd6ca;
  --muted: #5a6572;
  --brass: #d3a566;      /* accent on dark */
  --brass-ink: #855619;  /* accent on light */
  --green: #1c3d37;
  --red: #8d2a31;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 28px; }
p { margin: 0 0 1em; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font: 600 12px/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin: 0 0 16px;
}
.muted { color: var(--muted); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--brass); color: var(--ink);
  font: 600 15px/1 var(--sans); text-decoration: none;
  border: 1px solid var(--brass); border-radius: var(--radius);
  cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: #e2bb83; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-on-dark { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-on-dark:hover { background: #fff; color: var(--ink); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: currentColor; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,240,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { font: 500 24px/1 var(--serif); text-decoration: none; margin-right: auto; }
.brand span { display: block; font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.mobile-nav[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav[open] summary span:nth-child(2) { opacity: 0; }
.mobile-nav[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav nav {
  position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--rule); box-shadow: 0 12px 32px rgba(19,33,47,.12);
  display: flex; flex-direction: column; padding: 8px;
}
.mobile-nav nav a { padding: 12px 14px; text-decoration: none; }
.mobile-nav nav a[aria-current="page"] { background: var(--paper-2); }

/* Home hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; min-height: min(720px, calc(100vh - 76px)); background: var(--ink); color: #fff; }
.hero-text { display: flex; align-items: center; padding: 72px var(--gutter); }
.hero-inner { max-width: 560px; margin-left: auto; width: 100%; }
.hero .eyebrow { color: var(--brass); }
.hero h1 { font-size: clamp(54px, 7.5vw, 104px); line-height: .95; letter-spacing: -0.03em; margin-bottom: 28px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: rgba(255,255,255,.86); max-width: 30em; margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin: 0; }
.hero .text-link { color: #fff; }
.hero-photo { background: #e9edf1; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

/* Facts */
.facts { border-bottom: 1px solid var(--rule); padding: 48px 0; }
.facts dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; margin: 0; }
.facts dl > div { border-top: 2px solid var(--ink); padding-top: 14px; }
.facts dt { font: 600 11.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-ink); }
.facts dd { margin: 8px 0 0; font-size: 15px; line-height: 1.5; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--paper-2); }

.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-photo { position: sticky; top: 108px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.about-text p { font-size: 18px; line-height: 1.75; max-width: 38em; }

.career { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.timeline li {
  display: grid; grid-template-columns: 150px 1.1fr 1fr; gap: 24px;
  padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.timeline .years { font: 600 13px/1.4 var(--sans); letter-spacing: .06em; color: var(--brass-ink); font-variant-numeric: tabular-nums; }
.timeline .role { font: 500 22px/1.3 var(--serif); }
.timeline .org { color: var(--muted); }

.work { background: var(--paper-2); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: 380px; padding: 30px; color: #fff; text-decoration: none;
  border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(19,33,47,.18); }
.work-card.tv { background: var(--ink); }
.work-card.current { background: var(--green); }
.work-card.shield { background: var(--red); }
.work-name { font: 500 clamp(46px, 5vw, 64px)/.95 var(--serif); letter-spacing: -0.03em; }
.work-name small { display: block; font: 600 11px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; margin-top: 14px; opacity: .8; }
.work-meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.work-meta strong { font: 500 24px/1.2 var(--serif); }
.work-meta > span { opacity: .85; }
.work-link { margin-top: 14px; font-weight: 600; opacity: 1 !important; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; padding: clamp(64px, 8vw, 96px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; padding-bottom: 56px; }
.site-footer .eyebrow { color: var(--brass); }
.site-footer h2 { margin: 0; max-width: 12em; }
.footer-details p { margin: 0 0 6px; color: rgba(255,255,255,.75); }
.footer-email { display: inline-block; font: 500 clamp(22px, 2.4vw, 28px)/1.2 var(--serif); color: var(--brass); margin-bottom: 14px; word-break: break-word; }
.social { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px !important; }
.social a { color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; padding-bottom: 28px; font-size: 13px; color: rgba(255,255,255,.6); }

/* Page head */
.page-head { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(44px, 6vw, 72px); }
.page-head h1 { font-size: clamp(46px, 7vw, 88px); line-height: 1; letter-spacing: -0.03em; }
.page-sub { margin: 18px 0 0; color: rgba(255,255,255,.78); font-size: 17px; }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 26px 0 0; }
.head-actions a { color: var(--brass); }

/* Résumé */
.resume { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.r-section { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--rule); }
.r-section:first-child { border-top: 0; padding-top: 0; }
.r-section > h2 { font-size: 26px; margin: 0; }
.entry { margin-bottom: 32px; }
.entry:last-child { margin-bottom: 0; }
.entry header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; align-items: baseline; }
.entry h3 { font: 600 16px/1.4 var(--sans); letter-spacing: 0; }
.entry .place { font-weight: 400; color: var(--muted); }
.entry .place::before { content: " · "; }
.dates { margin: 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry .title { margin: 2px 0 10px; font: italic 500 19px/1.4 var(--serif); color: var(--brass-ink); }
.entry ul, ul.plain { margin: 0; padding-left: 1.15em; }
.entry li, ul.plain li { margin-bottom: 6px; padding-left: 4px; }
.entry li::marker, ul.plain li::marker { color: var(--brass-ink); }
.awards { list-style: none; margin: 0; padding: 0; }
.awards li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.awards li:first-child { padding-top: 0; }

/* TV */
.stations { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.stations img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.station-list { margin: 0; }
.station-list > div { padding: 18px 0; border-top: 1px solid var(--rule); }
.station-list dt { font: 500 24px/1.25 var(--serif); }
.station-list dd { margin: 4px 0 0; color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.video { min-width: 0; }
.video-big { max-width: 960px; }
.yt { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s, transform .4s; }
.yt:hover img { opacity: 1; transform: scale(1.02); }
.yt .play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: rgba(19,33,47,.82); border: 2px solid rgba(255,255,255,.9);
}
.yt .play::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 12px; font-size: 15px; }
.video figcaption span { color: var(--muted); }
.sub-h { font-size: 26px; margin: 56px 0 24px; }

/* Archives */
.archive { padding-top: 40px; padding-bottom: clamp(56px, 8vw, 96px); }
.archive-tools {
  position: sticky; top: 76px; z-index: 5; background: var(--paper);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  padding: 16px 0; border-bottom: 1px solid var(--rule); margin-bottom: 12px;
}
.search input {
  width: min(380px, 100%); min-height: 44px; padding: 0 14px;
  font: 400 16px var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
}
.search { flex: 1 1 260px; }
.search input { width: 100%; max-width: 380px; }
.search input:focus { outline: 2px solid var(--brass-ink); outline-offset: 0; border-color: transparent; }
.chips { display: flex; gap: 8px; }
.chips button {
  min-height: 40px; padding: 0 14px; font: 500 14px var(--sans); color: var(--ink);
  background: transparent; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
}
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.archive-count { margin: 0 0 0 auto; font-size: 14px; color: var(--muted); }
.year h2 { font-size: 34px; margin: 40px 0 8px; display: flex; align-items: baseline; gap: 12px; }
.year-count { font: 500 14px var(--sans); color: var(--muted); }
.stories { list-style: none; margin: 0; padding: 0; }
.stories li {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 20px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.stories time { font-size: 13px; font-weight: 600; color: var(--brass-ink); font-variant-numeric: tabular-nums; }
.stories a { font: 400 19px/1.4 var(--serif); text-decoration: none; }
.stories a:hover { text-decoration: underline; }
.credit { font-size: 13px; color: var(--muted); text-align: right; }
.empty { padding: 40px 0; color: var(--muted); }
.archive-note { margin-top: 32px; font-size: 14px; color: var(--muted); }

/* Responsive */
@media (max-width: 1000px) {
  .nav, .header-cta { display: none; }
  .mobile-nav { display: block; }
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 260px; }
  .timeline li { grid-template-columns: 120px 1fr; }
  .timeline .org { grid-column: 2; margin-top: -16px; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 56px var(--gutter) 48px; }
  .hero-inner { margin: 0; }
  .hero-photo { max-height: 520px; }
  .hero-photo img { aspect-ratio: 4 / 5; }
  .about-grid, .stations { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .r-section { grid-template-columns: 1fr; gap: 18px; }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { min-height: 64px; }
  .brand { font-size: 21px; }
  .facts dl { grid-template-columns: 1fr; gap: 20px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .timeline .org { grid-column: 1; margin-top: 0; }
  .awards li { grid-template-columns: 1fr; gap: 2px; }
  .stories li { grid-template-columns: 1fr; gap: 2px; }
  .credit { text-align: left; }
  .archive-tools { position: static; }
  .archive-count { margin-left: 0; width: 100%; }
  .entry header { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Print: résumé and archives print cleanly */
@media print {
  @page { margin: 16mm; }
  body { background: #fff; font-size: 11pt; color: #000; }
  .site-header, .site-footer, .skip, .head-actions button, .archive-tools, .archive-note { display: none !important; }
  .page-head { background: none; color: #000; padding: 0 0 12pt; border-bottom: 1pt solid #000; }
  .page-head h1 { font-size: 28pt; }
  .page-sub { color: #000; }
  .head-actions a { color: #000; }
  .resume { padding: 12pt 0 0; }
  .r-section { grid-template-columns: 120pt 1fr; padding: 10pt 0; break-inside: avoid; }
  .entry { break-inside: avoid; margin-bottom: 10pt; }
  .entry .title { color: #000; }
  a { text-decoration: none; }
}
