/* paragbatavia.com — "Dossier" redesign
   Drop-in starting point for src/css/site.css.

   This file contains ONLY the tokens, resets, and the global chrome
   (header, footer, links, focus, typography primitives). Build the page
   sections on top of it following design_handoff_site_redesign/README.md.

   Rules that hold everywhere in this design:
     - border-radius is always 0
     - borders are always 1px solid
     - there are no box-shadows except the two inset underline treatments
     - there are no gradients, no keyframes, no entrance animation
*/

:root {
  /* color */
  --bg: #EEF0F2;
  --surface: #FFFFFF;
  --surface-alt: #F7F8F9;
  --ink: #14181C;
  --ink-prose: #2A3238;      /* long-form body on post pages */
  --muted: #5A646E;
  --faint: #8993A0;
  --rule: #D5D9DD;           /* panel outlines, band edges */
  --rule-soft: #E6E9EC;      /* divisions inside a panel */
  --accent: #1E4E7A;
  --accent-hover: #0F3355;
  --accent-on-dark: #6E9CC4;
  --on-dark: #EEF0F2;
  --on-dark-muted: #A9B3BD;
  --on-dark-faint: #6E7883;

  /* type */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --container: 1240px;
  --gutter: 32px;
  --section-gap: 72px;
  --panel-gap: 32px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* ---------- primitives ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* white bordered box — the workhorse of the whole design */
.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
}

/* the gray caption bar at the top of a panel */
.panel__cap {
  margin: 0;
  padding: 11px 16px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* the wider header bar used on Work program panels */
.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 16px 28px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--rule);
}
.panel__head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.panel__head .meta {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

/* key/value spec list — Summary panel, FIRRE specs, Contact */
.spec {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
}
.spec dt {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.spec dd {
  margin: 0;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
  text-align: right;
}
.spec > dt:nth-last-of-type(1),
.spec > dd:nth-last-of-type(1) { border-bottom: 0; }

/* section labels */
.eyebrow,
.section-label {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0;
}
.eyebrow { color: var(--accent); }
.section-label { color: var(--muted); margin-bottom: 20px; }

.section-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.section-label-row .section-label { margin-bottom: 0; }

.more-link {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-decoration: none;
}
.more-link:hover { color: var(--accent-hover); }

/* small uppercase mono sub-label used above videos and spec blocks */
.sub-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 12px;
}

/* ---------- links ---------- */

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* emphasis link inside a lede: ink text with an accent rule under it */
.lede a {
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--accent);
}
.lede a:hover { box-shadow: inset 0 -1px 0 var(--accent-hover); }

/* ---------- accessibility ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* ---------- header ---------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 60px;
}

.site-brand {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-brand:hover { color: var(--ink); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}
.site-nav a {
  display: block;
  padding: 20px 14px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .is-current > a {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* mobile nav — checkbox toggle, no animation */
.nav-toggle,
.nav-toggle__label { display: none; }

@media (max-width: 720px) {
  .site-header__inner { flex-wrap: wrap; }
  .nav-toggle__label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    cursor: pointer;
  }
  .nav-toggle__label span {
    width: 22px;
    height: 2px;
    background: var(--ink);
  }
  .site-nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-top: 1px solid var(--rule-soft); }
  .site-nav a { padding: 16px 0; }
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark);
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}
.site-footer__statement {
  margin: 0 0 20px;
  max-width: 20em;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 15px;
}
.site-footer__links a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer__links a:hover { color: var(--on-dark); }
.site-footer__links .is-primary {
  color: var(--on-dark);
  box-shadow: inset 0 -1px 0 var(--accent-on-dark);
}
.site-footer__copy {
  margin: 0;
  text-align: right;
  line-height: 1.7;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--on-dark-faint);
}

@media (max-width: 820px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__copy { text-align: left; }
}

/* ---------- video embed ---------- */

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- responsive container ---------- */

@media (max-width: 560px) {
  :root { --gutter: 20px; }
}

/* ================= page sections ================= */

/* ---------- title bands ---------- */

.band {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.band__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  padding: 64px 0 56px;
  align-items: end;
}
.band__grid--hero {
  padding: 72px 0 64px;
  align-items: start;
}

.band h1 {
  font-size: 60px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.band--home h1 {
  font-size: 76px;
  line-height: 1.02;
  margin: 0 0 28px;
}
.band .eyebrow { display: block; margin: 0 0 20px; }

.lede {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
  max-width: 30em;
  text-wrap: pretty;
}
.band--home .lede {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.band__sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 36em;
  text-wrap: pretty;
}

/* ---------- sections ---------- */

.section { padding: 72px 0 0; }
.section--tight { padding: 32px 0 0; }
.section--last { padding-bottom: 80px; }

/* ---------- photo band ---------- */

.photo-band {
  position: relative;
  aspect-ratio: 10 / 3;
  max-height: 440px;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.photo-band a {
  display: block;
  width: 100%;
  height: 100%;
}
.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}
.photo-band figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  background: rgba(20, 24, 28, 0.86);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 10px 20px;
}

/* ---------- "What I enjoy" rows ---------- */

.value-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--rule-soft);
}
.value-row:last-child { border-bottom: 0; }
.value-row h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}
.value-row p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ---------- record table ---------- */

.record { width: 100%; border-collapse: collapse; }
.record thead tr {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--rule);
}
.record tr {
  display: grid;
  grid-template-columns: 120px 300px 1fr;
  gap: 32px;
  align-items: start;
}
.record th {
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: left;
}
.record tbody tr {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.record tbody tr:last-child { border-bottom: 0; }
.record thead tr,
.record tbody tr { padding-left: 28px; padding-right: 28px; }
.record td { padding: 0; }
.record .period {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
}
.record .org {
  font-size: 18px;
  font-weight: 500;
}
.record .org small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.record .result {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- recognition ---------- */

.recognition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.award-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  align-items: baseline;
  border-bottom: 1px solid var(--rule-soft);
}
.award-row:last-child { border-bottom: 0; }
.award-row a {
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: color 140ms ease;
}
.award-row a:hover { color: var(--accent); }
.award-row .year {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--faint);
  white-space: nowrap;
}
.logo-plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.logo-plate {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 20px;
}
.logo-plate img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  display: block;
}

/* ---------- post cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--rule);
}
.post-card__image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--rule);
}
.post-card__body { padding: 20px 22px 24px; }
.post-card__meta {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--faint);
  margin: 0 0 10px;
}
.post-card__title {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 10px;
}
.post-card__title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 140ms ease;
}
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ---------- category chips ---------- */

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.chip-row a {
  display: block;
  padding: 8px 16px;
  border: 1px solid var(--rule);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms ease;
}
.chip-row a:hover { color: var(--ink); }
.chip-row .is-active a {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}

/* ---------- work program panels ---------- */

.panel__body { padding: 28px; }
.panel__intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 44em;
  text-wrap: pretty;
}
.video-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.video-cols .caption,
.video-caption {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 16px 0 0;
}
.panel__addendum {
  border-top: 1px solid var(--rule-soft);
  padding-top: 24px;
}
.panel__addendum p:last-child {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 52em;
}
.panel__body--split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  padding: 28px;
}
.panel__body--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 28px;
  align-items: start;
}
.panel__body--half > p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}
.panel__body--split .prose-col p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 40em;
  text-wrap: pretty;
}
.panel__body--split .prose-col p.detail {
  font-size: 16px;
  margin: 0;
}
.side-panel { border: 1px solid var(--rule); align-self: start; }

.domain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.domain-list li {
  font-size: 15px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-soft);
}
.domain-list li:last-child { border-bottom: 0; }

/* ---------- publication rows ---------- */

.pub-row {
  display: grid;
  grid-template-columns: 80px 1fr 260px;
  gap: 32px;
  padding: 16px 28px;
  align-items: baseline;
  border-bottom: 1px solid var(--rule-soft);
}
.pub-row:last-child { border-bottom: 0; }
.pub-row .year {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--faint);
}
.pub-row a {
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: color 140ms ease;
}
.pub-row a:hover { color: var(--accent); }
.pub-row .venue {
  font-size: 14px;
  color: var(--faint);
}

/* ---------- interior page intro paragraph ---------- */

.page-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 44em;
  text-wrap: pretty;
}

/* ---------- post page ---------- */

.post-wrap { padding: 56px 0 80px; }
.post-panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 56px;
}
.post-panel__meta {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--faint);
  margin: 0 0 16px;
}
.post-panel h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.post-panel__cover {
  display: block;
  width: calc(100% + 112px);
  max-width: none;
  margin: 0 -56px 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.post-body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-prose);
  max-width: 34em;
}
.post-body > :first-child { margin-top: 0; }
.post-body h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 2.2em 0 0.6em;
}
.post-body a { color: var(--accent); text-decoration: none; }
.post-body a:hover { color: var(--accent-hover); }
.post-body blockquote {
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  font-size: 20px;
  font-weight: 300;
  color: var(--ink);
}
.post-body figure { margin: 32px 0; }
.post-body figure img { display: block; border: 1px solid var(--rule); }
.post-body figcaption {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--faint);
  margin-top: 10px;
}
.post-body img { border: 1px solid var(--rule); }
.post-panel__footer {
  border-top: 1px solid var(--rule-soft);
  margin-top: 48px;
  padding-top: 20px;
}
.post-panel__footer a {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-decoration: none;
}
.post-panel__footer a:hover { color: var(--accent-hover); }

/* ---------- contact ---------- */

.contact-panel { max-width: 560px; }
.contact-panel .spec dd a { color: var(--accent); text-decoration: none; }
.contact-panel .spec dd a:hover { color: var(--accent-hover); }

/* ---------- 404 ---------- */

.error-wrap { padding: 96px 0 120px; }
.error-panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 56px;
}
.error-panel .eyebrow { display: block; margin-bottom: 16px; }
.error-panel h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.error-panel p { color: var(--muted); margin: 0 0 24px; }

/* ================= responsive ================= */

@media (max-width: 1080px) {
  .band__grid,
  .band__grid--hero { grid-template-columns: 1fr; gap: 40px; }
  .panel__body--split { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .band--home h1 { font-size: 52px; }
  .band h1 { font-size: 42px; }
  .band--home .lede { font-size: 20px; }

  .record thead { display: none; }
  .record tr,
  .record tbody tr { display: block; }
  .record .period {
    display: block;
    color: var(--faint);
    margin-bottom: 6px;
  }
  .record .org { display: block; }
  .record .result { display: block; margin-top: 6px; }

  .pub-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .value-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .recognition-grid { grid-template-columns: 1fr; }
  .video-cols { grid-template-columns: 1fr; }
  .panel__head { flex-wrap: wrap; }
  .panel__head .meta { white-space: normal; }
  .panel__body--half { grid-template-columns: 1fr; }
  .post-panel { padding: 32px 24px; }
  .post-panel__cover { width: calc(100% + 48px); margin: 0 -24px 28px; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .band--home h1 { font-size: 40px; }
  .panel__body,
  .panel__body--split,
  .panel__body--half { padding: 20px; }
  .record thead tr,
  .record tbody tr { padding-left: 20px; padding-right: 20px; }
  .pub-row { padding: 16px 20px; }
}
