/* Toasty Labs. Black, ember, and a whisper of green. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  --black: #0A0908;
  --text: #F3ECE2;
  --text-2: rgba(243, 236, 226, 0.62);
  --ember: #FF5A26;
  --ember-deep: #C2350C;
  --green: #5E8C6A;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(22px, 4.5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, p { margin: 0; }
a { color: inherit; }
::selection { background: rgba(255, 90, 38, .35); color: #fff; }
:focus-visible { outline: 1.5px solid var(--ember); outline-offset: 4px; border-radius: 4px; }

/* Grain, so the black has some depth */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 5; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Home ---------- */
.home { display: grid; grid-template-rows: auto 1fr auto auto; }

/* The ember: a slow, breathing glow under the words, with a faint green cool at the edge */
.ember { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ember::before {
  content: ""; position: absolute; left: -20vmax; bottom: -30vmax; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(94, 140, 106, .22), transparent 70%);
}
.ember__core {
  position: absolute; left: var(--x, 50%); top: var(--y, 62%); width: min(110vmin, 1100px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 120, 60, .55), rgba(255, 90, 38, .28) 38%, rgba(194, 53, 12, .12) 62%, transparent 78%);
  filter: blur(18px);
  animation: breathe 9s ease-in-out infinite;
  transition: left 2.4s var(--ease), top 2.4s var(--ease);
}
@keyframes breathe {
  0%, 100% { opacity: .78; scale: 1; }
  50% { opacity: 1; scale: 1.06; }
}

.top, .stage, .foot { position: relative; z-index: 1; }
.top { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--pad) * .8) var(--pad); }
.wordmark { font-family: var(--serif); font-weight: 560; font-size: 24px; letter-spacing: -0.02em; text-decoration: none; line-height: 1; }
.soon { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 550; letter-spacing: .02em; color: var(--text-2); }
.soon i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(94, 140, 106, .6); animation: pulse 3s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94,140,106,.55); } 70% { box-shadow: 0 0 0 9px rgba(94,140,106,0); } 100% { box-shadow: 0 0 0 0 rgba(94,140,106,0); } }

.stage { display: grid; place-content: center; text-align: center; padding: 6vh var(--pad) 10vh; }
.headline {
  font-family: var(--serif); font-weight: 380; font-size: clamp(3rem, 9.5vw, 8.6rem); line-height: .95; letter-spacing: -0.04em;
  max-width: 11ch; margin: 0 auto; text-wrap: balance;
}
.headline em { font-style: italic; font-weight: 340; color: #FFB08C; }
.sub { margin-top: clamp(22px, 3.4vw, 36px); font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.4; color: rgba(243, 236, 226, 0.84); }
.what { margin: 14px auto 0; max-width: 30ch; font-size: clamp(14.5px, 1.1vw, 15.5px); line-height: 1.55; letter-spacing: .005em; color: rgba(243, 236, 226, 0.72); text-wrap: balance; }

.about { position: relative; z-index: 1; max-width: 34rem; margin: 0 auto; padding: 0 var(--pad) clamp(8px, 2vh, 20px); text-align: center; }
.about h2 { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(243, 236, 226, 0.56); }
.about p { font-size: 13.5px; color: var(--text-2); text-wrap: balance; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding: var(--pad); padding-bottom: calc(var(--pad) + env(safe-area-inset-bottom));
  font-size: 13px; color: var(--text-2);
}
.foot a { text-decoration: none; color: var(--text); background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .2s; }
.foot a:hover { background-size: 100% 1px; color: #fff; }
@media (max-width: 640px) {
  .foot { flex-direction: column; align-items: center; text-align: center; }
}

/* Gentle entrance */
.headline, .sub, .what, .top, .about, .foot { animation: rise 1.4s var(--ease) both; }
.sub { animation-delay: .25s; }
.what { animation-delay: .4s; }
.top, .about, .foot { animation-delay: .55s; animation-name: fade; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Simple pages (privacy, 404) ---------- */
.page { display: grid; grid-template-rows: auto 1fr auto; }
.page .ember__core { top: -10%; width: min(90vmin, 900px); opacity: .55; animation: none; }
.doc { position: relative; z-index: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 8vh var(--pad) 10vh; }
.doc h1 { font-family: var(--serif); font-weight: 380; font-size: clamp(2.6rem, 6vw, 3.8rem); letter-spacing: -0.035em; line-height: 1; margin-bottom: 28px; }
.doc p { color: var(--text-2); font-size: 16px; }
.doc p + p { margin-top: 16px; }
.doc a { color: var(--text); text-decoration-color: var(--ember); text-underline-offset: 4px; }
.doc .muted { font-size: 13px; margin-top: 36px; }
.center { display: grid; place-content: center; text-align: center; }
