@font-face {
  font-family: 'Source Sans 3';
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/source-sans-3.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: 'Source Sans 3';
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/source-sans-3-latin-ext.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: 'Source Serif 4';
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/source-serif-4.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: 'Gentium Book Plus';
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/gentium-book-plus-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Gentium Book Plus';
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/gentium-book-plus-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}

:root {
  --bg: #f8f4ec;
  --band: #f1eadc;
  --surface: #fffdf8;
  --ink: #1b2232;
  --muted: #555d70;
  --line: #e3d9c6;
  --link: #24518c;
  --brand: #1e3a5f;
  --gold: #c99536;
  --gold-text: #87590f;
  --gold-soft: #f5e7c9;
  --night-deep: #0d182a;
  --shadow-sm: 0 1px 2px rgb(27 34 50 / 0.05), 0 4px 14px rgb(27 34 50 / 0.06);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --greek: 'Gentium Book Plus', 'Source Serif 4', Georgia, serif;
  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(1rem, 4vw, 2rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1420;
    --band: #121a29;
    --surface: #172133;
    --ink: #ede6d6;
    --muted: #a8b0c0;
    --line: #28344b;
    --link: #a8c4ee;
    --brand: #2c5287;
    --gold: #d9ab55;
    --gold-text: #e3bc6d;
    --gold-soft: #2e2817;
    --night-deep: #0b1322;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 18px rgb(0 0 0 / 0.25);
  }
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

strong {
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

.brand svg {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgb(13 24 42 / 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav .nav-cta {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}

.site-nav .nav-cta:hover {
  color: #fff;
  background: var(--night-deep);
}

@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

main {
  flex: 1;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--band);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 3.5rem 0 2.5rem;
}

.footer-grid p {
  max-width: 22rem;
  margin: 0.9rem 0 0;
}

.footer-grid h2 {
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid nav {
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-base p {
  margin: 0;
}

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

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}
