/* ── sites/_shared/css/base.css — greenswans.eu and kencie.nl ────────────────
   The GreenSwans.AI "Greenhouse" palette and faces (CLAUDE-brand-greenswans.md),
   with the same one-job-per-colour roles: Ink text, Paper background, Forest
   action (button fill, links), Lake selection and hover, Sky info panels, Mint
   the action on Sky, Leaf accents on Ink only, Slate the quiet voice on Paper,
   Chestnut the wood (frames). No hex outside :root.

   Type: Libre Baskerville for headings and reading text, Instrument Sans for
   everything else, Fraunces for the "Green Swans" wordmark only. Self-hosted —
   never Google Fonts. Each site adds its own site.css on top of this file.
────────────────────────────────────────────────────────────────────────── */

@font-face {
    font-family: 'Libre Baskerville';
    src: url('../fonts/LibreBaskerville-Variable.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Libre Baskerville';
    src: url('../fonts/LibreBaskerville-Italic-Variable.woff2') format('woff2');
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/InstrumentSans-Variable.woff2') format('woff2');
    font-weight: 400 700;
    font-stretch: 75% 100%;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/InstrumentSans-Italic-Variable.woff2') format('woff2');
    font-weight: 400 700;
    font-stretch: 75% 100%;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/Fraunces-Wordmark.woff2') format('woff2');
    font-weight: 500 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Palette — exactly nine colours. */
    --paper:    #F5F7F2;
    --mint:     #CDEBD0;
    --sky:      #CBE3F5;
    --leaf:     #90C924;
    --forest:   #096B36;
    --lake:     #1F6A9E;
    --slate:    #5A6B72;
    --chestnut: #6B4327;
    --ink:      #0F1F1A;

    /* Roles */
    --bg:       var(--paper);
    --text:     var(--ink);
    --text-2:   var(--slate);
    --link:     var(--forest);
    --action:   var(--forest);
    --selected: var(--lake);
    --panel:    var(--sky);
    --action-on-panel: var(--mint);
    --wood:     var(--chestnut);

    /* Derived — mixes only, no new hue */
    --hairline:         color-mix(in srgb, var(--ink) 12%, transparent);
    --hairline-on-dark: color-mix(in srgb, var(--paper) 14%, transparent);
    --muted-on-dark:    color-mix(in srgb, var(--paper) 68%, transparent);
    --surface-on-dark:  color-mix(in srgb, var(--paper) 8%, var(--ink));
    --wood-edge:        color-mix(in srgb, var(--wood) 70%, var(--ink));

    --serif:    'Libre Baskerville', Baskerville, Georgia, serif;
    --sans:     'Instrument Sans', system-ui, sans-serif;
    --wordmark: 'Fraunces', 'Iowan Old Style', Georgia, serif;

    /* Scale — 14 · 16 · 18 · 21 · 24 · 30 · 36 · 48 · 60 · 72 */
    --fs-small: 0.875rem;
    --fs-ui:    1rem;
    --fs-body:  1.125rem;
    --fs-lede:  1.3125rem;
    --fs-h3:    1.5rem;
    --fs-h2:    clamp(1.875rem, 3vw, 2.25rem);
    --fs-h1:    clamp(2.5rem, 5.4vw, 3.75rem);

    --wrap:    76rem;
    --gutter:  clamp(1rem, 4.5vw, 3rem);
    --section: clamp(4rem, 9vw, 7.5rem);
    --header:  4.75rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 400 var(--fs-body) / 1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.2;
    text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; }

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    transition: color 0.15s ease;
}
a:hover { color: var(--selected); }
:focus-visible { outline: 2px solid var(--selected); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--selected); color: var(--paper); }

.skip {
    position: absolute;
    left: -100vw;
    top: 0.75rem;
    z-index: 20;
    padding: 0.6rem 1rem;
    background: var(--paper);
    color: var(--ink);
}
.skip:focus { left: 0.75rem; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
    position: relative;
    z-index: 10;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
}
.site-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: var(--header);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    text-decoration: none;
}
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 2.5rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    position: relative;
    display: block;
    padding-block: 0.5rem;
    color: var(--ink);
    font-size: var(--fs-ui);
    font-weight: 500;
    text-decoration: none;
}
.nav-links a:hover { color: var(--selected); }
/* The page you are on is a selection: Lake, with a Lake dot under it. */
.nav-links a[aria-current="page"] { color: var(--selected); }
.nav-links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.05rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--selected);
    transform: translateX(-50%);
}
.langs { display: flex; gap: 0.1rem; list-style: none; font-size: 0.8125rem; letter-spacing: 0.04em; }
.langs a {
    display: block;
    padding: 0.4rem 0.45rem;
    color: var(--slate);
    text-decoration: none;
}
.langs a:hover { color: var(--selected); }
.langs a[aria-current] { color: var(--selected); font-weight: 600; }

.menu { display: none; }
.menu summary {
    list-style: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid var(--forest);
    border-radius: 3px;
    color: var(--forest);
    font-size: var(--fs-ui);
    font-weight: 500;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover,
.menu[open] summary { background: var(--selected); border-color: var(--selected); color: var(--paper); }
.menu-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 18px 30px -24px color-mix(in srgb, var(--ink) 45%, transparent);
}
.menu-panel .nav-links { flex-direction: column; gap: 0; }
.menu-panel .nav-links a {
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--hairline);
    font-size: var(--fs-body);
}
.menu-panel .nav-links a[aria-current="page"]::after { display: none; }
.menu-panel .langs { margin-top: 1rem; font-size: var(--fs-ui); }

@media (max-width: 860px) {
    .nav { display: none; }
    .menu { display: block; }
}

/* ── Type blocks ────────────────────────────────────────────────────────── */
.lede { font-size: var(--fs-lede); line-height: 1.5; max-width: 36rem; }
.prose { max-width: 38rem; }
.prose p { margin-bottom: 1.15em; }
.prose p:last-child { margin-bottom: 0; }
/* Reading text: the serif wants a little more air than the sans. */
.reading { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.78; max-width: 38rem; }
.reading p { margin-bottom: 1.3em; }
.reading p:last-child { margin-bottom: 0; }
.section-title { font-size: var(--fs-h2); margin-bottom: 2.5rem; }
.list-heading {
    margin: 2.75rem 0 1rem;
    font-family: var(--sans);
    font-size: var(--fs-ui);
    font-weight: 600;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.btn {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    border-radius: 3px;
    background: var(--action);
    color: var(--paper);
    font-size: var(--fs-ui);
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 0.15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--selected); color: var(--paper); }
.panel .btn { background: var(--action-on-panel); color: var(--forest); }
.panel .btn:hover, .panel .btn:focus-visible { background: var(--selected); color: var(--paper); }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section--follow { padding-top: 0; }
.section--tight { padding-top: 0; }

/* Heading left, text right. The short 2px Ink rule above the heading marks
   where a section starts (the brand's "section tops 2px solid Ink"). */
.split { display: grid; gap: 1.5rem; }
.split-head { font-size: var(--fs-h2); }
.split-head, .split-body { padding-top: 1.25rem; }
.split-head { border-top: 2px solid var(--ink); }
.split-head--plain { border-top: 0; padding-top: 0; }
@media (min-width: 900px) {
    .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
    .split-head { grid-column: 1 / span 4; align-self: start; }
    .split-body { grid-column: 6 / span 7; }
}

.page-head { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.01em; }
.page-head .wrap > .lede { margin-top: 1.5rem; }
.page-head .split-body { padding-top: 0.6rem; }
.page-head .split-body .prose { margin-top: 1.75rem; }
.page-head--alone { padding-bottom: var(--section); }

.panel {
    background: var(--panel);
    color: var(--ink);
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: 4px;
}

/* Ink band: Paper text, Leaf links and focus, a Paper rule above headings. */
.band--ink {
    background: linear-gradient(155deg, var(--ink) 30%, var(--surface-on-dark) 100%);
    color: var(--paper);
}
.band--ink a { color: var(--leaf); }
.band--ink a:hover { color: var(--paper); }
.band--ink :focus-visible { outline-color: var(--leaf); }
.band--ink .split-head { border-top-color: var(--paper); }

/* ── Lists ──────────────────────────────────────────────────────────────── */
.areas, .matters, .memberships { list-style: none; }
.areas li, .matters li, .memberships li {
    padding: 0.6rem 0;
    border-top: 1px solid var(--hairline);
}
.areas li:last-child, .matters li:last-child, .memberships li:last-child { border-bottom: 1px solid var(--hairline); }
@media (min-width: 640px) {
    .matters { columns: 2; column-gap: 2.5rem; }
    .matters li { break-inside: avoid; }
    .matters li:last-child { border-bottom: 0; }
}

/* ── Publications ───────────────────────────────────────────────────────── */
.pubs { list-style: none; }
.pub {
    display: grid;
    gap: 0.35rem 1.75rem;
    padding-block: 1.75rem;
    border-top: 1px solid var(--hairline);
}
.pub:first-child { border-top: 0; padding-top: 0; }
.pub-year { margin: 0; font-family: var(--serif); font-size: var(--fs-h3); color: var(--slate); line-height: 1.2; }
.pub-title { font-size: 1.3125rem; line-height: 1.35; margin-bottom: 0.5rem; }
.pub-meta { margin: 0; color: var(--slate); font-size: var(--fs-ui); }
.pub-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.25rem; margin: 0.75rem 0 0; font-size: var(--fs-ui); }
.pub-size { color: var(--slate); font-size: var(--fs-small); }
@media (min-width: 640px) {
    .pub { grid-template-columns: 4.5rem minmax(0, 1fr); }
    .pub-links { grid-column: 2; }
}

/* ── People ─────────────────────────────────────────────────────────────── */
.person {
    display: grid;
    gap: 1.5rem 3rem;
    padding-block: 3rem;
    border-top: 1px solid var(--hairline);
}
.person:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 760px) {
    .person { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}
/* The portraits are shot on white: multiply turns that white into Paper. */
.person-photo img,
.team-card img { mix-blend-mode: multiply; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.person-photo img { max-width: 22rem; }
/* A person with no portrait yet: a small Sky square with their initials. */
.monogram {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    width: min(100%, 10rem);
    background: var(--sky);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 2.5rem;
    letter-spacing: 0.02em;
}
.person-name { font-size: var(--fs-h2); }
.person-role { margin: 0.4rem 0 1.5rem; color: var(--slate); }
.person-text > p { max-width: 38rem; }
.contact-lines {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.35rem 1.25rem;
    margin: 1.75rem 0 0;
}
.contact-lines dt { color: var(--slate); }
.contact-lines dd { margin: 0; overflow-wrap: anywhere; }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
    .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; }
    .contact-office { grid-column: 1 / span 5; }
    .contact-direct { grid-column: 7 / span 6; }
}
.contact-heading { font-family: var(--sans); font-size: var(--fs-ui); font-weight: 600; margin-bottom: 1.25rem; }
.office { display: flex; flex-direction: column; }
.contact-office .office { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.45; }
.office-name { font-weight: 700; }
.contact-directions { margin-top: 1.5rem; }
.direct-list { list-style: none; display: grid; gap: 1.5rem; }
.direct-list li + li { padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.direct-name { margin: 0; font-family: var(--serif); font-size: 1.3125rem; }
.direct-role { margin: 0.15rem 0 0.6rem; }
.direct-lines { display: flex; flex-direction: column; margin: 0; overflow-wrap: anywhere; }
.funds-note { max-width: 44rem; margin-top: 3.5rem; color: var(--slate); font-size: var(--fs-ui); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
    background: var(--ink);
    color: var(--muted-on-dark);
    font-size: var(--fs-ui);
}
.site-footer a { color: var(--paper); text-decoration-color: color-mix(in srgb, var(--paper) 35%, transparent); }
.site-footer a:hover { color: var(--leaf); }
.site-footer :focus-visible { outline-color: var(--leaf); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) {
    .footer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); column-gap: 3rem; }
}
.footer-brand { max-width: 26rem; }
.footer-mark { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1.25rem; color: var(--paper); }
.footer-heading { margin-bottom: 0.9rem; color: var(--paper); font-family: var(--sans); font-size: var(--fs-ui); font-weight: 600; }
.site-footer .office { margin-bottom: 0.9rem; }
.footer-list { list-style: none; display: grid; gap: 0.45rem; }
.footer-note { color: var(--muted-on-dark); font-size: var(--fs-small); }
.footer-base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hairline-on-dark);
    font-size: var(--fs-small);
}
.footer-base p { margin: 0; }
.site-footer .langs a { color: var(--muted-on-dark); }
.site-footer .langs a:hover { color: var(--paper); }
.site-footer .langs a[aria-current] { color: var(--leaf); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
