/* ==========================================================================
   Tabima Lab site styles
   Colors, fonts and spacing are set in the :root block. Change them there.
   ========================================================================== */

/* Fonts, hosted with the site (Bricolage Grotesque for headings, Newsreader for reading) */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wdth-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-ext-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-ext-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Color: a microscope slide, black ink, and the cotton-blue stain from our own spore photos */
  --glass: #f6f8f8;        /* page background */
  --ink: #000000;          /* text and lines */
  --mute: #566063;         /* secondary text */
  --rule: rgba(0, 0, 0, 0.18);
  --blue: #2a5db0;         /* links and accents on light backgrounds */
  --blue-light: #8fb0f5;   /* accent on dark backgrounds */
  --stain: #2a5db0;        /* surface color of the "Join" band */

  /* Type */
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section: clamp(4.5rem, 10vw, 9.5rem);
  --max: 1480px;
  --header-h: 4.5rem;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  background: var(--glass);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1.0625rem, 1rem + 0.22vw, 1.25rem);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
p, ul, ol, figure, address { margin: 0; }
address { font-style: normal; }
ul, ol { padding: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 640;
  font-stretch: 84%;
  letter-spacing: -0.03em;
  line-height: 1;
  text-wrap: balance;
}

a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible, .on-blue :focus-visible { outline-color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.7rem 1rem; background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-block;
  padding: 0.95em 1.6em;
  background: var(--ink);
  color: var(--glass);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.btn:hover { background: var(--blue); color: #fff; text-decoration: none; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; }

.text-link {
  font-family: var(--display);
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.text-link:hover { color: var(--blue); text-decoration-thickness: 2px; }
.on-dark .text-link:hover { color: var(--blue-light); }
.on-blue .text-link:hover { color: #fff; text-decoration-thickness: 3px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  color: var(--ink);
  /* frosted white bar, so the links stay readable over photos and text */
  background: rgba(246, 248, 248, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(246, 248, 248, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--glass); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.site-header__brand {
  font-family: var(--display); font-weight: 700; font-stretch: 84%;
  font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1;
  color: inherit; text-decoration: none;
}
.site-header__nav { display: flex; gap: clamp(1.1rem, 2.4vw, 2.25rem); }
.site-header__nav a {
  font-family: var(--display); font-weight: 520; font-size: 1rem;
  color: inherit; text-decoration: none; padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
}
.site-header__nav a:hover,
.site-header__nav a[aria-current="page"] { border-bottom-color: currentColor; }
.site-header__toggle { display: none; }

@media (max-width: 760px) {
  .site-header { background: var(--glass); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
  .site-header__toggle {
    display: block; padding: 0.55rem 0; border: 0; background: none; color: inherit;
    font-family: var(--display); font-weight: 600; font-size: 1rem; cursor: pointer;
  }
  .site-header__nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding-bottom: 1rem; }
  .site-header[data-open="true"] .site-header__nav { display: flex; }
  .site-header__nav a { padding-block: 0.8rem; font-size: 1.5rem; border-bottom: 1px solid var(--rule); }
}

/* ---------- Hyphae canvas (drawn by hyphae.js) ---------- */

.hyphae { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* hyphae fade out under the header instead of being cut off */
.hyphae::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 7.5rem; pointer-events: none;
  background: linear-gradient(to bottom, var(--glass) 2.5rem, rgba(246, 248, 248, 0));
}
.hyphae canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Home: hero ---------- */

.hero {
  --lens: clamp(15rem, 36vw, 33rem);
  position: relative;
  display: flex;
  min-height: max(100svh, 42rem);
  padding-top: calc(var(--header-h) + 1rem);
  overflow: hidden;
}
.hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
.hero__title {
  max-width: calc(100% - var(--lens) - 3rem);
  font-size: clamp(3rem, 5.7vw, 6.4rem);
  font-weight: 650;
  font-stretch: 80%;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.hero__lede {
  max-width: 32rem;
  margin-top: clamp(1.25rem, 2.4vw, 2rem);
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.45;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }

.eyepiece { position: absolute; top: 0; right: 0; width: var(--lens); }
.eyepiece__lens {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--ink);
}
.eyepiece__lens img, .eyepiece__lens video { display: block; width: 100%; height: 100%; object-fit: cover; }
.eyepiece__caption {
  max-width: 17rem; margin: 0.9rem 0 0 auto;
  font-size: 0.9rem; line-height: 1.35; color: var(--mute); text-align: right;
}

@media (max-width: 820px) {
  .hero { --lens: min(72vw, 20rem); }
  .hero__inner { justify-content: flex-start; }
  .eyepiece { position: relative; order: -1; align-self: flex-end; margin-bottom: 2.25rem; }
  .hero__title { max-width: none; }
  .hero__text { margin-top: auto; }
}

/* ---------- Home: statement ---------- */

.statement { padding-block: var(--section); }
.statement__text { max-width: 48rem; }
.statement__text p:first-child {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.22;
  letter-spacing: -0.012em;
}
.statement__text p + p {
  max-width: 38rem; margin-top: 2rem;
  font-size: clamp(1.1rem, 1.3vw, 1.3rem); color: var(--mute);
}
@media (min-width: 900px) { .statement__text { margin-left: 16.666%; } }

/* ---------- Section heads ---------- */

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
  padding-bottom: clamp(1.75rem, 4vw, 3.25rem);
}
.section-head__title { font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 650; font-stretch: 80%; }

/* ---------- Research programs ---------- */

.programs { padding-bottom: var(--section); }
.program {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(2rem, 5vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.program__media { grid-column: 1 / span 7; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe3e3; }
.program__media img { width: 100%; height: 100%; object-fit: cover; }
.program__text { grid-column: 9 / span 4; }
.program__title { font-size: clamp(1.7rem, 2.6vw, 2.5rem); font-weight: 620; line-height: 1.02; }
.program__desc { margin-top: 1.1rem; max-width: 34rem; }
.program__text .text-link { display: inline-block; margin-top: 1.25rem; }

.program:nth-of-type(even) .program__media { grid-column: 6 / span 7; grid-row: 1; }
.program:nth-of-type(even) .program__text { grid-column: 1 / span 4; grid-row: 1; }

.program--portrait .program__media { grid-column: 1 / span 4; aspect-ratio: 4 / 5; }
.program--portrait .program__text { grid-column: 6 / span 5; }
.program--portrait:nth-of-type(even) .program__media { grid-column: 9 / span 4; }
.program--portrait:nth-of-type(even) .program__text { grid-column: 2 / span 5; }

@media (max-width: 860px) {
  .program { display: block; }
  .program__media, .program--portrait .program__media { aspect-ratio: 4 / 3; max-width: 34rem; }
  .program__text { margin-top: 1.5rem; }
}

.programs--page { padding-bottom: 2rem; }
.programs--page .program:first-child { border-top: 0; padding-top: 0; }

.more-programs { padding-top: 3rem; border-top: 1px solid var(--rule); }
.more-programs h2 { font-size: 2.2rem; }
.more-programs__list { list-style: none; display: grid; gap: 2rem; margin-top: 2rem; }
.more-programs h3 { font-size: 1.4rem; font-weight: 600; }
.more-programs p { max-width: 38rem; margin-top: 0.4rem; }

/* ---------- Home: people band ---------- */

.people { background: #000; color: #fff; }
.people__image { width: 100%; height: min(78svh, 50rem); object-fit: cover; object-position: 50% 30%; }
.people__inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 4rem); align-items: end;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.people__title { grid-column: 1 / span 7; font-size: clamp(2.4rem, 6.2vw, 6rem); font-weight: 650; font-stretch: 80%; letter-spacing: -0.035em; line-height: 0.95; }
.people__text { grid-column: 9 / span 4; font-size: clamp(1.1rem, 1.3vw, 1.3rem); }
.people__text p + p { margin-top: 1.25rem; }
@media (max-width: 960px) { .people__title, .people__text { grid-column: 1 / -1; } }

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

.papers { padding-block: var(--section); }

.pubs { list-style: none; }
.pub {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.5rem 2rem;
  padding-block: 1.5rem; border-top: 1px solid var(--rule);
}
.pub:last-child { border-bottom: 1px solid var(--rule); }
.pub__date { padding-top: 0.3rem; font-family: var(--display); font-size: 0.95rem; color: var(--mute); }
.pub__body { max-width: 54rem; }
.pub__title {
  font-family: var(--display); font-weight: 520; font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.2; letter-spacing: -0.015em;
}
.pub__title a { color: inherit; text-decoration: none; }
.pub__title a:hover { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; }
.pub__title i { font-family: var(--text); font-weight: 450; letter-spacing: 0; }
.pub__authors {
  margin-top: 0.55rem; font-size: 0.95em; line-height: 1.45; color: var(--mute);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pub__authors strong { color: var(--ink); font-weight: 600; }
.pub__venue { margin-top: 0.3rem; font-style: italic; }

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

.pub-tools { display: grid; gap: 0.5rem; max-width: 36rem; margin-bottom: 3rem; }
.pub-tools__label { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.pub-tools__input {
  width: 100%; padding: 0.85rem 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  background: transparent; font: 500 1.5rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink);
}
.pub-tools__input::placeholder { color: #9aa3a6; }
.pub-tools__input:focus-visible { outline: 0; border-bottom-color: var(--blue); box-shadow: 0 2px 0 var(--blue); }
.pub-tools__count { font-size: 0.95rem; color: var(--mute); }

.pub-year { margin-bottom: 3rem; }
.pub-year__title { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 650; font-stretch: 80%; margin-bottom: 1.25rem; }
.pub-empty { font-size: 1.25rem; }

/* ---------- Home: join band ---------- */

.join { background: var(--stain); color: #fff; padding-block: var(--section); }
.join a:not(.btn) { color: #fff; }
.join__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: end; }
.join__title { grid-column: 1 / span 7; font-size: clamp(2.6rem, 7vw, 7rem); font-weight: 650; font-stretch: 78%; letter-spacing: -0.035em; line-height: 0.93; }
.join__text { grid-column: 9 / span 4; font-size: clamp(1.1rem, 1.3vw, 1.3rem); }
.join__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.75rem; }
@media (max-width: 960px) { .join__title, .join__text { grid-column: 1 / -1; } }

/* ---------- Inner pages ---------- */

.page-head {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  min-height: clamp(19rem, 46vh, 28rem);
  padding-top: calc(var(--header-h) + 2rem); padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.page-head__inner { position: relative; z-index: 1; }
.page-head__title { font-size: clamp(3rem, 9.5vw, 9rem); font-weight: 650; font-stretch: 78%; letter-spacing: -0.04em; line-height: 0.92; }
.page-head__lede { max-width: 36rem; margin-top: 1.5rem; font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.45; }

.page-body { padding-block: clamp(3rem, 6vw, 5rem) var(--section); }
.page-end { margin-top: 3.5rem; font-family: var(--display); font-weight: 500; font-size: 1.15rem; }

/* Long-form text (Join, Contact, bios, posts) */
.page-body > h2, .prose h2 { margin-top: 3.25rem; font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 620; }
.page-body > h2:first-child, .prose h2:first-child { margin-top: 0; }
.page-body > p, .page-body > ul, .page-body > ol, .page-body > address,
.prose p, .prose ul, .prose ol { max-width: 40rem; margin-top: 1rem; }
.page-body > ul, .page-body > ol, .prose ul, .prose ol { padding-left: 1.3rem; }
.page-body li, .prose li { margin-top: 0.4rem; }
.page-body > p:has(> .btn) { margin-top: 1.5rem; }

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

.roster + .roster { margin-top: clamp(3rem, 6vw, 5.5rem); }
.roster__title { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 620; margin-bottom: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

.people-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); gap: 2.75rem 1.5rem; }
@media (max-width: 640px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; } }
.person__link { display: block; color: inherit; text-decoration: none; }
.person__photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #dfe3e3; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.person__name { display: block; margin-top: 0.85rem; font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.1; }
.person__link:hover .person__name { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.person__role { display: block; margin-top: 0.25rem; font-size: 0.95rem; line-height: 1.35; color: var(--mute); }

.alumni { list-style: none; columns: 2 19rem; column-gap: 3rem; }
.alumni__item { break-inside: avoid; display: flex; align-items: center; gap: 0.95rem; padding-block: 0.7rem; border-top: 1px solid var(--rule); }
.alumni__photo { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; overflow: hidden; background: #dfe3e3; }
.alumni__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); display: block; }
.alumni__text { min-width: 0; }
.alumni__name { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.alumni__name:hover { color: var(--blue); text-decoration: underline; }
.alumni__role { display: block; font-size: 0.95rem; color: var(--mute); line-height: 1.35; }

/* ---------- Member page ---------- */

.member { padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: var(--section); }
.member__back, .post__back { margin-bottom: 2rem; font-family: var(--display); font-weight: 600; }
.member__back a, .post__back a { color: inherit; }
.member__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: start; }
.member__photo { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 1rem); aspect-ratio: 4 / 5; overflow: hidden; background: #dfe3e3; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.member__text { grid-column: 7 / span 6; }
.member__name { font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 650; font-stretch: 80%; letter-spacing: -0.035em; line-height: 0.95; }
.member__role { margin-top: 1rem; font-size: 1.3rem; color: var(--mute); }
.member .prose { margin-top: 2rem; }
.member__links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-family: var(--display); font-weight: 600; }
@media (max-width: 860px) {
  .member__photo { grid-column: 1 / -1; position: static; max-width: 22rem; }
  .member__text { grid-column: 1 / -1; }
}

/* ---------- Blog ---------- */

.posts { list-style: none; }
.posts__item { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.5rem 2rem; padding-block: 1.75rem; border-top: 1px solid var(--rule); }
.posts__date { padding-top: 0.45rem; font-family: var(--display); font-size: 0.95rem; color: var(--mute); }
.posts__title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 600; line-height: 1.05; }
.posts__title a { color: inherit; text-decoration: none; }
.posts__title a:hover { color: var(--blue); }
.posts__excerpt { max-width: 38rem; margin-top: 0.6rem; color: var(--mute); }
@media (max-width: 640px) { .posts__item { grid-template-columns: 1fr; } }

.post { max-width: 46rem; padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: var(--section); }
.post__title { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 650; font-stretch: 80%; letter-spacing: -0.035em; line-height: 0.97; }
.post__meta { margin-top: 1.25rem; color: var(--mute); }
.post__body { margin-top: 2.5rem; }
.post__body p, .post__body ul, .post__body ol { max-width: none; }

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

.site-footer { background: #000; color: #fff; padding-block: clamp(4rem, 9vw, 8rem) 2.5rem; }
.site-footer a { color: inherit; }
.site-footer__email {
  display: inline-block; font-family: var(--display); font-weight: 650; font-stretch: 80%;
  font-size: clamp(1.9rem, 6.4vw, 6rem); letter-spacing: -0.04em; line-height: 1; text-decoration: none; overflow-wrap: anywhere;
}
.site-footer__email:hover { color: var(--blue-light); }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2.5rem; margin-top: clamp(3rem, 7vw, 6rem); }
.site-footer__address { line-height: 1.55; }
.site-footer__list { list-style: none; line-height: 1.55; }
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { color: var(--blue-light); text-decoration: underline; }
.site-footer__fine { margin-top: clamp(3rem, 7vw, 6rem); font-size: 0.9rem; color: #9aa3a6; }

/* ---------- Header colors over dark/blue sections are set by site.js ---------- */

/* Photos page: album tiles */
.albums { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2.5rem 2rem; }
.album__link { display: block; color: inherit; text-decoration: none; }
.album__cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe3e3; }
.album__cover--blank { background: var(--blue); }
.album__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.album__link:hover .album__cover img { transform: scale(1.03); }
.album__title { display: block; margin-top: 0.85rem; font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.1; }
.album__link:hover .album__title { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.album__desc { display: block; margin-top: 0.3rem; font-size: 0.95rem; line-height: 1.4; color: var(--mute); }
.album__open { display: block; margin-top: 0.6rem; font-size: 0.95rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .album__cover img { transition: none; } .album__link:hover .album__cover img { transform: none; } }
