/* Art direction: preserve the approved Moonshot holding-page design.
   Palette: slate grey, warm white, pale gold; spacious centred composition.
   Typography: Century Schoolbook throughout, with bundled Schola fallback. */
@font-face {
  font-family: "Century Schoolbook Local";
  src: local("Century Schoolbook"), local("CenturySchoolbook"), local("CenturySchoolbook-Roman"), local("New Century Schoolbook");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Schola";
  src: url("./fonts/texgyreschola-regular.woff2") format("woff2");
  font-style: normal; font-weight: 400; font-display: swap;
}
:root {
  color-scheme: dark;
  --color-bg: #495058; --color-surface: #535b64;
  --color-surface-2: #5b646e; --color-surface-offset: #40464d;
  --color-text: #faf9f6; --color-text-muted: #ebe9e5;
  --color-text-faint: #d5d8dc; --color-primary: #d7cf83;
  --color-primary-hover: #f3eab1;
  --font-body: "Century Schoolbook Local", "Century Schoolbook", "TeX Gyre Schola", "New Century Schoolbook", Georgia, serif;
  --font-display: var(--font-body);
  --text-sm: clamp(.875rem, .8rem + .35vw, 1rem);
  --text-base: clamp(1rem, .75rem + 1vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.1rem + 1.5vw, 2.125rem);
  --text-logo: clamp(2.375rem, 1.5rem + 3vw, 3.125rem);
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-18: 4.5rem; --space-20: 5rem;
  --space-22: 5.5rem; --space-24: 6rem; --space-32: 8rem;
  --content-default: 67.5rem; --content-narrow: 45.5rem;
  --radius-sm: .125rem; --transition-interactive: 180ms ease;
}
[data-theme="light"] {
  color-scheme: light;
  --color-bg: #f6f4ef; --color-surface: #eeece6;
  --color-surface-2: #e6e3db; --color-surface-offset: #dfdbd2;
  --color-text: #373e46; --color-text-muted: #464c53;
  --color-text-faint: #596069; --color-primary: #746322;
  --color-primary-hover: #544612;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  font-family: var(--font-body); font-size: var(--text-base);
  font-weight: 400; line-height: 1.6;
  background: var(--color-bg); color: var(--color-text);
}
h1, h2, p, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a, button { transition: color var(--transition-interactive), background-color var(--transition-interactive); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 5px; }
::selection { background: var(--color-primary); color: var(--color-bg); }
.site-shell { max-width: var(--content-default); min-height: 100svh; margin-inline: auto; padding-bottom: var(--space-24); }
.site-header { padding: var(--space-8) var(--space-6) 0; position: relative; }
.brand { width: 16.25rem; height: auto; color: var(--color-text); overflow: visible; }
.brand text { font-family: var(--font-display); font-size: 50px; font-weight: 400; }
.brand-upload { width: 16.25rem; padding-right: var(--space-4); }
.brand-upload .custom-logo { width: 100%; height: auto; max-height: 10rem; object-fit: contain; object-position: left center; }
.brand-upload .custom-logo-link { display: block; min-height: 44px; }
.theme-toggle {
  position: absolute; top: var(--space-8); right: var(--space-6);
  display: grid; place-items: center; width: 44px; height: 44px;
  padding: var(--space-3); border: 0; border-radius: 50%;
  background: transparent; color: var(--color-text-faint); cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }
.theme-toggle:hover, .theme-toggle:focus-visible { background: var(--color-surface); color: var(--color-text); }
.theme-toggle:active { background: var(--color-surface-2); }
.holding-content { max-width: var(--content-narrow); margin: var(--space-16) auto 0; padding-inline: var(--space-6); }
.introduction { text-align: center; }
.tagline, .impact { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; line-height: 1.6; }
.project-visual { margin-top: var(--space-12); }
.project-image {
  width: 100%; height: auto; aspect-ratio: 728 / 410;
  object-fit: cover; object-position: center bottom;
  background: var(--color-surface-offset);
}
.image-unavailable { aspect-ratio: 728 / 410; padding: var(--space-8); display: grid; place-items: center; background: var(--color-surface-offset); color: var(--color-text-muted); text-align: center; }
.services { margin-top: var(--space-8); }
.services-list { padding: 0; margin: 0; list-style: none; text-align: center; }
.services-list li { margin: 0; padding: 0; line-height: 1.82; overflow-wrap: anywhere; }
.contact { margin-top: var(--space-6); text-align: center; font-style: normal; margin-bottom: 0; }
.contact-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--color-primary); text-decoration: none; overflow-wrap: anywhere; max-width: 100%; }
.contact-link:hover, .contact-link:focus-visible { color: var(--color-primary-hover); text-decoration: underline; text-underline-offset: .22em; }
.contact-link:active { color: var(--color-text); }
.skip-link { position: absolute; z-index: 100001; top: var(--space-2); left: var(--space-4); padding: var(--space-2) var(--space-4); background: var(--color-bg); color: var(--color-text); transform: translateY(-200%); font-size: var(--text-sm); }
.skip-link:focus { transform: translateY(0); }
.admin-bar .skip-link { top: calc(32px + var(--space-2)); }
.standard-content { overflow-wrap: anywhere; }
.standard-content a { color: var(--color-primary); text-underline-offset: .2em; }
.standard-content a:hover { color: var(--color-primary-hover); }
.standard-content img { max-width: 100%; height: auto; }
.standard-article + .standard-article, .entry-content, .return-home { margin-top: var(--space-8); }
.post-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; margin-block: var(--space-4); }
.entry-content p + p { margin-top: var(--space-4); }
.entry-content > * { max-width: 100%; }
@media (min-width: 768px) {
  .site-shell { min-height: max(100svh, 95.4375rem); }
  .site-header { padding: var(--space-12) var(--space-12) 0; }
  .theme-toggle { top: var(--space-12); right: var(--space-12); }
  .holding-content { padding-inline: 0; margin-top: var(--space-32); }
  .project-visual { margin-top: var(--space-18); }
  .contact { margin-top: var(--space-8); }
}
@media (max-width: 767.98px) {
  .brand, .brand-upload { width: 11.5rem; }
  .services-list li + li { margin-top: var(--space-2); }
  .holding-content { width: 100%; }
}
@media (max-width: 782px) { .admin-bar .skip-link { top: calc(46px + var(--space-2)); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Logo container: matches the previous wordmark width. */
.moonshot-logo {
    display: block;
    width: 16.25rem;
    max-width: calc(100% - 3.75rem);
    min-height: 44px;
    color: inherit;
    text-decoration: none;
}

/* Preserve the image proportions. */
.moonshot-logo img {
    width: 100%;
    height: auto;
}

/* Default / night appearance. */
.moonshot-logo .moonshot-logo-night {
    display: block;
}

.moonshot-logo .moonshot-logo-day {
    display: none;
}

/* Day appearance. */
html[data-theme="light"] .moonshot-logo-night {
    display: none;
}

html[data-theme="light"] .moonshot-logo-day {
    display: block;
}

/* Match the existing mobile logo size. */
@media (max-width: 767.98px) {
    .moonshot-logo {
        width: 11.5rem;
    }
}