@font-face {
  font-family: "Fredoka";
  src: url("./assets/fredoka-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #f4f4f2;
  --ink: #080909;
  --muted: #818581;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: var(--paper); color: var(--ink); }
.page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: clip;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px;
  position: relative;
  z-index: 2;
}
.wordmark, h1 {
  font-family: "Fredoka", "Arial Rounded MT Bold", sans-serif;
  font-weight: 600;
}
.wordmark { font-size: 26px; letter-spacing: -1.3px; }
.wordmark span { color: #999d99; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: 1.9px;
  text-transform: uppercase;
  color: #9b9e9b;
}
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #c4cbc1; }
.hero {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  padding: 12px 24px 34px;
}
.threads {
  position: absolute;
  width: 100%;
  height: 105%;
  top: -12%;
  left: 0;
  pointer-events: none;
  z-index: -1;
}
.hero-content { width: 100%; text-align: center; }
.mascot {
  position: relative;
  width: clamp(360px, 46vw, 640px);
  max-width: 100%;
  margin: 0 auto;
  -webkit-tap-highlight-color: transparent;
}
.mascot::before {
  content: "";
  position: absolute;
  inset: 12% 7% 0;
  z-index: -1;
  background: radial-gradient(ellipse, #080909 40%, #080909d9 60%, #08090900 73%);
  pointer-events: none;
}
#face {
  display: block;
  width: 100%;
  overflow: visible;
  animation: breathe 6s ease-in-out infinite;
}
.eye { transform-box: view-box; }
.eye-left { transform-origin: 200px 289px; }
.eye-right { transform-origin: 545px 311px; }
.brow { transition: transform 500ms cubic-bezier(.2, .8, .2, 1); }
.mascot.is-attentive .brow-left { transform: translateY(-7px) rotate(-1deg); }
.mascot.is-attentive .brow-right { transform: translateY(-3px); }
.intro { margin-top: 10px; position: relative; }
h1 { font-size: clamp(45px, 4.6vw, 66px); letter-spacing: -3.5px; line-height: 1.1; margin: 0 0 17px; }
h1 span { color: #dadcd7; }
.intro p { margin: 0; font-size: 14px; line-height: 1.6; letter-spacing: .2px; color: var(--muted); }
.layerzero { color: #c5c8c3; }
.period { color: var(--muted); }
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #646963;
  font-size: 11px;
  letter-spacing: .3px;
  padding: 27px 24px 34px;
}
.footer-line { width: 20px; height: 1px; background: #51574e; }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (min-width: 1700px) { .mascot { width: min(45vw, 760px); } }
@media (max-width: 600px) {
  .masthead { padding: 26px 25px; }
  .wordmark { font-size: 24px; }
  .status { font-size: 9px; letter-spacing: 1.4px; gap: 7px; }
  .hero { padding: 6px 12px 50px; }
  .mascot { width: min(100%, 440px); }
  .intro { margin-top: 22px; }
  h1 { font-size: 49px; letter-spacing: -2.5px; margin-bottom: 16px; }
  .intro p { font-size: 13px; }
  .threads { width: 180%; left: -40%; height: 85%; top: -3%; opacity: .8; }
  .footer { padding-bottom: max(29px, env(safe-area-inset-bottom)); font-size: 10px; }
}
@media (max-height: 740px) and (min-width: 601px) {
  .masthead { padding-top: 22px; padding-bottom: 15px; }
  .mascot { width: min(43vw, 470px); }
  .hero { padding-bottom: 15px; }
  h1 { font-size: 48px; margin-bottom: 10px; }
  .footer { padding: 18px 24px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  #face { animation: none; }
  .brow { transition: none; }
}
