@font-face {
    font-family: 'EB Garamond';
    src: url('fonts/EBGaramond-Variable.ttf') format('truetype');
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}
@font-face {
    font-family: 'EB Garamond';
    src: url('fonts/EBGaramond-Italic-Variable.ttf') format('truetype');
    font-style: italic;
    font-weight: 400 800;
    font-display: swap;
}
:root {
    --editorial-forest: #153D29;
    --editorial-cover: #143B2E;
    --editorial-ivory: #F3E9D7;
    --editorial-terracotta: #B94D32;
    --editorial-burgundy: #703545;
    --editorial-blue: #334E76;
    --editorial-sand: #BDA88A;
    --bg: var(--gg-background);
    --surface: var(--gg-panel);
    --surface-2: var(--gg-raised);
    --ink: var(--gg-text);
    --soft: var(--gg-text-secondary);
    --muted: var(--gg-text-muted);
    --green: var(--gg-primary);
    --line: var(--gg-border);
    --line-faint: var(--gg-border);
}
body { background: var(--gg-background); color: var(--gg-text); }
h1, h2, h3 { font-family: 'EB Garamond', Georgia, serif; font-weight: 500; letter-spacing: -.025em; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--gg-primary); outline-offset: 3px;
}
::selection { background: var(--gg-selected); color: var(--gg-on-selected); }
.site-header, .site-footer { background: var(--gg-panel); color: var(--gg-text); }
.button { background: var(--gg-primary); color: var(--gg-on-primary); box-shadow: none; }
.button:hover { background: var(--gg-primary); color: var(--gg-on-primary); text-decoration: underline; }
input, textarea, select, .research-form-row input, .contact-field input, .contact-field textarea { background: var(--gg-field); color: var(--gg-text); border: 1px solid var(--gg-outline); }
input::placeholder, textarea::placeholder { color: var(--gg-text-secondary); }
.research-status { color: var(--gg-status-success-accent); }
.research-error { color: var(--gg-status-error-accent); }
.appearance-bar { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; padding: .65rem max(1.25rem, calc((100% - 1320px) / 2)); background: var(--gg-panel); color: var(--gg-text); border-bottom: 1px solid var(--gg-border); font: 500 .875rem/1.4 Manrope, system-ui, sans-serif; }
.appearance-bar label { display: grid; gap: .25rem; }
.appearance-bar select { min-height: 2.5rem; border-radius: .25rem; padding: .35rem 2rem .35rem .65rem; font: inherit; }
.gg-wrap { width: min(calc(100% - 3rem), 1320px); margin-inline: auto; }
.gg-section { padding-block: clamp(3rem, 7vw, 6rem); }
.gg-editorial { background: var(--editorial-cover); color: var(--editorial-ivory); }
.gg-display { font: 500 clamp(3rem, 6vw, 5.75rem)/.98 'EB Garamond', Georgia, serif; letter-spacing: -.03em; max-width: 16ch; }
.gg-copy { max-width: 65ch; color: var(--gg-text-secondary); }
.gg-editorial .gg-copy { color: var(--editorial-ivory); }
.gg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; }
.gg-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.gg-button { display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.2rem; border: 1px solid var(--gg-primary); border-radius: .35rem; background: var(--gg-primary); color: var(--gg-on-primary); font: 650 1rem/1.3 Manrope, system-ui, sans-serif; }
.gg-button--secondary { background: transparent; color: var(--gg-primary); }
.gg-control { display: grid; gap: .4rem; max-width: 30rem; }
.gg-control input, .gg-control textarea { padding: .7rem; border-radius: .35rem; font: inherit; }
.gg-status { padding: .75rem 1rem; background: var(--gg-status-success-container); color: var(--gg-status-success-on-container); }
.gg-status--error { background: var(--gg-status-error-container); color: var(--gg-status-error-on-container); }
[data-motion="reduce"] *, [data-motion="reduce"] *::before, [data-motion="reduce"] *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

html { scrollbar-color: var(--gg-scrollbar-thumb) var(--gg-background); }
.image-scroll, .board-figure .image-scroll { background: var(--gg-raised); scrollbar-color: var(--gg-scrollbar-thumb) var(--gg-panel); }
.person-context-icon { background: var(--gg-selected); color: var(--gg-on-selected); }
.build-view--profile .build-crop { scrollbar-color: var(--gg-scrollbar-thumb) var(--gg-panel); }
.gg-button:disabled { background: var(--gg-disabled-surface); border-color: var(--gg-disabled-surface); color: var(--gg-disabled-text); cursor: not-allowed; }

html:not([data-theme]) .appearance-bar { display: none; }
.gg-display + .gg-copy { margin-top: 1.5rem; }
.gg-section h2 { margin-bottom: .75rem; }
.gg-section > .gg-copy + .gg-grid, .gg-section > .gg-copy + .gg-controls { margin-top: 1.5rem; }
.gg-section > .gg-controls + .gg-grid, .gg-section details, .gg-section .gg-status { margin-top: 1.5rem; }

.language-nav summary { border-color: var(--gg-outline); }

[data-motion="reduce"] .button:hover { transform: none; }
@media (prefers-reduced-motion: reduce) { .button:hover { transform: none; } }

/* The footer continues the future invitation's Cover Green field (#19). */
/* Shared editorial footer, matching the final concept's rendered typography. */
.editorial-footer {
    background: var(--editorial-cover);
    color: var(--editorial-ivory);
    color-scheme: dark;
    padding: 0 0 18px;
    position: relative;
    font: 15px/1.6 system-ui, sans-serif;
}
.editorial-footer__inner { box-sizing: border-box; max-width: 1320px; width: 100%; padding-inline: 28px; margin-inline: auto; }
.editorial-footer__main { border-top: 1px solid #BDA88A88; display: grid; grid-template-columns: minmax(210px, 1fr) minmax(0, 2.4fr); gap: clamp(35px, 5vw, 80px); padding: 48px 0 42px; align-items: start; }
.editorial-footer__logo { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 720; letter-spacing: -.045em; text-decoration: none; }
.editorial-footer__logo img { width: 31px; height: 29px; object-fit: contain; flex-shrink: 0; filter: grayscale(1) brightness(0) invert(94%) sepia(10%) saturate(462%) hue-rotate(326deg) brightness(103%); }
.editorial-footer__brand p { color: inherit; margin: 20px 0 0; font: 400 29px/1.12 Georgia, serif; letter-spacing: -.025em; }
.editorial-footer__brand p em { display: block; font-weight: 400; }
.editorial-footer__directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 22px; }
.editorial-footer__column { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.editorial-footer__column h2 { font: 650 14px/1.5 system-ui, sans-serif; letter-spacing: 0; margin: 3px 0 10px; color: var(--editorial-ivory); overflow-wrap: anywhere; }
.editorial-footer__column a, .editorial-footer__planned { color: #D7E5D7; font-size: 14px; line-height: 1.55; padding: 5px 0; text-decoration: none; overflow-wrap: anywhere; }
.editorial-footer__column a:hover { color: #FFF8EB; text-decoration: underline; text-underline-offset: 4px; }
.editorial-footer__column a span { font-size: 12px; margin-inline-start: 2px; }
.editorial-footer__planned small { display: block; color: var(--editorial-sand); font-size: 12px; line-height: 1.4; }
.editorial-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid #BDA88A66; padding-top: 13px; }
.editorial-footer__copyright { font-size: 13px; color: #D7E5D7; }
.editorial-footer__utilities { display: flex; align-items: center; justify-content: flex-end; gap: 25px; flex-wrap: wrap; }
.editorial-footer__select, .editorial-footer__top { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 14px; color: var(--editorial-ivory); }
.editorial-footer__select select { background: var(--editorial-cover); color: var(--editorial-ivory); border: 0; padding: 8px 4px; font: inherit; cursor: pointer; min-height: 44px; max-width: 170px; }
.editorial-footer__select svg, .editorial-footer__top svg { flex-shrink: 0; }
.editorial-footer__top { text-decoration: none; }
.editorial-footer__top:hover { text-decoration: underline; text-underline-offset: 4px; }
.editorial-footer .editorial-footer__languages { position: static; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.editorial-footer .editorial-footer__languages[hidden], .editorial-footer__select[hidden], html:not([data-theme]) .editorial-footer__appearance { display: none; }
.editorial-footer .editorial-footer__languages a, .editorial-footer .editorial-footer__languages a:hover, .editorial-footer .editorial-footer__languages a[aria-current="page"] { padding: 8px 0; background: transparent; color: var(--editorial-ivory); font-size: 14px; }
.editorial-footer .editorial-footer__languages a[aria-current="page"] { text-decoration: underline; }
.editorial-footer :is(a, select):focus-visible { outline: 2px solid #FFF8EB; outline-offset: 4px; }
@media (max-width: 1120px) { .editorial-footer__inner { padding-inline: 18px; } }
@media (max-width: 950px) {
    .editorial-footer__main { grid-template-columns: 1fr; gap: 32px; padding: 35px 0; }
    .editorial-footer__brand p { font-size: 27px; margin-top: 16px; }
    .editorial-footer__directory { gap: 16px; }
}
@media (max-width: 600px) {
    .editorial-footer__main { padding: 30px 0 26px; gap: 28px; }
    .editorial-footer__directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 20px; }
    .editorial-footer__column { gap: 1px; }
    .editorial-footer__column h2 { margin-bottom: 5px; }
    .editorial-footer__column a, .editorial-footer__planned { min-height: 44px; padding: 8px 0; }
    .editorial-footer__bottom { flex-wrap: wrap; gap: 4px; }
    .editorial-footer__utilities { width: 100%; justify-content: space-between; gap: 8px; }
    .editorial-footer__select, .editorial-footer__top { gap: 4px; }
    .editorial-footer__copyright { padding-top: 7px; }
}
