/* OPI-TPP 2.0 — main stylesheet
   Look: survey map of a post-mining heap. Deep moss green + the brand mint,
   contour lines as the only ornament, Archivo (wide cut for headings).
   Square corners everywhere (border-radius: 0). No inline styles (CSP). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  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: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  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: "Archivo";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-italic.woff2) format("woff2");
  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: "Archivo";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-italic.woff2) format("woff2");
  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;
}

:root {
  --deep: #1e2a16;      /* hero, products, footer */
  --moss: #384927;      /* brand green */
  --moss-soft: #4d6338;
  --mint: #52f69f;      /* brand accent – on dark surfaces only */
  --mint-ink: #0c6a3b;  /* the accent on light surfaces (links), AA on paper */
  --paper: #f3f5ef;
  --white: #ffffff;
  --ink: #18200f;
  --muted: #535e49;
  --line: #d3dac9;
  --on-dark: #e6ecdf;
  --on-dark-muted: #b3c0a6;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 118%;
  --container: 76rem;
  --text: 44rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "kern";
}

img, video, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--mint-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; box-shadow: 0 0 0 6px var(--deep); }
address { font-style: normal; }
button { font: inherit; }

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.75rem 1rem; background: var(--deep); color: var(--mint); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--text { max-width: calc(var(--text) + 2 * var(--gutter)); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.75rem 1.35rem;
  border: 2px solid transparent; border-radius: 0; cursor: pointer;
  font-weight: 700; font-stretch: var(--wide); font-size: 1rem; line-height: 1.2;
  text-decoration: none; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--mint { background: var(--mint); color: var(--deep); border-color: var(--mint); }
.btn--mint:hover { background: var(--white); border-color: var(--white); color: var(--deep); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn[hidden] { display: none; }
.js [data-video-fallback] { display: none; }
.js [data-video-fallback].is-visible { display: inline-flex; }

/* ---------------------------------------------------------------- funding + header */

.funding-bar { background: var(--white); border-bottom: 1px solid var(--line); }
.funding-bar .container { display: flex; justify-content: center; padding-block: 0.6rem; }
.funding-bar img { width: min(100%, 44rem); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px); }
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand img { width: 74px; }
.brand:focus-visible { outline-offset: 4px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: 0.6rem 0.8rem; color: var(--ink); text-decoration: none;
  font-weight: 650; font-stretch: 108%; font-size: 0.98rem;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--moss); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--mint-ink); }
.main-nav__social a { color: var(--moss); }
.main-nav__social-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.menu-toggle {
  display: none; align-items: center; gap: .6rem;
  min-height: 2.75rem; padding: 0.5rem 0.9rem;
  background: var(--deep); color: var(--white); border: 0; border-radius: 0; cursor: pointer;
  font-weight: 700;
}
.menu-toggle__lines, .menu-toggle__lines::before, .menu-toggle__lines::after {
  display: block; width: 1.1rem; height: 2px; background: var(--mint); position: relative; transition: transform .2s;
}
.menu-toggle__lines::before, .menu-toggle__lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle__lines::before { top: -6px; }
.menu-toggle__lines::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .js .menu-toggle { display: inline-flex; }
  .js .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
  .js .main-nav.is-open { display: block; }
  .main-nav ul { flex-wrap: wrap; }
  .js .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem var(--gutter) 1rem; gap: 0; }
  .js .main-nav a { width: 100%; padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .js .main-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--mint-ink); }
  .js .main-nav__social-label { position: static; width: auto; height: auto; clip: auto; }
  .site-header__inner { position: relative; }
}
@media (prefers-reduced-motion: reduce) { .menu-toggle__lines, .menu-toggle__lines::before, .menu-toggle__lines::after { transition: none; } }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(82vh, 46rem);
  display: flex; align-items: flex-end;
  background: var(--deep); color: var(--white);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 40%; z-index: -3; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(30, 42, 22, .95) 0%, rgba(30, 42, 22, .82) 38%, rgba(30, 42, 22, .25) 75%, rgba(30, 42, 22, .1) 100%),
    linear-gradient(0deg, rgba(30, 42, 22, .9) 0%, rgba(30, 42, 22, 0) 45%);
}
.hero__contours {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  color: var(--mint); opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 90%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 90%);
}
.hero__inner { padding-block: clamp(4rem, 12vw, 8rem) clamp(2.5rem, 6vw, 4rem); }
.hero__kicker {
  display: inline-block; margin-bottom: 1.25rem;
  font-weight: 800; font-stretch: 125%; font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--mint); letter-spacing: .02em;
}
.hero__title {
  max-width: 21ch;
  font-size: clamp(2rem, 4.8vw, 3.9rem);
  font-weight: 850; font-stretch: 112%; line-height: 1.02; letter-spacing: -0.025em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero__notice {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  max-width: 40rem; margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: 0.9rem 1.1rem;
  background: rgba(30, 42, 22, .72); border: 1px solid rgba(82, 246, 159, .45); border-left: 4px solid var(--mint);
  color: var(--white); text-decoration: none;
}
.hero__notice:hover { border-color: var(--mint); text-decoration: none; }
.hero__notice-badge {
  display: grid; place-items: center; width: 3rem; height: 3rem;
  background: var(--mint); color: var(--deep); font-weight: 900; font-stretch: 125%; font-size: 1.15rem;
}
.hero__notice-text { font-weight: 650; line-height: 1.35; }
.hero__notice-more { color: var(--mint); font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 560px) {
  .hero__notice { grid-template-columns: auto 1fr; }
  .hero__notice-more { grid-column: 2; }
}

/* contours draw in once on page load (single orchestrated moment) */
@media (prefers-reduced-motion: no-preference) {
  .hero__contours { animation: contours-in 2.4s ease-out both; }
  @keyframes contours-in { from { opacity: 0; transform: scale(1.04); } to { opacity: .5; transform: none; } }
}

/* ---------------------------------------------------------------- video dialog */

.video-dialog { width: min(92vw, 70rem); padding: 0; border: 0; background: transparent; }
.video-dialog::backdrop { background: rgba(14, 20, 10, .88); }
.video-dialog__frame { position: relative; background: #000; }
.video-dialog video { width: 100%; aspect-ratio: 16 / 9; }
.video-dialog__close {
  position: absolute; right: 0; top: -3rem; min-height: 2.75rem; padding: .5rem 1rem;
  background: var(--mint); color: var(--deep); border: 0; border-radius: 0; font-weight: 700; cursor: pointer;
}

/* ---------------------------------------------------------------- sections */

.section { padding-block: var(--section); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); }
.section--about .section-title, .section--contact .section-title, .project__goal .section-title { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.link-more { font-weight: 700; font-stretch: 108%; }

/* news */
.section--news { background: var(--paper); }
.news-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .news-grid { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
  .news-card--lead { grid-row: span 2; }
}
.news-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); position: relative; }
.news-card:hover { border-color: var(--moss); }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--deep); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; }
.news-card__date { order: -1; margin-bottom: .5rem; color: var(--muted); font-size: .92rem; font-weight: 600; }
.news-card__title { font-size: 1.2rem; font-stretch: 105%; line-height: 1.25; margin-bottom: .6rem; }
.news-card--lead .news-card__title { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-stretch: var(--wide); }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; }
.news-card__title a:hover { text-decoration: underline; }
.news-card:focus-within { outline: 3px solid var(--mint-ink); outline-offset: 2px; }
.news-card__title a:focus-visible { outline: none; box-shadow: none; }
.news-card__excerpt { color: var(--muted); margin: 0; }
@media (min-width: 760px) {
  .news-card:not(.news-card--lead) { flex-direction: row; }
  .news-card:not(.news-card--lead) .news-card__media { flex: 0 0 38%; aspect-ratio: auto; }
  .news-card:not(.news-card--lead) .news-card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* project */
.section--project { background: var(--white); border-block: 1px solid var(--line); }
.project { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 900px) { .project { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.project__lead { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; max-width: 34em; }
.project__sheet { border-top: 4px solid var(--moss); padding-top: 1.25rem; }
.sheet-title { font-size: 1.15rem; font-stretch: var(--wide); margin-bottom: .75rem; }
.sheet { margin: 0 0 1.5rem; }
.sheet__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: .85rem; border-bottom: 1px solid var(--line); }
.sheet dt { color: var(--muted); }
.sheet dd { margin: 0; font-weight: 750; font-stretch: 108%; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sheet__row:first-child dd { font-size: 1.35rem; color: var(--moss); }
.sheet__note { font-size: .95rem; color: var(--muted); }
@media (max-width: 480px) {
  .sheet__row { flex-direction: column; gap: .15rem; }
  .sheet dd { text-align: left; white-space: normal; }
}

/* products – a survey grid on dark ground */
.section--products { background: var(--deep); color: var(--on-dark); }
.section--products .section-title { color: var(--white); }
.section--products .link-more { color: var(--mint); }
.products {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid rgba(179, 192, 166, .3); border-left: 1px solid rgba(179, 192, 166, .3);
}
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .products { grid-template-columns: repeat(3, 1fr); } }
.product {
  display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid rgba(179, 192, 166, .3); border-bottom: 1px solid rgba(179, 192, 166, .3);
}
.product__icon { width: 52px; height: 52px; margin-bottom: 1.25rem; }
.product__title { font-size: 1.2rem; font-stretch: 108%; line-height: 1.25; color: var(--white); margin-bottom: .75rem; }
.product p { color: var(--on-dark-muted); font-size: .98rem; flex: 1; }
.product__more { align-self: flex-start; color: var(--mint); font-weight: 700; }

/* about */
.section--about { padding-top: 0; }
.about__band { height: clamp(11rem, 26vw, 20rem); overflow: hidden; margin-bottom: var(--section); background: var(--deep); }
.about__band img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.partners { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 900px) { .partners { grid-template-columns: 1fr 1fr; } }
.partner { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.partner__logo { height: 52px; width: auto; margin-bottom: 1.25rem; background: var(--white); }
.partner__name { font-size: 1.45rem; margin-bottom: 1rem; }
.partner__facts { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.partner__facts li { position: relative; padding: .35rem 0 .35rem 1.5rem; border-bottom: 1px dashed var(--line); }
.partner__facts li::before { content: ""; position: absolute; left: 0; top: .95em; width: .7rem; height: 2px; background: var(--moss); }
.partner__link { font-weight: 600; }

/* contact */
.section--contact { background: var(--white); border-top: 1px solid var(--line); }
.contacts { display: grid; gap: 2rem; }
@media (min-width: 760px) { .contacts { grid-template-columns: 1fr 1fr; } }
.contact { border-left: 4px solid var(--moss); padding: .25rem 0 .25rem 1.5rem; }
.contact p { margin: 0; }
.contact__name { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 800; font-stretch: var(--wide); line-height: 1.2; }
.contact__role { color: var(--muted); margin-bottom: 1rem !important; }
.contact__line { font-size: 1.1rem; }
.contact__key { display: inline-block; width: 1.4rem; font-weight: 700; color: var(--muted); }
.contact__org { margin-top: .9rem !important; font-size: .95rem; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--deep); color: var(--on-dark-muted); font-size: .95rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--mint); }
.site-footer__grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr auto; align-items: start; } }
.site-footer__name { color: var(--mint); font-weight: 850; font-stretch: 125%; font-size: 1.3rem; margin-bottom: .4rem; }
.site-footer__brand p:last-child { max-width: 30rem; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer__partners { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer__partners img { height: 52px; width: auto; background: var(--white); padding: 4px; }
.site-footer__bottom { border-top: 1px solid rgba(179, 192, 166, .25); padding-block: 1.25rem 1.5rem; }
.site-footer__bottom p { margin: 0; }

/* ---------------------------------------------------------------- inner pages */

.page-head { background: var(--deep); color: var(--white); padding-block: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: clamp(2rem, 5vw, 3.5rem); position: relative; isolation: isolate; overflow: hidden; }
.page-head__title { font-size: clamp(2rem, 5vw, 3.4rem); }
.page-head__title--post { font-size: clamp(1.7rem, 3.8vw, 2.6rem); line-height: 1.12; }
.page-head__crumbs { margin-bottom: 1rem; font-weight: 600; }
.page-head__crumbs a, .page-head a { color: var(--mint); }
.page-head__meta { margin: 1rem 0 0; color: var(--on-dark-muted); font-weight: 600; }
.page-head--image { padding-block: clamp(6rem, 16vw, 11rem) 2.5rem; }
.page-head__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(30, 42, 22, .92), rgba(30, 42, 22, .15) 70%); }

.year-nav ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.year-nav a { display: inline-block; padding: .4rem .8rem; border: 1px solid rgba(82, 246, 159, .5); text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.year-nav a:hover { background: var(--mint); color: var(--deep); }

.news-year { display: grid; gap: 1rem; padding-bottom: 2.5rem; }
@media (min-width: 900px) { .news-year { grid-template-columns: 8rem 1fr; gap: 2rem; } }
.news-year__label { font-size: 2rem; font-stretch: 125%; color: var(--moss); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .news-year__label { position: sticky; top: 6.5rem; align-self: start; } }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news-row { display: grid; gap: .25rem 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 700px) { .news-row { grid-template-columns: 9.5rem 1fr 9rem; align-items: start; } }
.news-row__date { color: var(--muted); font-weight: 600; font-size: .95rem; padding-top: .15rem; }
.news-row__title { font-size: 1.15rem; font-stretch: 105%; line-height: 1.3; margin-bottom: .35rem; }
.news-row__title a { color: var(--ink); text-decoration: none; }
.news-row__title a::after { content: ""; position: absolute; inset: 0; }
.news-row:hover .news-row__title a { text-decoration: underline; }
.news-row:focus-within { outline: 3px solid var(--mint-ink); outline-offset: 2px; }
.news-row__title a:focus-visible { outline: none; box-shadow: none; }
.news-row__excerpt { color: var(--muted); margin: 0; font-size: .98rem; }
.news-row__img { display: none; }
@media (min-width: 700px) { .news-row__img { display: block; width: 9rem; aspect-ratio: 16 / 10; object-fit: cover; } }

/* post */
.post__cover { margin: 0 0 2rem; }
.post__cover img { width: 100%; }
.prose { font-size: 1.08rem; line-height: 1.7; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: 1.55rem; margin: 2.25rem 0 1rem; line-height: 1.2; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--moss); font-weight: 700; }
.prose figure { margin: 0 0 1.75rem; }
.prose img { width: auto; max-width: 100%; height: auto; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.prose .wp-block-gallery, .prose .wp-block-gallery > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem; }
.prose .wp-block-gallery > ul { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; }
.prose .wp-block-gallery li { margin: 0; }
.prose .wp-block-gallery figure { margin: 0; }
.prose .wp-block-gallery a { display: block; }
.prose .wp-block-gallery img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 3; }
.prose a:not(.btn) { color: var(--mint-ink); overflow-wrap: anywhere; }
.prose strong { font-weight: 750; }
.prose table { border-collapse: collapse; width: 100%; font-size: .98rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; vertical-align: top; }
.table-wrap, .prose .wp-block-table { overflow-x: auto; }
.prose .has-text-align-center { text-align: center; }
.file-type { color: var(--muted); font-size: .9em; }
.notice { padding: 1rem 1.25rem; background: var(--white); border-left: 4px solid var(--moss); }

.pager { display: grid; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--ink); }
@media (min-width: 700px) { .pager { grid-template-columns: 1fr 1fr; } .pager__link--older { grid-column: 2; } .pager__link--newer:only-child { grid-column: 1; } }
.pager__link { display: block; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pager__link:hover { border-color: var(--moss); }
.pager__link--older { text-align: right; }
.pager__dir { display: block; color: var(--mint-ink); font-weight: 700; font-size: .9rem; margin-bottom: .25rem; }
.pager__title { font-weight: 650; line-height: 1.35; }
.back-link { margin: 2rem 0 var(--section); font-weight: 700; }

/* products page */
.product-details { border-top: 2px solid var(--ink); margin-bottom: var(--section); }
.product-detail { border-bottom: 1px solid var(--line); scroll-margin-top: 6rem; }
.product-detail summary {
  display: grid; grid-template-columns: 2.75rem 1fr 1.5rem; align-items: center; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
}
.product-detail summary::-webkit-details-marker { display: none; }
.product-detail summary img { width: 2.75rem; height: 2.75rem; background: var(--deep); padding: .4rem; }
.product-detail__title { font-weight: 800; font-stretch: 108%; font-size: 1.2rem; line-height: 1.25; }
.product-detail summary:hover .product-detail__title { color: var(--mint-ink); }
.product-detail__toggle { position: relative; width: 1.25rem; height: 1.25rem; }
.product-detail__toggle::before, .product-detail__toggle::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--moss); transition: transform .2s; }
.product-detail__toggle::after { transform: rotate(90deg); }
.product-detail[open] .product-detail__toggle::after { transform: rotate(0); }
.product-detail__body { padding: 0 0 1.5rem calc(2.75rem + 1rem); }
@media (max-width: 560px) { .product-detail__body { padding-left: 0; } }
@media (prefers-reduced-motion: reduce) { .product-detail__toggle::before, .product-detail__toggle::after { transition: none; } }

.statement { margin-bottom: var(--section); }

/* ---------------------------------------------------------------- 404 */

.notfound { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: var(--on-dark); padding-block: clamp(4rem, 10vw, 7rem); }
.notfound__contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: var(--mint); opacity: .22; }
.notfound__code {
  margin: 0; font-size: clamp(6rem, 22vw, 14rem); font-weight: 900; font-stretch: 125%; line-height: .85; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 2px var(--mint);
}
.notfound__title { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); margin: 1.5rem 0 1rem; }
.notfound__text { max-width: 36rem; font-size: 1.15rem; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 3rem; }
.notfound__more { display: grid; gap: .75rem 3rem; max-width: 52rem; }
@media (min-width: 760px) { .notfound__more { grid-template-columns: 1fr 1.4fr; grid-auto-flow: column; grid-template-rows: auto auto; } }
.notfound__subtitle { color: var(--white); font-size: 1.05rem; }
.notfound__links { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.notfound__links li { border-bottom: 1px solid rgba(179, 192, 166, .25); }
.notfound__links a { display: block; padding: .55rem 0; color: var(--mint); text-decoration: none; }
.notfound__links a:hover { text-decoration: underline; }

@media print {
  .funding-bar, .site-header, .hero__contours, .menu-toggle, .site-footer__nav, .pager { display: none; }
  body { background: #fff; }
}
