/* ============================================================
   Research Group Site — Design System v2
   Inspiration: Oranssi (Squarespace) — bold full-bleed imagery,
   generous whitespace, rounded photo frames, service-card grids,
   a CTA band, and a quote/testimonial rhythm. Reworked here for
   a physical-sciences/engineering lab: image blocks stand in for
   real lab/field photography, and the quote band carries alumni
   and collaborator voices instead of client testimonials.
   ============================================================ */

:root {
  /* Palette — dark theme */
  --paper: #12151a;
  --ink: #edece7;
  --ink-soft: #8b93a0;
  --accent: #d9a344;
  --accent-deep: #f0c274;
  --teal: #4fa89c;
  --surface: #1a1e25;
  --line: #2a2f38;
  --cta-start: #2a2018;
  --cta-end: #171310;
  --cta-text: #f5ede0;
  --cta-text-soft: rgba(245,237,224,0.72);

  --radius: 20px;
  --radius-sm: 12px;

  --font-display: "Sora", "Arial", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--teal); }
a:hover { color: var(--accent-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

img { max-width: 100%; display: block; }

.sheet { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */

header.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* The masthead's left column is the mono affiliation line, then a lockup
   holding the lab name and its subtitle on a shared baseline, split by a
   hairline. Keeping them on one line makes the header short, but it is
   also the widest arrangement — see the breakpoint below, where the
   subtitle wraps to its own line and the hairline is dropped. */
/* Centred, not baseline-aligned: sharing a baseline with a 26px name makes
   small uppercase text read as sitting too low, because all-caps has no
   descenders to balance it. Centring lines the subtitle's cap height up
   with the middle of the name instead. */
.masthead-lockup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2px;
}

.masthead-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Stretches to the lockup's line box rather than carrying a fixed height,
   so it always matches the name's cap height. */
.masthead-bar {
  width: 1px;
  align-self: stretch;
  margin: 3px 0;
  background: var(--line);
}

/* line-height: 1 makes the box hug the caps, so the centring above lands
   on the letterforms rather than on the leading around them. Tracking this
   wide leaves a trailing gap on the right, which is invisible while the
   block stays left-aligned. */
.masthead-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
}

.masthead-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin: 0;
}

/* On narrow screens the nav wraps below the wordmark and the lockup can no
   longer hold one line, so the subtitle drops under the name. The hairline
   goes with it — left in place it would stretch the full two-line height
   and read as a stray rule. */
@media (max-width: 620px) {
  .masthead-lockup { gap: 4px; }
  .masthead-bar { display: none; }
  .masthead-name { font-size: 22px; }
  .masthead-sub { font-size: 11px; letter-spacing: 0.1em; }
}

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}

nav.primary-nav a { color: var(--ink); text-decoration: none; }
nav.primary-nav a:hover, nav.primary-nav a[aria-current="page"] { color: var(--accent-deep); }

.btn-nav {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
}
.btn-nav:hover { background: var(--accent-deep); color: var(--paper) !important; }

/* ---------- Photo frame: stand-in for real photography.
   A gradient block plays the role images will later fill,
   captioned like a figure/plate to make the placeholder obvious. ---------- */

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #2b5d56 0%, #16302c 60%, #0f211e 100%);
  box-shadow: 0 0 0 1px var(--line);
}

.photo-frame.warm { background: linear-gradient(135deg, #c98a2c 0%, #8a5a1c 60%, #5c3b12 100%); }
.photo-frame.ink { background: linear-gradient(135deg, #3a4250 0%, #1c222b 60%, #10141a 100%); }
.photo-frame.plain { background: #ffffff; }

/* Annotated scientific figures: never crop — scale bars, legends and axis
   labels live at the edges. Letterboxes against black to match the dark
   backgrounds these micrographs are exported on. */
.photo-frame.figure { background: #000000; }
.photo-frame.figure img { object-fit: contain; }

/* For an annotated figure exported on a white ground instead of black.
   Keeps .figure's no-crop rule and flips the letterbox bars and caption to
   suit it — the same pairing as .fit/.on-white in the slideshow. */
.photo-frame.figure.on-white { background: #ffffff; }
.photo-frame.figure.on-white .cap {
  color: rgba(0,0,0,0.78);
  text-shadow: none;
}

/* Avatars reuse the photo-frame gradient system but at fixed circular size */
.photo-frame.avatar { min-height: 0; align-items: center; justify-content: center; flex-shrink: 0; }

.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame .cap {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  padding: 12px 16px;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.08;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero p.lede { font-size: 17.5px; color: var(--ink-soft); max-width: 52ch; margin: 0 0 28px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 24px;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.hero .photo-frame { min-height: 320px; }

.epigraph {
  margin: 0;
  padding: 28px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.epigraph p {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
}
.epigraph cite {
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Site-wide entrance animation ---------- */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Generic cascade for every page's top-level sections. Excludes the
   homepage hero pieces and card grid below, which get their own more
   granular stagger further down so the two schemes don't compound. */
main.sheet > *:not(.epigraph):not(.hero-home):not(.grid) {
  opacity: 0;
  animation: fade-up 0.6s ease-out forwards;
}
main.sheet > *:not(.epigraph):not(.hero-home):not(.grid):nth-child(1) { animation-delay: 0.05s; }
main.sheet > *:not(.epigraph):not(.hero-home):not(.grid):nth-child(2) { animation-delay: 0.15s; }
main.sheet > *:not(.epigraph):not(.hero-home):not(.grid):nth-child(3) { animation-delay: 0.25s; }
main.sheet > *:not(.epigraph):not(.hero-home):not(.grid):nth-child(4) { animation-delay: 0.35s; }
main.sheet > *:not(.epigraph):not(.hero-home):not(.grid):nth-child(5) { animation-delay: 0.45s; }
main.sheet > *:not(.epigraph):not(.hero-home):not(.grid):nth-child(6) { animation-delay: 0.55s; }
main.sheet > *:not(.epigraph):not(.hero-home):not(.grid):nth-child(n+7) { animation-delay: 0.6s; }

.epigraph { opacity: 0; animation: fade-up 0.7s ease-out forwards; }

.hero-home .hero-eyebrow,
.hero-home h1,
.hero-home p.lede,
.hero-home .hero-actions,
.hero-home .photo-frame {
  opacity: 0;
  animation: fade-up 0.7s ease-out forwards;
}
.hero-home .hero-eyebrow { animation-delay: 0.15s; }
.hero-home h1 { animation-delay: 0.25s; }
.hero-home p.lede { animation-delay: 0.35s; }
.hero-home .hero-actions { animation-delay: 0.45s; }
.hero-home .photo-frame { animation-delay: 0.2s; }

.grid .card {
  opacity: 0;
  animation: fade-up 0.6s ease-out forwards;
}
.grid .card:nth-child(1) { animation-delay: 0.55s; }
.grid .card:nth-child(2) { animation-delay: 0.65s; }
.grid .card:nth-child(3) { animation-delay: 0.75s; }
.grid .card:nth-child(4) { animation-delay: 0.85s; }

@media (prefers-reduced-motion: reduce) {
  main.sheet > *,
  .epigraph,
  .hero-home .hero-eyebrow,
  .hero-home h1,
  .hero-home p.lede,
  .hero-home .hero-actions,
  .hero-home .photo-frame,
  .grid .card {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

/* ---------- Slideshow ---------- */

/* Rotating image panel. Degrades to a single static image when only one
   slide is present (JS adds data-single, which hides the dots). */
.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  background: #000000;
  aspect-ratio: 5 / 2;
  margin-top: 40px;
}

@media (max-width: 700px) { .slideshow { aspect-ratio: 3 / 2; } }

.slideshow .slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slideshow .slide.is-active { opacity: 1; }

.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; }

/* The panel is far wider than these figures, so cover() crops top and
   bottom. Add .anchor-top to a slide whose meaningful content (a signal
   trace, a scale bar, a label) sits near the top edge. The window sits
   just below the very top so the frame isn't mostly empty background;
   pushing this much past ~12% starts clipping content at the top edge. */
.slideshow .slide.anchor-top img { object-position: center 10%; }

/* Add .fit to a slide carrying a full data figure — axis labels, colorbars
   and scale bars live at the edges, so it must never be cropped. Letterboxes
   against the panel's black background, which these figures are exported on. */
.slideshow .slide.fit img { object-fit: contain; }

/* Backdrop for a slide whose image has a transparent background.
   Change this one colour to taste. */
.slideshow .slide.on-white { background: #ffffff; }

/* The caption is light with a dark halo by default, for legibility over
   photographs. On a white backdrop it needs the opposite treatment. */
.slideshow .slide.on-white figcaption {
  color: #000000;
  text-shadow: none;
}

.slideshow figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  padding: 12px 16px;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.slideshow .dots {
  position: absolute;
  right: 14px;
  bottom: 13px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.slideshow[data-single] .dots { display: none; }

.slideshow .dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.75);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.slideshow .dots button:hover { background: rgba(255,255,255,0.6); }
.slideshow .dots button[aria-current="true"] {
  background: var(--accent);
  border-color: var(--accent);
}

/* No crossfade for readers who ask for reduced motion; the script also
   skips auto-advance entirely in that case. */
@media (prefers-reduced-motion: reduce) {
  .slideshow .slide { transition: none; }
}

/* ---------- Intro prose ---------- */

/* Opening statement on the homepage: centered headline over a justified
   description of what the group does. The block itself is centered in the
   sheet; the body copy is set flush on both edges. */
.intro-prose {
  max-width: 68ch;
  margin: 0 auto;
  padding: 64px 0 8px;
}

.intro-prose h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
  margin: 0 0 26px;
}

/* Hyphenation keeps justified text from opening up rivers of whitespace
   between words on narrow viewports. */
.intro-prose p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-soft);
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  margin: 0 0 18px;
}

.intro-prose p:last-child { margin-bottom: 0; }

/* ---------- Section headers ---------- */

.section-head {
  padding: 72px 0 8px;
  max-width: 640px;
}

.section-head .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 10px;
}

.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- Cards (service-style grid) ---------- */

.grid { display: grid; gap: 22px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 22px;
}

.card .mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  margin-bottom: 16px;
}

.card h3 { font-family: var(--font-display); font-size: 17.5px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Project / recent-work strip ---------- */

.project-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .project-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .project-strip { grid-template-columns: 1fr; } }

.project-strip a { display: block; color: inherit; text-decoration: none; }
.project-strip a:hover .photo-frame { box-shadow: 0 0 0 1px var(--accent); }
.project-strip a:hover .proj-title { color: var(--accent-deep); }

.project-strip .photo-frame { min-height: 180px; }
.project-strip .proj-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
}

/* ---------- CTA band ---------- */

.cta-band {
  margin: 88px 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(160deg, var(--cta-start) 0%, var(--cta-end) 100%);
  color: var(--cta-text);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  max-width: 20ch;
  margin: 0 auto 18px;
}

.cta-band p { color: var(--cta-text-soft); max-width: 50ch; margin: 0 auto 28px; }

.cta-band .btn.primary { background: var(--accent); border-color: var(--accent); }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

.team-member .avatar {
  border-radius: var(--radius);
  width: 200px; height: 300px;
  margin-bottom: 14px;
}

.team-member h3 { font-family: var(--font-display); font-size: 16.5px; margin: 0 0 2px; }
.team-member .role { font-size: 13px; color: var(--accent-deep); font-weight: 600; margin-bottom: 8px; }
.team-member p.bio { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* Larger single-person spotlight (PI) */
.person-spotlight {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}
@media (max-width: 620px) { .person-spotlight { grid-template-columns: 1fr; } }
.person-spotlight .avatar { border-radius: var(--radius); width: 200px; height: 300px; }

/* ---------- Quotes ---------- */

.quote-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .quote-row { grid-template-columns: 1fr; } }

.quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 24px;
}
.quote-card p.q { font-size: 15px; margin: 0 0 16px; }
.quote-card p.q::before { content: "\201C"; color: var(--accent); font-size: 28px; line-height: 0; display: inline-block; vertical-align: -6px; margin-right: 2px; }
.quote-card .attr { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Talks ---------- */

.talk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px) { .talk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .talk-grid { grid-template-columns: 1fr; } }

.talk-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.talk-card .thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
}

.talk-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.talk-card:hover .thumb img { transform: scale(1.05); }

/* maxresdefault.jpg is native 16:9, but older uploads only have
   hqdefault.jpg — 4:3 with letterbox bars. Add .crop to the .thumb
   in that case to scale up and recover the 16:9 frame. */
.talk-card .thumb.crop img { transform: scale(1.35); }
.talk-card:hover .thumb.crop img { transform: scale(1.42); }

/* Add .photo when the thumb is a real 3:2 event photo rather than a
   YouTube still — biases the 16:9 crop upward so the speaker's head
   isn't clipped. */
.talk-card .thumb.photo img { object-position: center 30%; }

.talk-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* Play badge */
.talk-card .play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  border-radius: 100px;
  background: rgba(18,21,26,0.72);
  border: 1px solid rgba(245,237,224,0.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.talk-card .play::before {
  content: "";
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--cta-text);
  margin-left: 4px;
}
.talk-card:hover .play { background: var(--accent); border-color: var(--accent); }
.talk-card:hover .play::before { border-left-color: #12151a; }

.talk-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 4px;
}
.talk-card:hover h3 { color: var(--accent-deep); }

.talk-card .venue {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Publications ---------- */

.pub-list { list-style: none; margin: 0; padding: 0; }
.pub {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.pub h3 { font-size: 16.5px; margin: 0 0 4px; font-weight: 600; }
.pub h3 a { color: var(--ink); text-decoration: none; }
.pub h3 a:hover { color: var(--accent-deep); text-decoration: underline; }
.pub .meta { font-size: 13px; color: var(--ink-soft); }
.pub .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 3px 10px;
  margin-top: 8px;
}

/* ---------- News ---------- */

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 620px) { .news-item { grid-template-columns: 1fr; } }

.news-item .date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-top: 3px;
}
.news-item h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 8px; }
.news-item p { color: var(--ink-soft); margin: 0; max-width: 62ch; }

/* ---------- Contact ---------- */

/* The contact page is a single prose column — no cards, no form. Narrower
   measure than .intro-prose and left-aligned, to sit under the left-aligned
   .section-head above it. */
.contact-note {
  max-width: 58ch;
  padding: 12px 0 0;
}

.contact-note p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.contact-note p:last-child { margin-bottom: 0; }

/* The email is the one thing a visitor came for, so it gets the mono face
   and the accent rather than sitting inside a run of prose. */
.contact-note .email {
  font-family: var(--font-mono);
  font-size: 16px;
  margin-bottom: 28px;
}

.contact-note .email a { color: var(--accent-deep); }

/* Address on the left, map on the right. This block sits outside the 58ch
   prose measure above, because the two columns together need more width
   than comfortable reading allows. */
.address-block {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  max-width: 780px;
  margin-top: 44px;
  padding-bottom: 96px;
}

@media (max-width: 640px) {
  .address-block { grid-template-columns: 1fr; gap: 20px; }
}

/* A quiet mono label, in the same register as .masthead-id rather than
   another heading. */
.address-block .address-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.address-block .address {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

/* The embed ships with width="600" height="450", which would overflow its
   column on a phone. Dropping those attributes and driving the size from
   here lets it fill the grid column at a 4:3 shape and shrink when the
   block stacks. */
.address-block .address-map {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}

.address-block .address-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* .contact-grid and the .field styles below are unused now that the form is
   gone — kept in case the form comes back. */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */

footer.site-footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 32px 46px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.footer-inner a { color: var(--ink-soft); }
.footer-inner a:hover { color: var(--accent-deep); }
