/* adamhartland.com
   Shared stylesheet for index.html and weg.html.
   Same design language and typefaces as waikatoscientific.com
   (Space Grotesk headings, Inter body, paper ground, dot grid,
   feature rows with circle arrows, flat colour blocks), with the
   colour reduced to slate and bronze instead of blue and orange. */

:root {
  --bg: #ececeb;
  --white: #ffffff;
  --card: #f4f2ee;
  --ink: #1c1a18;
  --body: #3f3c37;
  --muted: #6f6b66;
  --line: #d7d5d0;
  --line-dark: #b5b1a9;
  --block: #2e4a55;
  --block-deep: #243b44;
  --accent: #8a6a3d;
  --btn: #2f2d2d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.dotgrid {
  background-image: radial-gradient(circle, #c9c7c1 1px, transparent 1.4px);
  background-size: 22px 22px;
}
h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; color: var(--ink); }
h4 { font-weight: 600; }
p { color: var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
em { font-style: italic; }
section, .band { scroll-margin-top: 84px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 5vw; }

/* Text links */
a.ext { color: var(--block); text-decoration: none; border-bottom: 1px solid var(--line-dark); transition: border-color 0.15s ease, color 0.15s ease; }
a.ext:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* NAV */
nav.top {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.95rem 5vw;
  background: var(--block);
  color: #fff;
}
.nav-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
.nav-links a:hover { color: #fff; }
.btn-light {
  background: #fff; color: var(--block); text-decoration: none; white-space: nowrap;
  font-weight: 600; font-size: 0.9rem; padding: 0.7rem 1.3rem; border-radius: 8px;
  transition: background 0.15s ease;
}
.btn-light:hover { background: rgba(255,255,255,0.88); }
.btn-dark {
  display: inline-block; background: var(--btn); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.9rem; padding: 0.75rem 1.3rem; border-radius: 8px;
  transition: background 0.15s ease;
}
.btn-dark:hover { background: var(--ink); }

/* Pill links */
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill {
  display: inline-block; padding: 0.5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line-dark); background: transparent; color: #55524c;
  text-decoration: none; font-weight: 600; font-size: 0.88rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pill:hover { background: #fff; color: var(--ink); border-color: var(--ink); }

/* HERO */
.hero { padding: 4.5rem 5vw 3.5rem; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 3.5rem; align-items: center; max-width: 1120px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); margin-bottom: 1.4rem; }
.hero-lede { font-size: 1.15rem; color: #48453f; max-width: 40rem; margin-bottom: 1rem; }
.hero-roles { font-size: 0.95rem; color: var(--muted); max-width: 40rem; margin-bottom: 1.8rem; }
.hero-photo { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; background: #d7d0c2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* FEATURE ROWS (from waikatoscientific.com) */
.feature-row { display: flex; align-items: center; justify-content: space-between; padding: 1.15rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; gap: 1rem; transition: opacity 0.15s ease; }
.feature-row:first-child { border-top: 1px solid var(--line); }
.feature-row:hover { opacity: 0.62; }
.feature-row h3 { font-size: clamp(1.05rem, 1.7vw, 1.3rem); margin: 0; font-weight: 600; }
.feature-row .sub { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 0.88rem; color: var(--muted); margin-top: 0.25rem; }
.circle-arrow {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1;
}

/* SLATE BAND: track record and highlights */
.band { background: var(--block); color: #fff; padding: 4.5rem 0; }
.band-inner { max-width: 1120px; margin: 0 auto; padding: 0 5vw; }
.band-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.band h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 1.1rem; }
.band p { color: rgba(255,255,255,0.86); }
.band-sub { max-width: 26rem; margin-bottom: 1.6rem; }
.band .feature-row { border-color: rgba(255,255,255,0.28); }
.band .feature-row h3 { color: #fff; }
.band .feature-row .sub { color: rgba(255,255,255,0.7); }
.band .circle-arrow { border-color: #fff; color: #fff; }
.scholar-line { font-size: 0.9rem; color: rgba(255,255,255,0.78); }
.scholar-line strong { color: #fff; font-weight: 600; }
.scholar-line a { color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-top: 3.2rem; }
.tile { text-decoration: none; color: inherit; }
.tile-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; position: relative; background: var(--block-deep); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-img.top img { object-position: center top; }
.tile-img::before, .tile-img::after { content: ''; position: absolute; width: 8px; height: 8px; background: var(--ink); }
.tile-img::before { top: 9px; left: 9px; }
.tile-img::after { bottom: 9px; right: 9px; }
.tile-cap { font-size: 0.82rem; color: rgba(255,255,255,0.78); line-height: 1.4; margin-top: 0.7rem; }
.tile-cap strong { color: #fff; font-weight: 600; display: block; }
.tile:hover .tile-img img { opacity: 0.85; }

/* SECTIONS */
.sec { padding: 4.5rem 5vw; max-width: 1120px; margin: 0 auto; }
.sec h2 { font-size: clamp(2rem, 4.2vw, 2.8rem); margin-bottom: 1.2rem; }
.sec-intro { color: #48453f; max-width: 40rem; margin-bottom: 2rem; }
.prose { max-width: 44rem; }
.prose p { margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.sec-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
.sec-white { background: var(--white); }
.sec-white .sec { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hr { height: 1px; border: 0; max-width: 1120px; margin: 0 auto; background: linear-gradient(90deg, transparent 5vw, var(--line) 5vw, var(--line) calc(100% - 5vw), transparent calc(100% - 5vw)); }

/* PUBLICATIONS */
.pub { display: grid; grid-template-columns: 1fr 150px; gap: 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.pub:first-of-type { border-top: 1px solid var(--line); }
.pub h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); margin-bottom: 0.5rem; }
.pub h3 a { text-decoration: none; }
.pub h3 a:hover { color: var(--accent); }
.pub .cite { font-size: 0.9rem; color: var(--body); margin-bottom: 0.55rem; }
.pub .cite strong { color: var(--ink); }
.pub .note { font-size: 0.95rem; color: #48453f; max-width: 46rem; }
.pub .venue { align-self: center; }
.pub .venue img { width: 100%; height: auto; border-radius: 3px; }
.pub .venue .mark { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem; line-height: 1.1; color: var(--block); border: 1.5px solid var(--block); border-radius: 3px; padding: 0.9rem 0.8rem; text-align: center; }
.pub .venue .mark small { display: block; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.72rem; color: var(--muted); margin-top: 0.35rem; }
.pub-list { margin-top: 2.6rem; }
.pub-list h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.8rem; }
.pub-list p { font-size: 0.93rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.pub-list p:last-child { border-bottom: none; }
.pub-list strong { color: var(--ink); }
.status { display: inline-block; font-size: 0.78rem; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0.05rem 0.6rem; margin-left: 0.4rem; vertical-align: middle; }

/* QUESTION TILES / PROGRAMME CARDS (product cards from waikatoscientific.com) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; align-items: stretch; }
.cards.two { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.cards.two .p-card { border-left: none; }
.p-card { background: var(--card); padding: 2rem 1.8rem 0; border-left: 1px solid var(--line); position: relative; display: flex; flex-direction: column; }
.p-card:first-child { border-left: none; }
.p-card .tag { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin-bottom: 0.6rem; }
.p-card h3 { font-size: 1.35rem; margin-bottom: 0.9rem; }
.p-card p { color: var(--body); font-size: 0.95rem; flex-grow: 1; margin-bottom: 1.6rem; }
.p-card .credit { font-size: 0.78rem; color: var(--muted); flex-grow: 0; margin: -1rem 0 1.4rem; }
.p-card-bar { height: 6px; background: var(--accent); margin: 0 -1.8rem; }
.p-card-bar.quiet { background: var(--line-dark); }
.p-card .photo { margin: 0 -1.8rem 1.4rem; height: 200px; overflow: hidden; }
.p-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.p-card .photo.dark { background: #000; display: flex; justify-content: center; }
.p-card .photo.dark img { width: auto; height: 100%; }

/* TIMELINE */
.timeline { margin-top: 1.5rem; }
.tl { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.tl:first-child { border-top: 1px solid var(--line); }
.tl .year { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--accent); padding-top: 0.15rem; }
.tl h4 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.tl p { font-size: 0.93rem; color: var(--body); }

/* FIGURES */
figure { margin: 0; }
figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; line-height: 1.45; }
.figure-right { float: right; width: 22%; max-width: 160px; margin: 0.3rem 0 1rem 2rem; border-radius: 3px; overflow: hidden; }
.figure-wide { margin: 2.5rem 0; }
.figure-wide img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 3px; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2rem; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }

/* INSTRUMENTS */
.instrument-photo { margin: 0 0 2rem; }
.instrument-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }

/* MEDIA ROWS */
.media-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: opacity 0.15s ease; }
.media-row:first-child { border-top: 1px solid var(--line); }
.media-row:hover { opacity: 0.62; }
.media-row .where { font-size: 0.82rem; color: var(--muted); font-weight: 500; margin-bottom: 0.2rem; }
.media-row h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.3rem; }
.media-row p { font-size: 0.92rem; color: var(--body); max-width: 46rem; }

/* FOOTER */
footer.site { background: var(--white); padding: 3.5rem 0 2.5rem; }
.footer-grid { max-width: 1120px; margin: 0 auto; padding: 0 5vw; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.8rem; }
.footer-desc { color: #55524c; font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-col a { display: block; color: var(--body); text-decoration: none; font-size: 0.92rem; margin-bottom: 0.6rem; }
.footer-col a:hover { color: var(--accent); }
.footer-note { max-width: 1120px; margin: 2.5rem auto 0; padding: 0 5vw; font-size: 0.8rem; color: var(--muted); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 0.55fr; gap: 2.5rem; }
  .band-grid, .sec-split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .cards.two { grid-template-columns: 1fr; }
  .p-card { border-left: none; border-top: 1px solid var(--line); }
  .p-card:first-child { border-top: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-photo { max-width: 260px; order: -1; }
  .pub { grid-template-columns: 1fr; gap: 1rem; }
  .pub .venue { width: 120px; }
  .tl { grid-template-columns: 1fr; gap: 0.2rem; }
  .figure-right { width: 32%; margin-left: 1.2rem; }
  .photo-strip { grid-template-columns: 1fr; }
  nav.top { padding: 0.8rem 5vw 0.6rem; flex-wrap: wrap; row-gap: 0.4rem; }
  .nav-links { order: 3; width: 100%; gap: 1.1rem; padding-bottom: 0.2rem; }
  .nav-links a { font-size: 0.85rem; }
  .btn-light { padding: 0.55rem 1rem; font-size: 0.85rem; }
  .band, .sec { padding-top: 3.2rem; padding-bottom: 3.2rem; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
