:root {
  color-scheme: light dark;
  --background: #f4efe6;
  --ink: #163e46;
  --secondary: #405f65;
  --control-border: #70838c;
  --accent: #c56a2e;
  --logo-light: block;
  --logo-dark: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #0d262c;
    --ink: #f4efe6;
    --secondary: #afc1d0;
    --control-border: #78939b;
    --accent: #f0a06b;
    --logo-light: none;
    --logo-dark: block;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #0d262c;
  --ink: #f4efe6;
  --secondary: #afc1d0;
  --control-border: #78939b;
  --accent: #f0a06b;
  --logo-light: none;
  --logo-dark: block;
}

:root[data-theme="light"] { color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--background); }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 400 1rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.skip-link {
  position: absolute;
  z-index: 5;
  left: 1rem;
  top: -5rem;
  padding: .75rem 1rem;
  background: var(--background);
  color: var(--ink);
}
.skip-link:focus { top: 1rem; }
a:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.holding-page { min-height: calc(100svh - 6.5rem); }
.brand {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 2vw, 2rem) 1.5rem 0;
}
.logo { width: clamp(12rem, 23vw, 19rem); max-width: 100%; height: auto; }
.logo-light { display: var(--logo-light); }
.logo-dark { display: var(--logo-dark); }
.introduction {
  position: relative;
  z-index: 2;
  max-width: 66rem;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 2rem;
  text-align: center;
}
.status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.status span { width: .6rem; height: .6rem; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
h1 {
  max-width: 20ch;
  margin: 0 auto 1.2rem;
  font-size: clamp(2.8rem, 5.6vw, 5rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: balance;
}
h1 span { display: block; }
.intro {
  max-width: 43ch;
  margin: 0 auto;
  font-size: clamp(1.0625rem, 1.7vw, 1.3rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.scene {
  position: relative;
  min-height: 18rem;
  height: clamp(18rem, calc(100svh - 29rem), 34rem);
  margin-top: -2rem;
  overflow: hidden;
  isolation: isolate;
}
.scene picture, .scene img { display: block; width: 100%; height: 100%; }
.scene picture { position: absolute; inset: 0; }
.scene img { object-fit: cover; object-position: center bottom; }
.scene::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: clamp(4rem, 10vw, 8rem);
  pointer-events: none;
  background: linear-gradient(to bottom, var(--background), transparent);
}
.footer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.footer-identity { display: grid; gap: .1rem; }
.footer-identity strong { font-weight: 600; }
.footer-identity span { color: var(--secondary); font-size: .875rem; }
.theme-control { display: flex; align-items: center; gap: .65rem; color: var(--secondary); font-size: .8125rem; }
.theme-control select {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid var(--control-border);
  border-radius: .4rem;
  padding: .4rem .6rem;
  background: var(--background);
  color: var(--ink);
  font: inherit;
}
@media (max-width: 700px) {
  .brand { padding-top: 1.75rem; }
  .logo { width: 14rem; }
  .introduction { max-width: 28rem; padding: 1.4rem 1.4rem 2.25rem; }
  .status { margin-bottom: 1rem; font-size: .8rem; }
  h1 { max-width: 12ch; font-size: clamp(2.6rem, 10.7vw, 4.1rem); margin-bottom: 1rem; }
  .intro { max-width: 29ch; }
  .scene { min-height: 22rem; height: max(22rem, calc(100svh - 29rem)); margin-top: -1.5rem; }
  .scene img { object-position: center 70%; }
  .footer { padding: 1.1rem 1.25rem; gap: .85rem; flex-direction: column; }
}
@media (max-width: 350px) {
  .introduction { padding-inline: 1rem; }
  h1 { font-size: 2.4rem; }
  .theme-control { flex-wrap: wrap; justify-content: center; }
}
@media (forced-colors: active) {
  .status span { background: CanvasText; }
  .scene::before { display: none; }
}
