/* YAFOTO site: the v2 brand. Mozilla Headline for titles, Geist for text, charcoal and cream,
   amber only for the one thing to tap. Fonts are served from this site, so no visitor data
   goes to a font provider. */
@font-face { font-family: 'Mozilla Headline'; src: url('fonts/MozillaHeadline-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/Geist_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/Geist_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/Geist_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Stamp'; src: url('fonts/stamp.ttf') format('truetype'); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #121110;
  --panel: #1a1917;
  --line: rgb(255 253 248 / 0.1);
  --line-2: rgb(255 253 248 / 0.22);
  --cream: #fffdf8;
  --grey: #a29c92;
  --grey-2: #c9c2b7;
  --amber: #f2a33a;
  --on-amber: #1a1208;
  --stamp: #ff8a2a;
  --display: 'Mozilla Headline', system-ui, sans-serif;
  --text: 'Geist', system-ui, sans-serif;
  --wrap: 46rem;
  --gutter: clamp(1rem, 5vw, 2rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cream); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--cream); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.mark { width: 28px; height: 28px; }
.pill {
  padding: 7px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

main { flex: 1; }
.page { padding: 28px 0 72px; }
.page h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 7vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.page h2 {
  margin: 40px 0 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
}
.page p, .page li { color: var(--grey-2); }
.page strong { color: var(--cream); font-weight: 600; }
.lede { font-size: 18px; color: var(--grey) !important; }
.page ul { padding-left: 1.2em; }
.page li { margin: 8px 0; }
.page li::marker { color: var(--grey); }

.faq { display: grid; gap: 10px; margin-top: 18px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 500;
  color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--grey); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; }

.site-footer { border-top: 1px solid var(--line); color: var(--grey); font-size: 14px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 32px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--grey); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }

/* The coming-soon home page. */
.soon { display: grid; place-items: center; text-align: center; padding: 48px 0 80px; }
.soon .spark { width: 84px; height: 84px; margin-bottom: 26px; }
.soon h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(42px, 10vw, 76px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.soon p { max-width: 30rem; margin: 18px auto 0; color: var(--grey-2); font-size: 18px; }
.soon .stamp {
  display: inline-block;
  margin-top: 28px;
  font-family: 'Stamp', monospace;
  font-size: 22px;
  color: var(--stamp);
  text-shadow: 0 0 6px rgb(255 110 20 / 0.8);
  letter-spacing: 0.04em;
}
.soon .cta {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 600;
  text-decoration: none;
}

/* The headline's continuation, each line fading in after the last, then the stamp. */
.soon .more {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 4.6vw, 34px);
  line-height: 1.25;
  color: var(--grey);
}
.soon .more li { opacity: 0; transform: translateY(6px); animation: rise 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
.soon .more li:nth-child(1) { animation-delay: 0.5s; }
.soon .more li:nth-child(2) { animation-delay: 1.1s; }
.soon .more li:nth-child(3) { animation-delay: 1.7s; }
.soon .more li:nth-child(4) { animation-delay: 2.3s; }
.soon .more li:nth-child(5) { animation-delay: 2.9s; }
.soon .more li:nth-child(6) { animation-delay: 3.5s; }
.soon .stamp, .soon .cta { opacity: 0; animation: rise 0.8s ease forwards 4.2s; }
.soon .cta { animation-delay: 4.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .soon .more li, .soon .stamp, .soon .cta { animation: none; opacity: 1; transform: none; }
}
