/* ====== The Nutty Rooster — design tokens ====== */
:root {
  --coop-blue: #6a8aa3;
  --coop-blue-deep: #3d5468;
  --coop-blue-ink: #243446;
  --rust: #c2562a;
  --rust-deep: #8e3a17;
  --cream: #f3ebdc;
  --cream-2: #ece2cf;
  --paper: #f8f3e7;
  --ink: #1c1916;
  --ink-2: #2b2722;
  --fog: #b8b3aa;
  --fog-2: #8a857c;
  --moss: #5a6b46;
  --line: #d8cdb6;

  --serif: 'Roboto Slab', 'Rockwell', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --shadow-card: 0 1px 0 rgba(28,25,22,.06), 0 8px 24px -12px rgba(28,25,22,.18);
}

[data-theme="dark"] {
  --paper: #14181c;
  --cream: #1b2026;
  --cream-2: #232a31;
  --ink: #ece5d4;
  --ink-2: #cfc7b4;
  --fog: #5e6772;
  --fog-2: #8a949f;
  --line: #2a323a;
  --coop-blue: #8aa9c1;
  --coop-blue-deep: #6a8aa3;
  --coop-blue-ink: #c7dae8;
}

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: 56px; letter-spacing: -0.02em; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
p  { margin: 0; }
a  { color: var(--ink); text-decoration: none; }
a:hover { color: var(--rust); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog-2);
}

.divider-rule {
  height: 1px; background: var(--line); border: 0; margin: 0;
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-2); background: transparent;
  cursor: default;
}
.tag.solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tag.rust  { color: var(--rust); border-color: var(--rust); }
.tag.blue  { color: var(--coop-blue-deep); border-color: var(--coop-blue-deep); }
.tag.moss  { color: var(--moss); border-color: var(--moss); }

/* Filter buttons */
button.tag {
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--ink-2);
  transition: all 0.15s;
}
button.tag:hover { border-color: var(--ink); color: var(--ink); }
button.tag.solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-md);
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--cream);
  cursor: pointer; transition: all 0.15s;
}
.btn:hover { background: var(--rust); border-color: var(--rust); color: var(--cream); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }

/* Photo */
.photo {
  background: linear-gradient(135deg, var(--coop-blue) 0%, var(--coop-blue-deep) 100%);
  background-size: cover;
  background-position: center;
  display: block;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo.duotone {
  filter: contrast(1.05) saturate(0.7);
}

/* Card */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: box-shadow 0.15s;
}
.card:hover {
  box-shadow: var(--shadow-card);
}

/* Code blocks */
pre, pre.code {
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  background: var(--ink); color: var(--cream);
  padding: 16px 20px; border-radius: var(--r-md);
  overflow: auto;
  margin: 0;
}
pre .k, pre code .k { color: #e3a06a; }
pre .s, pre code .s { color: #a8c8a4; }
pre .c, pre code .c { color: #6a7884; font-style: italic; }
pre .n, pre code .n { color: #c8d6e3; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--cream-2);
  padding: 1px 5px;
  border-radius: 2px;
}
pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Hugo syntax highlighting */
.highlight pre {
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  background: var(--ink) !important; color: var(--cream);
  padding: 16px 20px; border-radius: var(--r-md);
  overflow: auto;
  margin: 0 0 24px;
}

/* Corrugated divider */
.corrugated {
  height: 14px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--fog) 0 1px,
    transparent 1px 6px,
    var(--fog-2) 6px 7px,
    transparent 7px 12px
  );
  opacity: 0.6;
  margin: 24px 0;
}

/* Grain noise */
.grain {
  position: relative;
}
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(28,25,22,0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.row { display: flex; gap: 24px; }
.col { flex: 1; }

/* ====== NAV ====== */
.tnr-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 100;
}
.tnr-nav .links { display: flex; gap: 28px; align-items: center; }
.tnr-nav .links a {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em; color: var(--ink-2);
  transition: color 0.12s;
}
.tnr-nav .links a:hover { color: var(--rust); }
.tnr-nav .links a.active { color: var(--rust); }
.tnr-nav .brand { display: flex; align-items: center; gap: 10px; }
.tnr-nav .brand .wordmark {
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  letter-spacing: -0.01em; color: var(--ink);
}
.tnr-nav .brand .wordmark em {
  font-style: italic; font-weight: 400; color: var(--rust);
}
.tnr-nav .search {
  display: flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; color: var(--fog-2);
  font-family: var(--mono); font-size: 11px;
  cursor: text;
  transition: border-color 0.15s;
}
.tnr-nav .search:hover { border-color: var(--fog); }
.tnr-nav .brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Dark mode toggle */
.dark-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  cursor: pointer;
  color: var(--fog-2);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: all 0.15s;
}
.dark-toggle:hover { border-color: var(--ink); color: var(--ink); }

/* Mobile menu button */
.mobile-menu {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 6px 8px;
  cursor: pointer;
  color: var(--ink);
}

/* ====== FOOTER ====== */
.tnr-foot {
  border-top: 1px solid var(--line);
  padding: 36px 32px 28px;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
  background: var(--cream);
  font-size: 13px; color: var(--fog-2);
}
.tnr-foot a { color: var(--ink-2); }
.tnr-foot a:hover { color: var(--rust); }
.tnr-foot .foot-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.tnr-foot .foot-brand em {
  font-style: italic;
  font-weight: 400;
  color: var(--rust);
}
.tnr-foot .foot-tagline {
  font-size: 12.5px;
  line-height: 1.55;
  max-width: 300px;
}
.tnr-foot .col-foot h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 10px; font-weight: 600;
  margin-top: 0;
}
.tnr-foot .col-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.tnr-foot .foot-copy {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 11.5px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  color: var(--fog-2);
}

/* ====== HERO ====== */
.hero-section {
  padding: 64px 32px 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
}
.hero-establish {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.hero-establish-badge img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}
.hero-establish-text {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.55;
}
.hero-establish-text .rust { color: var(--rust); }
.hero-h1 {
  font-size: 84px;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.hero-h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--rust);
}
.hero-sub {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.55;
  max-width: 520px;
  color: var(--ink-2);
}
.hero-btns {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.hero-photo-wrap {
  position: relative;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--coop-blue) 0%, var(--coop-blue-deep) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo-caption {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ====== RECENT POSTS (homepage) ====== */
.recent-posts-section {
  padding: 24px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.recent-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}
.recent-posts-header h2 { font-size: 28px; }
.recent-posts-header .all-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.post-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.post-row:first-of-type { border-top: 1px solid var(--line); }
.post-row:hover .post-title { color: var(--rust); }
.post-row .post-date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--fog-2); text-transform: uppercase; }
.post-row .post-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.post-row .post-read { font-family: var(--mono); font-size: 10.5px; color: var(--fog-2); }
.post-row .post-title { font-size: 22px; margin-bottom: 4px; transition: color 0.12s; }
.post-row .post-excerpt { color: var(--ink-2); font-size: 14.5px; max-width: 640px; }
.post-row .post-arrow { color: var(--rust); font-family: var(--mono); font-size: 18px; }

/* ====== PROJECTS STRIP (homepage) ====== */
.projects-strip {
  padding: 64px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  padding: 20px;
}
.project-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.project-card h3 { margin-bottom: 8px; }
.project-card p { color: var(--ink-2); font-size: 14px; margin-bottom: 16px; }
.project-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.project-card-foot .project-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fog-2);
}
.project-card-foot .project-link {
  color: var(--rust);
  font-family: var(--mono);
  font-size: 11px;
}

/* ====== BLOG LIST ====== */
.blog-header {
  padding: 56px 32px 32px;
  border-bottom: 1px solid var(--line);
}
.blog-header-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.blog-header h1 { font-size: 64px; }
.blog-header .sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-2);
  max-width: 640px;
}

.blog-list-section {
  padding: 32px 32px 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sort-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fog-2);
  letter-spacing: 0.08em;
}

.post-list-row {
  display: grid;
  grid-template-columns: 160px 100px 1fr 60px;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}
.post-list-row:last-of-type + .list-end { border-top: 1px solid var(--line); }
.post-list-row:hover .post-list-title { color: var(--rust); }
.post-list-row .post-list-date { font-family: var(--mono); font-size: 11px; color: var(--fog-2); letter-spacing: 0.1em; text-transform: uppercase; }
.post-list-row .post-list-title { font-size: 19px; line-height: 1.25; margin-bottom: 4px; transition: color 0.12s; }
.post-list-row .post-list-excerpt { color: var(--ink-2); font-size: 13.5px; max-width: 720px; }
.post-list-row .post-list-read { font-family: var(--mono); font-size: 11px; color: var(--fog-2); text-align: right; }
.list-end { height: 1px; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
}
.pagination a, .pagination span {
  padding: 6px 10px;
  color: var(--ink-2);
  transition: background 0.12s;
}
.pagination a:hover { background: var(--cream-2); }
.pagination .current {
  background: var(--ink);
  color: var(--cream);
}
.pagination .disabled { color: var(--fog); }

/* ====== SINGLE POST ====== */
.post-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}
.post-tags-header {
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.post-tags-header .post-dateline {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fog-2);
}
.post-h1 { font-size: 56px; line-height: 1.05; margin-bottom: 18px; }
.post-lead {
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-style: italic;
}
.post-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--coop-blue) 0%, var(--coop-blue-deep) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.post-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-hero-caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fog-2);
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.post-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}
.post-body h2 { font-size: 32px; margin-top: 48px; margin-bottom: 16px; }
.post-body h3 { font-size: 24px; margin-top: 36px; margin-bottom: 12px; }
.post-body p { margin-bottom: 18px; }
.post-body ul, .post-body ol { padding-left: 24px; line-height: 1.7; margin-bottom: 18px; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote {
  border-left: 3px solid var(--rust);
  padding-left: 24px;
  margin: 32px 0;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.4;
}
.post-body pre { margin-bottom: 24px; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.post-body a { color: var(--rust); text-decoration: underline; text-underline-offset: 2px; }

/* Drop cap */
.post-body > p:first-of-type::first-letter,
.post-body .drop-cap::first-letter {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 0.9;
  float: left;
  padding-right: 10px;
  padding-top: 8px;
  color: var(--rust);
  font-weight: 700;
}

.post-footer {
  margin-top: 56px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.post-footer-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-footer-links {
  display: flex;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.post-footer-links a { color: var(--ink-2); }
.post-footer-links a:hover { color: var(--rust); }

.author-card {
  margin-top: 32px;
  padding: 24px;
  background: var(--cream);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-radius: var(--r-md);
}
.author-card .author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--coop-blue) 0%, var(--coop-blue-deep) 100%);
}
.author-card .author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-card h3 { font-size: 20px; margin-top: 4px; margin-bottom: 6px; }
.author-card p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

.prev-next-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.prev-next-grid a {
  padding: 20px;
  text-decoration: none;
  color: inherit;
}
.prev-next-grid a h4 {
  font-family: var(--serif);
  font-size: 16px;
  margin-top: 6px;
  font-weight: 700;
  line-height: 1.3;
}
.prev-next-grid .next-link { text-align: right; }

/* ====== PROJECTS LIST ====== */
.projects-header {
  padding: 56px 32px 32px;
  border-bottom: 1px solid var(--line);
}
.projects-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: end;
}
.projects-header h1 { font-size: 64px; }
.projects-header .sub { margin-top: 16px; font-size: 16px; color: var(--ink-2); max-width: 580px; }

.projects-list-section {
  padding: 32px 32px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.project-list-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  text-decoration: none;
  color: inherit;
}
.project-list-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-list-card h3 { font-size: 22px; }
.project-list-card .desc { color: var(--ink-2); font-size: 14px; flex: 1; }
.project-list-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.project-list-card-foot .proj-tags {
  display: flex;
  gap: 5px;
}
.project-list-card-foot .proj-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fog-2);
}
.project-list-card-foot .proj-stars {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
}

/* ====== PROJECT SINGLE ====== */
.project-header {
  padding: 48px 32px 32px;
  border-bottom: 1px solid var(--line);
}
.project-header-inner {
  max-width: 980px;
  margin: 0 auto;
}
.project-header h1 { font-size: 56px; }
.project-header .desc {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 600px;
  line-height: 1.55;
}
.project-header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: flex-start;
}
.project-header-tags { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.project-dl-btns { display: grid; gap: 8px; min-width: 220px; }

.project-content-section {
  padding: 40px 32px 64px;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}
.project-content h2 { font-size: 28px; margin-top: 40px; margin-bottom: 14px; }
.project-content p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin-bottom: 16px; }
.project-content ul { font-size: 16px; line-height: 1.7; color: var(--ink-2); padding-left: 22px; }
.project-content li { margin-bottom: 6px; }
.project-content a { color: var(--rust); text-decoration: underline; text-underline-offset: 2px; }

.project-sidebar {
  position: sticky;
  top: 24px;
  align-self: flex-start;
  display: grid;
  gap: 24px;
}
.specs-card { padding: 18px; }
.specs-table {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
}
.spec-key { color: var(--fog-2); }
.spec-val { color: var(--ink); }
.related-card { padding: 18px; }
.related-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related-card ul li a {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}
.related-card ul li a:hover { color: var(--rust); }
.issues-card {
  padding: 18px;
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.issues-card .eyebrow { color: var(--rust); margin-bottom: 8px; }
.issues-card p { font-size: 12.5px; line-height: 1.55; opacity: 0.9; }

/* Schematic placeholder */
.schematic-placeholder {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  position: relative;
  min-height: 280px;
}
.schematic-label {
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fog-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ====== ABOUT ====== */
.about-hero {
  padding: 64px 32px 32px;
  max-width: 920px;
  margin: 0 auto;
}
.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.about-hero h1 { font-size: 72px; line-height: 1; }
.about-hero h1 em { font-style: italic; font-weight: 400; color: var(--rust); }
.about-hero .badge img {
  width: 220px;
  height: 220px;
  object-fit: contain;
}

.about-aerial {
  padding: 24px 32px;
  max-width: 920px;
  margin: 0 auto;
}
.about-aerial img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.about-aerial-caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fog-2);
  margin-top: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-bio {
  padding: 40px 32px 56px;
  max-width: 720px;
  margin: 0 auto;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.about-bio p { margin-bottom: 22px; }
.about-bio strong { color: var(--ink); }
.about-bio h2 { font-size: 32px; margin-top: 40px; margin-bottom: 16px; color: var(--ink); }

.cast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-size: 15px;
  margin-bottom: 22px;
}
.cast-item {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.cast-item strong {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 18px;
}
.cast-item .cast-role {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fog-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.contact-box {
  margin-top: 32px;
  padding: 20px;
  background: var(--cream);
  border-left: 3px solid var(--rust);
}
.contact-box strong { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.contact-box p { margin-top: 6px; font-size: 14.5px; }
.contact-box .email-link { font-family: var(--mono); color: var(--rust); }

.photo-strip {
  padding: 0 32px 56px;
  max-width: 1100px;
  margin: 0 auto;
}
.photo-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.photo-strip-item {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--coop-blue) 0%, var(--coop-blue-deep) 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  filter: contrast(1.05) saturate(0.7);
}
.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.7);
}

/* ====== 404 ====== */
.not-found {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}
.not-found-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 32px;
  text-align: center;
}
.not-found-inner { max-width: 540px; }
.not-found-badge { display: flex; justify-content: center; margin-bottom: 24px; }
.not-found-badge img { width: 260px; height: 260px; object-fit: contain; }
.not-found h1 { font-size: 64px; line-height: 1; margin-bottom: 16px; }
.not-found p { font-size: 17px; color: var(--ink-2); margin-bottom: 28px; line-height: 1.55; }
.not-found-btns { display: flex; justify-content: center; gap: 12px; }
.not-found pre { margin-top: 36px; text-align: left; font-size: 12px; }

/* ====== MOBILE ====== */
@media (max-width: 768px) {
  h1 { font-size: 40px !important; }
  .tnr-nav { padding: 14px 20px; flex-wrap: wrap; gap: 12px; }
  .tnr-nav .links { display: none; }
  .tnr-nav .links.open { display: flex; flex-direction: column; width: 100%; order: 3; padding: 12px 0; gap: 14px; border-top: 1px solid var(--line); margin-top: 8px; }
  .mobile-menu { display: block !important; }
  .container { padding: 0 20px; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-h1 { font-size: 52px !important; }
  .hero-photo-wrap { display: none; }
  .posts-grid { grid-template-columns: 1fr !important; }
  .projects-grid { grid-template-columns: 1fr !important; }
  .project-list-grid { grid-template-columns: 1fr !important; }
  .about-grid { grid-template-columns: 1fr !important; }
  .about-hero-grid { grid-template-columns: 1fr !important; }
  .about-hero .badge { display: none; }
  .post-meta-grid { grid-template-columns: 1fr !important; }
  .tnr-foot { flex-direction: column; gap: 28px; padding: 24px 20px; }
  .sidebar { display: none; }
  .project-sidebar { display: none; }
  h1.page-title { font-size: 48px !important; }
  .blog-header h1 { font-size: 48px; }
  .projects-header h1 { font-size: 48px; }
  .projects-header-inner { grid-template-columns: 1fr !important; }
  .post-list-row { grid-template-columns: 1fr !important; }
  .post-list-row .post-list-date { display: none; }
  .post-list-row .post-list-read { text-align: left; }
  .prev-next-grid { grid-template-columns: 1fr !important; }
  .project-content-section { grid-template-columns: 1fr !important; }
  .project-header-grid { grid-template-columns: 1fr !important; }
  .cast-grid { grid-template-columns: 1fr !important; }
  .photo-strip-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-section { padding: 32px 20px; }
  .recent-posts-section { padding: 24px 20px; }
  .post-row { grid-template-columns: 1fr !important; }
  .post-row .post-date { display: none; }
  .blog-list-section { padding: 24px 20px; }
  .projects-list-section { padding: 24px 20px; }
  .projects-strip { padding: 32px 20px; }
  .post-article { padding: 32px 20px; }
  .about-hero { padding: 32px 20px; }
  .about-bio { padding: 24px 20px; }
  .photo-strip { padding: 0 20px 32px; }
  .projects-header { padding: 32px 20px; }
}
