:root {
  color-scheme: light;
  --background: #f7f5f0;
  --ink: #292d31;
  --muted: #686664;
  --toggle-border: #dedbd5;
  --toggle-bg: #eeebe5;
  --thumb: #fffdfa;
  --focus: #a54238;
  --shadow: rgba(156, 94, 73, .13);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #101820;
    --ink: #f0efec;
    --muted: #aaaeb2;
    --toggle-border: #303942;
    --toggle-bg: #19232c;
    --thumb: #35414b;
    --focus: #f1a48c;
    --shadow: rgba(238, 140, 113, .11);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #101820;
  --ink: #f0efec;
  --muted: #aaaeb2;
  --toggle-border: #303942;
  --toggle-bg: #19232c;
  --thumb: #35414b;
  --focus: #f1a48c;
  --shadow: rgba(238, 140, 113, .11);
}
* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--background);
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.home {
  min-height: 100svh;
  padding: 76px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mascot {
  position: relative;
  width: clamp(230px, 34vw, 390px);
  max-width: 100%;
  margin-bottom: 14px;
  isolation: isolate;
}
.mascot::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 5%;
  left: 23%;
  width: 54%;
  height: 5%;
  border-radius: 50%;
  background: var(--shadow);
  filter: blur(13px);
}
.mascot img { display: block; width: 100%; height: auto; }
h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.055em;
}
.tagline {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  letter-spacing: .015em;
}
.theme-toggle {
  position: absolute;
  top: max(24px, env(safe-area-inset-top));
  right: max(28px, env(safe-area-inset-right));
  width: 76px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 7px;
  border: 1px solid var(--toggle-border);
  border-radius: 24px;
  background: var(--toggle-bg);
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle__thumb {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--thumb);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  transition: transform 180ms ease, background-color 180ms ease;
}
[data-theme="dark"] .theme-toggle__thumb { transform: translateX(32px); }
.theme-icon { width: 16px; height: 16px; position: relative; }
[data-theme="light"] .sun, [data-theme="dark"] .moon { color: var(--ink); }
.theme-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
.theme-toggle:hover { border-color: var(--muted); }
@media (max-width: 480px) {
  .theme-toggle { top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); }
  .home { padding: 72px 24px; }
  .mascot { width: min(290px, 80vw); }
}
@media (max-height: 600px) {
  .home { padding: 64px 20px 24px; }
  .mascot { width: min(260px, 48svh, 70vw); margin-bottom: 8px; }
  h1 { font-size: 34px; }
  .tagline { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
