/* ==========================================================
   melissaboswell.com — site styles
   Type: Playfair Display (display) + Avenir (text)
   Palette: charcoal + white, one restrained accent
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600&display=swap');

:root {
  --ink: #1e2025;          /* charcoal (original site color) */
  --ink-2: #26282d;
  --ink-soft: #434953;     /* secondary text */
  --ink-mute: #4c535f;
  --rule: #e3e4e8;
  --paper: #ffffff;
  --paper-2: #f7f7f7;
  --on-ink: #f4f4f2;
  --on-ink-mute: #c5c8d0;

  --accent: oklch(0.52 0.09 12);      /* wine — pulled from the portrait */
  --accent-on-ink: oklch(0.74 0.08 12);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Avenir Next', 'Avenir', 'Nunito Sans', 'Helvetica Neue', Helvetica, sans-serif;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 56px);
}

html[data-accent="sage"]  { --accent: oklch(0.52 0.06 150); --accent-on-ink: oklch(0.76 0.06 150); }
html[data-accent="brass"] { --accent: oklch(0.56 0.09 75);  --accent-on-ink: oklch(0.80 0.09 80); }
html[data-accent="slate"] { --accent: oklch(0.50 0.08 250); --accent-on-ink: oklch(0.76 0.07 250); }
html[data-accent="none"]  { --accent: var(--ink); --accent-on-ink: #ffffff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
strong { font-weight: 600; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.18; margin: 0; text-wrap: balance; }
::selection { background: var(--ink); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.on-ink .eyebrow { color: var(--on-ink-mute); }
.on-ink .eyebrow::before { background: var(--accent-on-ink); }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: var(--on-ink);
  transition: box-shadow .3s ease;
}
.site-head.scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.18); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--serif); font-size: 22px; text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.nav { display: flex; gap: clamp(14px, 1.9vw, 28px); align-items: center; }
.nav a {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--on-ink-mute); padding: 6px 0; position: relative; font-weight: 400;
  transition: color .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent-on-ink); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--ink);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 24px var(--gut);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav a { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 30px; color: var(--on-ink); padding: 10px 0; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent-on-ink); }
  body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
}

/* ---------- Page header band (inner pages) ---------- */
.page-head { background: var(--ink); color: var(--on-ink); padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); }
.page-head h1 { font-size: clamp(44px, 6.4vw, 84px); letter-spacing: -0.01em; }
.page-head .lede { color: var(--on-ink-mute); font-size: 19px; max-width: 620px; margin: 24px 0 0; }
.page-head .lede a { color: var(--on-ink); text-decoration-color: var(--accent-on-ink); text-underline-offset: 4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { padding-top: 0; }
.section.tint { background: var(--paper-2); padding-top: clamp(64px, 9vw, 120px); }
.section.ink { background: var(--ink); color: var(--on-ink); padding-top: clamp(64px, 9vw, 120px); }
.section-title { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.section-intro { color: var(--ink-soft); max-width: 640px; margin-bottom: 48px; }

/* Two-column "label | content" rows used on Research + CV */
.split { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 24px clamp(32px, 6vw, 96px); }
.split > .split-label { position: sticky; top: 108px; align-self: start; }
.split-label h2 { font-size: clamp(28px, 3vw, 38px); }
.split-label p { color: var(--ink-soft); font-size: 15px; margin-top: 14px; }
.split + .split { margin-top: clamp(72px, 9vw, 120px); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split > .split-label { position: static; } }

/* ---------- Links & buttons ---------- */
.link {
  text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .3s ease, color .2s ease; padding-bottom: 1px;
}
.link:hover { color: var(--accent); }
.prose a, .entry a:not(.entry-title a), .inline-link {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--accent); text-underline-offset: 3px; transition: color .2s;
}
.prose a:hover, .entry a:hover, .inline-link:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; font-weight: 400;
  padding: 15px 24px; border: 1px solid currentColor; transition: background .25s, color .25s, border-color .25s;
}
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(4px); }
.on-ink .btn { color: var(--on-ink); border-color: rgba(255,255,255,.35); }
.on-ink .btn:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn.solid { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn.solid:hover { background: transparent; color: var(--on-ink); }
.btn.dark { color: var(--ink); border-color: var(--ink); }
.btn.dark:hover { background: var(--ink); color: #fff; }

.arrow-link {
  display: inline-flex; gap: 10px; align-items: center; text-decoration: none;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400;
}
.arrow-link .arr { transition: transform .25s ease; color: var(--accent); }
.on-ink .arrow-link .arr { color: var(--accent-on-ink); }
.arrow-link:hover .arr { transform: translateX(5px); }

/* ---------- Home hero ---------- */
.hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-copy { align-self: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 70px); line-height: 1.08; letter-spacing: -0.012em; }
.hero h1 em { font-style: italic; color: var(--accent-on-ink); }
.hero .lede { color: var(--on-ink-mute); font-size: 18px; max-width: 520px; margin: 28px 0 36px; }
.roles { list-style: none; padding: 0; margin: 0 0 40px; border-top: 1px solid rgba(255,255,255,.12); max-width: 540px; }
.roles li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: 1fr auto; gap: 16px; font-size: 15px; }
.roles li span:last-child { color: var(--on-ink-mute); text-align: right; }
.roles a { text-decoration: none; border-bottom: 1px solid var(--accent-on-ink); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo { margin: 0; max-width: 420px; width: 100%; justify-self: center; }
.hero-photo .ph { position: relative; padding: 12px; border: 1px solid rgba(255,255,255,.16); }
.hero-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 25%; }
.hero-photo figcaption { margin-top: 20px; text-align: center; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-ink); }
.hero-photo figcaption span { color: var(--accent-on-ink); margin: 0 6px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { max-width: 340px; }
}

/* ---------- Cards / list rows ---------- */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: baseline; text-decoration: none; transition: background .2s; }
.row:hover .row-title { color: var(--accent); }
.row-meta { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.row-title { font-family: var(--serif); font-size: 24px; line-height: 1.25; transition: color .2s; }
.row-sub { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.row .arr { color: var(--accent); transition: transform .25s; }
.row:hover .arr { transform: translateX(5px); }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: 6px; } .row .arr { display: none; } }

/* ---------- Entries (pubs, CV items) ---------- */
.entries { list-style: none; margin: 0; padding: 0; }
.entry { padding: 26px 0; border-top: 1px solid var(--rule); }
.entry:last-child { border-bottom: 1px solid var(--rule); }
.entry-top { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.entry-title { font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.entry-title a { text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s ease, color .2s; }
.entry-title a:hover { background-size: 100% 1px; color: var(--accent); }
.entry-title a .ext { font-family: var(--sans); font-size: 14px; color: var(--accent); margin-left: 6px; }
.entry-date { font-size: 13px; letter-spacing: .1em; color: var(--ink-mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry-role { font-size: 15px; color: var(--ink); margin-top: 4px; font-weight: 400; }
.entry-org { font-size: 15px; color: var(--ink-soft); margin-top: 2px; }
.entry-body { font-size: 15px; color: var(--ink-soft); margin-top: 10px; }
.entry-body p:last-child { margin-bottom: 0; }
.entry-body ul { margin: 8px 0 0; padding-left: 18px; }
.entry-body li { margin-bottom: 4px; }
.cite { font-size: 15px; color: var(--ink-soft); margin-top: 8px; }
.cite b { font-weight: 600; color: var(--ink); }
.cite i { font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; }
.tags span.lbl { color: var(--ink-mute); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.badge { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; padding: 2px 8px; margin-left: 10px; vertical-align: 3px; font-family: var(--sans); font-weight: 400; }
.new-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 3px; }

ol.pubs { list-style: none; counter-reset: pub; padding: 0; margin: 0; }
ol.pubs > li { counter-increment: pub; display: block; position: relative; padding: 20px 0 20px 44px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-soft); }
ol.pubs > li::before { position: absolute; left: 0; top: 23px; }
ol.pubs > li:last-child { border-bottom: 1px solid var(--rule); }
ol.pubs > li::before { content: counter(pub, decimal-leading-zero); font-size: 12px; letter-spacing: .1em; color: var(--ink-mute); padding-top: 3px; font-variant-numeric: tabular-nums; }
ol.pubs b { color: var(--ink); font-weight: 600; }
ol.pubs .t { color: var(--ink); }
ol.pubs a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.footnote { font-size: 13px; color: var(--ink-mute); margin-top: 14px; }

/* compact two-column list */
.grid-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; list-style: none; padding: 0; margin: 0; }
.grid-list li { padding: 16px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.grid-list li .y { display: block; font-size: 12px; letter-spacing: .1em; color: var(--ink-mute); }
.grid-list li .o { color: var(--ink-soft); }
@media (max-width: 640px) { .grid-list { grid-template-columns: 1fr; } }

/* CV jump nav */
.jump { position: sticky; top: 76px; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.jump .wrap { display: flex; gap: clamp(14px, 1.6vw, 18px); overflow-x: auto; scrollbar-width: none; }
.jump .wrap::-webkit-scrollbar { display: none; }
.jump a { flex: none; font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); padding: 16px 0; border-bottom: 1px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.jump a:hover, .jump a:focus-visible, .jump a.on { color: var(--ink); border-color: var(--accent); }
.cv-section { scroll-margin-top: 150px; }
.cv-section .split-label { top: 148px; }
.cv-section .split-label h2 { font-weight: 500; }

/* ---------- Research themes ---------- */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.theme { padding: 32px 32px 8px 0; }
.theme + .theme { padding-left: 32px; border-left: 1px solid rgba(255,255,255,.14); }
.theme .n { font-family: var(--serif); font-style: italic; color: var(--accent-on-ink); font-size: 18px; }
.theme h3 { font-size: 26px; margin: 10px 0 12px; }
.theme p { color: var(--on-ink-mute); font-size: 15px; }
@media (max-width: 820px) { .themes { grid-template-columns: 1fr; } .theme, .theme + .theme { padding: 28px 0 4px; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); } .themes { border-top: 0; } }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.project { background: #fff; padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 10px; }
.project .yr { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); display: flex; justify-content: space-between; }
.project .yr .role { color: var(--accent); }
.project h3 { font-size: 20px; line-height: 1.3; }
.project .fund { font-size: 14px; color: var(--ink-soft); margin-top: auto; padding-top: 8px; }
@media (max-width: 720px) { .projects { grid-template-columns: 1fr; } }

/* ---------- Media ---------- */
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.media-item .frame { position: relative; aspect-ratio: 16/9; background: var(--ink); overflow: hidden; }
.media-item .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-item .frame.audio { aspect-ratio: auto; height: 152px; background: transparent; }
.media-item .kind { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin: 18px 0 8px; }
.media-item h3 { font-size: 23px; margin-bottom: 8px; }
.media-item p { color: var(--ink-soft); font-size: 16px; margin: 0; }
@media (max-width: 760px) { .media-grid { grid-template-columns: 1fr; } }

.press { display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; background: var(--ink); color: var(--on-ink); text-decoration: none; overflow: hidden; }
.press-body { padding: clamp(32px, 5vw, 64px); }
.press-body h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 6px 0 18px; transition: color .25s; }
.press:hover h2 { color: var(--accent-on-ink); }
.press-body p { color: var(--on-ink-mute); max-width: 560px; }
.press-side { border-left: 1px solid rgba(255,255,255,.12); padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.press-side blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; }
@media (max-width: 820px) { .press { grid-template-columns: 1fr; } .press-side { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); } }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.post-card { text-decoration: none; display: block; }
.post-card .img { aspect-ratio: 3/2; overflow: hidden; background: var(--paper-2); }
.post-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.post-card:hover .img img { transform: scale(1.035); }
.post-card .meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin: 20px 0 10px; }
.post-card h2 { font-size: 26px; line-height: 1.22; margin-bottom: 10px; transition: color .2s; }
.post-card:hover h2 { color: var(--accent); }
.post-card p { color: var(--ink-soft); font-size: 15px; margin: 0; }
@media (max-width: 760px) { .post-list { grid-template-columns: 1fr; } }

.article-head { background: var(--ink); color: var(--on-ink); padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.article-head h1 { font-size: clamp(36px, 5vw, 62px); max-width: 900px; }
.article-head .meta { color: var(--on-ink-mute); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-top: 26px; }
.article-head .back { color: var(--on-ink-mute); text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; display: inline-block; margin-bottom: 36px; }
.article-head .back:hover { color: #fff; }
.prose { max-width: 700px; margin: 0 auto; font-size: 18.5px; line-height: 1.78; }
.prose h2 { font-size: 32px; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 25px; margin: 2em 0 .5em; }
.prose figure { margin: 2.4em 0; }
.prose figure img { width: 100%; height: auto; }
.prose figcaption { font-size: 14px; color: var(--ink-mute); margin-top: 10px; }
.prose blockquote { margin: 2em 0; padding: 0 0 0 28px; border-left: 1px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.45; }
.prose ol, .prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; font-size: 15px; color: var(--ink-soft); }
.prose strong { font-weight: 600; }
.post-nav { max-width: 700px; margin: 72px auto 0; padding-top: 32px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 24px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-grid .about-copy p:last-child { margin-bottom: 0; }
.about-rest { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.about-photo { position: static; }
.about-photo .ph { padding: 12px; border: 1px solid var(--rule); }
.about-photo img { width: 100%; height: auto; }
.about-photo figcaption { font-size: 14px; color: var(--ink-mute); margin-top: 12px; }
.about-copy { font-size: 19px; }
.about-copy .big { font-family: var(--serif); font-size: clamp(24px, 2.5vw, 31px); line-height: 1.4; margin-bottom: 1.2em; }
.pull { margin: 2.2em 0; padding: 36px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; }
.pull .q { color: var(--accent); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-photo { position: static; } }

/* ---------- Podcast ---------- */
.pod { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.pod .stats { display: flex; gap: 48px; margin: 34px 0 40px; }
.pod .stats div { font-family: var(--serif); font-size: 48px; line-height: 1; }
.pod .stats small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-top: 10px; }
.listen { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.listen a { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 16px; transition: color .2s, padding .25s; }
.listen a:hover { color: var(--accent); padding-left: 6px; }
.listen .arr { color: var(--accent); }
@media (max-width: 820px) { .pod { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 96px); }
.contact-links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.contact-links a { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-family: var(--serif); font-size: 24px; transition: color .2s; }
.contact-links a:hover { color: var(--accent); }
.contact-links .arr { font-family: var(--sans); color: var(--accent); font-size: 18px; }
form.contact { display: grid; gap: 22px; }
.field label { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid #c2c5cd; padding: 10px 0; border-radius: 0; outline: none; transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
form.contact button { justify-self: start; background: var(--ink); color: #fff; border: 1px solid var(--ink); cursor: pointer; font-family: var(--sans); }
form.contact button:hover { background: transparent; color: var(--ink); }
.form-note { font-size: 14px; color: var(--ink-mute); }
@media (max-width: 820px) { .contact-grid, .two { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: var(--on-ink-mute); padding: 72px 0 40px; font-size: 14px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-name { font-family: var(--serif); font-size: 30px; color: var(--on-ink); margin-bottom: 10px; }
.site-foot h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-mute); font-weight: 400; margin-bottom: 16px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 8px 0; }
.site-foot a { text-decoration: none; color: var(--on-ink); transition: color .2s; }
.site-foot a:hover { color: var(--accent-on-ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; font-size: 13px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Tweaks panel (design review only) ---------- */
#tweaks { position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 260px; background: #fff; color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 20px 50px rgba(0,0,0,.18); padding: 18px 18px 16px; font-size: 13px; display: none; }
#tweaks.show { display: block; }
#tweaks .tw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
#tweaks .tw-head b { font-family: var(--serif); font-weight: 400; font-size: 18px; }
#tweaks .tw-head button { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--ink-mute); }
#tweaks .tw-lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin: 4px 0 10px; }
#tweaks .sw { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
#tweaks .sw button { aspect-ratio: 1; border: 1px solid var(--rule); cursor: pointer; padding: 0; position: relative; }
#tweaks .sw button.on { outline: 2px solid var(--ink); outline-offset: 2px; }
#tweaks .sw-names { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; font-size: 10px; color: var(--ink-mute); text-align: center; margin-top: 6px; }
