:root {
  --paper: #f7f4ed;
  --soft: #efece4;
  --ink: #172032;
  --muted: #53647a;
  --line: #e4e0d6;
  --accent: #2c6a6e;
  --accent-hover: #215357;
  --accent-soft: #e4eef0;
  --card: #fff;
  --shadow: 0 6px 18px rgba(23, 32, 50, 0.045);
  --radius: 8px;
  --header-h: 72px;
  --page: 64rem;
  --measure: 70ch;
  --stack: 1.15rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.05rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: min(var(--page), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
}

.brand:hover {
  color: inherit;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: none;
}

.brand-word {
  display: flex;
  align-items: center;
  line-height: 1;
}

.brand-word strong {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 1.05rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.hero,
.article-hero {
  padding: 2.8rem 0 2.3rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-grid,
.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: 3.2rem;
  align-items: start;
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Source Sans 3", system-ui, sans-serif;
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.04em;
}

h2 {
  font-weight: 450;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.lead + .lead {
  margin-top: 0.7rem;
}

.contact-simple {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-simple main {
  flex: 1;
}

.contact-intro {
  padding: clamp(3.2rem, 7vw, 5.2rem) 0 4rem;
  border-bottom: 0;
}

.contact-email a {
  overflow-wrap: anywhere;
}

.back-link {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.back-link:hover {
  color: var(--accent);
}

.hero-visual,
.article-hero-visual,
.figure-frame {
  margin: 0;
}

.hero-visual {
  max-width: 260px;
  justify-self: end;
}

.hero-visual img,
.article-hero-visual img,
.figure-frame img,
.portrait img,
.float-figure img,
.contact-visual img,
.archive-figure img {
  display: block;
  width: 100%;
  background: #fff;
  padding: 6px;
  border: 1px solid #c5cdd6;
  border-radius: 2px;
  box-shadow: none;
  box-sizing: border-box;
}


.site-notice {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  text-align: left;
  padding: 0.52rem 0;
}
@media (max-width: 720px) {
  .site-notice .container { white-space: normal; }
  .footer-minimal-row {
    flex-wrap: wrap;
    white-space: normal;
  }
}

.lead-with-figure {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
  margin: 0 0 2.6rem;
}

.lead-with-figure .float-figure,
.lead-with-figure .float-figure.wide {
  float: none;
  width: 100%;
  margin: 0;
}

.lead-with-figure ul {
  overflow: hidden;
}

.section {
  padding: 2.6rem 0;
}

.split-prose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem 4rem;
  align-items: start;
}

.split-prose > :first-child > :first-child,
.split-prose > :last-child > :first-child {
  margin-top: 0;
}

.balanced-prose,
.reading-prose {
  max-width: var(--measure);
}

.balanced-prose > :first-child {
  margin-top: 0;
}

.balanced-prose h2,
.balanced-prose h3 {
  break-inside: avoid;
  break-after: avoid;
}

.balanced-prose ul {
  break-inside: avoid;
}

.balanced-prose p {
  orphans: 3;
  widows: 3;
}

.page-section > h2:first-child {
  margin-top: 0;
  margin-bottom: 1.4rem;
}

.article-wrap {
  padding: 3.4rem 0 4rem;
}

.article-body {
  max-width: none;
}

.article-body > h2:first-child {
  margin-top: 0;
}

.article-body h2,
.page-section h2 {
  margin: 3rem 0 0.85rem;
  font-size: 1.72rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article-body h3,
.page-section h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.08rem;
}

.article-body p,
.page-section p,
.split-prose p {
  margin: 0 0 var(--stack);
}

.article-body ul,
.page-section ul,
.article-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

.article-body li + li,
.page-section li + li {
  margin-top: 0.28rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.6rem;
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem 1.2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: inherit;
}

.card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .arr {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 4rem;
  align-items: start;
  margin: 0 0 3rem;
}

.bio-layout .portrait {
  float: none;
  width: 100%;
  margin: 0;
}

.bio-layout .portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
}

.clip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0 0 2rem;
}

.clip-grid .clip {
  margin: 0;
}

.portrait,
.float-figure {
  float: left;
  width: min(240px, 42%);
  margin: 0.2rem 2.4rem 1.2rem 0;
}

.float-figure.wide {
  width: min(320px, 48%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 4rem;
  align-items: start;
  margin: 0 0 2.6rem;
}

.contact-layout .address-block {
  margin: 0;
}

.contact-visual {
  float: none;
  width: 100%;
  margin: 0;
}

.figure-caption,
figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.data-table,
.detail-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.98rem;
}

.data-table th,
.data-table td,
.detail-table th,
.detail-table td {
  padding: 0.62rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th,
.detail-table th {
  background: var(--soft);
  font-weight: 500;
}

.data-table tr:last-child td,
.detail-table tr:last-child td {
  border-bottom: 0;
}

.data-table td:last-child,
.data-table th:last-child {
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  overscroll-behavior-inline: contain;
  margin: 0 0 2rem;
  border-radius: 10px;
}

.year-block {
  margin: 0 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 82%, var(--paper));
  overflow: clip;
}

.year-block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: var(--ink);
  list-style-position: inside;
}

.year-block summary:hover {
  background: var(--accent-soft);
}

.year-title {
  font-size: 1.18rem;
  font-weight: 500;
}

.year-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.year-block[open] summary {
  border-bottom: 1px solid var(--line);
}

.year-block .table-wrap {
  margin: 0;
  padding: 0.85rem;
  border-radius: 0;
}

.year-block .data-table {
  min-width: 650px;
}

blockquote.clip {
  margin: 0 0 1.3rem;
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

blockquote.clip p {
  margin: 0 0 0.7rem;
  font-style: italic;
}

blockquote.clip p:last-child {
  margin-bottom: 0;
}

blockquote.clip footer {
  margin-top: 0.75rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
}

.press-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: var(--measure);
}

.press-list li {
  margin: 0 0 1.15rem;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--line);
}

.press-list li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.press-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.archive-feature {
  margin: 1.25rem 0 1.5rem;
}

.archive-main {
  max-width: 560px;
  margin: 0;
}

.archive-main a,
.archive-thumb a {
  display: block;
}

.archive-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 260px));
  gap: 1rem;
  justify-content: start;
  margin: 1.25rem 0 0;
}

.archive-thumb img {
  height: 240px;
  object-fit: contain;
}

.archive-section {
  margin-top: 3.2rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}

.archive-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 2rem;
  align-items: center;
  margin: 0 0 3.2rem;
  padding: 1.15rem 1.25rem;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  border-radius: var(--radius);
}

.archive-index h2,
.archive-index p {
  margin: 0;
}

.archive-index h2 {
  grid-column: 1;
  font-size: 1.3rem;
}

.archive-index p {
  grid-column: 1;
  color: var(--muted);
}

.archive-index a {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-weight: 600;
}

.address-block {
  margin: 0 0 1.3rem;
  font-style: normal;
}

.partner-list {
  margin: 0 0 1.4rem;
  padding-left: 1.15rem;
  max-width: var(--measure);
}

.calendar-intro {
  margin-bottom: 2.2rem;
}

.notice {
  margin: 1.4rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--accent-soft);
  border-radius: 12px;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 3rem;
}

.topic-card {
  min-height: 112px;
  padding: 1rem 1.05rem;
  color: inherit;
  text-decoration: none;
  background: color-mix(in srgb, var(--card) 86%, var(--paper));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-card:hover {
  color: inherit;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}

.topic-card strong,
.topic-card span {
  display: block;
}

.topic-card strong {
  color: var(--accent);
  font-size: 1.18rem;
  font-weight: 600;
}

.topic-card span {
  margin-top: 0.3rem;
  color: var(--muted);
  line-height: 1.45;
}

#ugl,
#ul,
#il {
  scroll-margin-top: calc(var(--header-h) + 2rem);
}

.footer {
  border-top: 1px solid var(--line);
  background: #f6f5f1;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-minimal {
  padding: 1.15rem 0 1.3rem;
}

.footer-minimal-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  white-space: nowrap;
}

.footer-minimal-separator {
  margin: 0;
  color: #9aa7b6;
}

.footer a {
  color: inherit;
}

.footer a:hover {
  color: var(--accent);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 1.5rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-grid,
  .article-hero-grid,
  .cards,
  .lead-with-figure,
  .contact-layout,
  .split-prose,
  .bio-layout,
  .clip-grid,
  .topic-cards,
  .archive-index {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: center;
  }

  .portrait,
  .float-figure {
    float: none;
    width: min(320px, 100%);
    margin: 0 0 1.2rem;
  }

  .contact-visual {
    width: min(320px, 100%);
    justify-self: center;
  }

  .archive-index a {
    grid-column: 1;
    grid-row: auto;
  }

  .data-table td:last-child,
  .data-table th:last-child {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--page), calc(100% - 32px));
  }

  .hero,
  .article-hero {
    padding: 2.1rem 0 1.6rem;
  }

  .site-notice {
    padding: 0.4rem 0;
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .year-block summary {
    min-height: 48px;
    padding-inline: 0.8rem;
  }

  .footer-minimal-separator {
    display: none;
  }

  .footer-minimal-row {
    flex-wrap: wrap;
    flex-direction: column;
    white-space: normal;
    gap: 0.25rem;
  }
}


/* Homepage extras */
.home .hero-grid {
  grid-template-columns: minmax(0, 3fr) minmax(220px, 2fr);
  gap: 3rem;
  align-items: center;
}

.home .hero-visual {
  max-width: 280px;
  width: 100%;
  justify-self: end;
}

.home .hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
  padding: 6px;
}

.home .section {
  padding: 3.4rem 0 3.6rem;
}

.home .page-section > h2:first-child {
  margin: 0 0 1.6rem;
}

.home .cards {
  margin-top: 1.8rem;
  gap: 1.5rem;
}

.home .cards.cards-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home .card {
  box-shadow: 0 8px 24px rgba(28, 28, 28, 0.04);
  border-radius: 10px;
}

.home .closing-note {
  margin: 2rem 0 0;
  max-width: var(--measure);
  text-align: left;
  color: var(--muted);
  font-size: 0.98rem;
}

.home .hero {
  padding: 3rem 0 2.3rem;
}

.home-intro {
  max-width: var(--measure);
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 3rem;
  align-items: center;
}

.contact-visual img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 50%;
}

@media (max-width: 880px) {
  .home .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .home .cards.cards-three {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .home .hero {
    padding-bottom: 1.6rem;
  }
}
