:root {
  color-scheme: light;
  --bg: #f7faf9;
  --surface: #ffffff;
  --ink: #102f36;
  --muted: #557079;
  --line: #c9d9db;
  --brand: #18a9b8;
  --focus: #006873;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071215;
  --surface: #0b1a1e;
  --ink: #ffffff;
  --muted: #bdd0d4;
  --line: #365157;
  --brand: #55d8e5;
  --focus: #8deaf1;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 78% 35%, color-mix(in srgb, var(--brand) 10%, transparent) 0, transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--bg);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
footer {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header { padding-block: clamp(1.25rem, 3vw, 2.5rem); }

.brand { display: inline-flex; }

.brand img {
  display: block;
  width: clamp(9rem, 20vw, 13rem);
  height: auto;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .brand img {
  padding: .45rem;
  border-radius: .35rem;
  background: white;
  mix-blend-mode: normal;
}

.theme-toggle {
  min-width: 6.5rem;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.theme-toggle:hover { border-color: var(--brand); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

main { display: grid; place-items: center; }

.hero {
  width: min(100% - 2rem, 76rem);
  padding-block: clamp(3rem, 9vw, 8rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 2.4rem;
  height: 2px;
  background: var(--brand);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 12vw, 10.5rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .78;
}

h1 em { color: var(--brand); font-weight: 400; }

.hero p {
  max-width: 34rem;
  margin: clamp(2.2rem, 5vw, 4rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.rule {
  width: min(100%, 34rem);
  height: 1px;
  margin-top: 2.5rem;
  background: var(--line);
}

.rule span {
  display: block;
  width: 24%;
  height: 2px;
  background: var(--brand);
}

footer {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

footer p { margin: 0; }

@media (max-width: 36rem) {
  h1 { font-size: clamp(3.8rem, 20vw, 6rem); }
  footer { align-items: flex-start; flex-direction: column; gap: .5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .theme-toggle { transition: border-color 150ms ease, background-color 150ms ease; }
}

@media (forced-colors: active) {
  .eyebrow span, .rule span { background: CanvasText; }
}
