/* Fraunces (SIL Open Font License), hosted here so no visitor's address goes to a font service. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(/assets/fonts/fraunces-latin.woff2) format("woff2"); }

/* The Mesozoic's site: the app's own "field guide at dusk" (Mesozoic/App/Theme.swift tokens). One amber thing per
   screen, serif titles, paintings everywhere. */
:root {
  --canvas: #0E1A14; --surface: #16261E; --raised: #1E3328; --stroke: #2A4236;
  --bone: #EEF0E2; --sage: #A8BCAE; --lichen: #7D9285;
  --amber: #F2B544; --fern: #8FD18A; --coral: #F28B7A;
  --permian: #A891E0; --triassic: #EE8A5E; --jurassic: #C2D86A; --cretaceous: #6CC6DD; --paleogene: #E79BB6;
  --display: "Fraunces", "New York", Georgia, serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wide: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--bone); font: 17px/1.6 var(--text); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fern); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--sage); }
.kicker { font: 700 0.8rem/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fern); }

/* Nav */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; gap: 12px; padding-top: 18px; }
.nav .brand { display: flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none;
  font: 700 1.15rem var(--display); }
.nav .brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.nav .links { margin-left: auto; display: flex; gap: 20px; }
.nav .links a { color: var(--bone); text-decoration: none; font-size: 0.95rem; opacity: .85; }
.nav .links a:hover { opacity: 1; }
@media (max-width: 640px) { .nav .links { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: min(92vh, 860px); min-height: min(92svh, 860px); display: flex; align-items: flex-end; padding: 140px 0 72px; }
.hero .art { position: absolute; inset: 0; background: center 30% / cover no-repeat; }
.hero .art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,26,20,.55) 0%, rgba(14,26,20,0) 28%, rgba(14,26,20,.35) 58%, var(--canvas) 100%); }
.hero .wrap { position: relative; width: 100%; }
.hero h1 { max-width: 13ch; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero p.lead { max-width: 34rem; margin-top: 18px; font-size: 1.2rem; color: var(--bone); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 14px 24px; border-radius: 999px;
  background: var(--amber); color: #1B1405; font-weight: 700; text-decoration: none; box-shadow: 0 6px 24px rgba(242,181,68,.3); }
.cta small { font-weight: 600; opacity: .75; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -8px; position: relative; z-index: 1; }
.facts div { background: var(--surface); border: 1px solid var(--stroke); border-radius: 18px; padding: 18px; }
.facts b { display: block; font: 700 1.9rem/1 var(--display); color: var(--bone); }
.facts span { color: var(--sage); font-size: .95rem; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
section { padding: 88px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split p { margin-top: 14px; color: var(--sage); font-size: 1.08rem; }
.split .kicker { margin-bottom: 12px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; color: var(--bone); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--fern); border-radius: 2px; }

/* Creature gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 9px; font: 700 .82rem var(--display);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(transparent, rgba(14,26,20,.92)); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } .gallery figure:nth-child(n+10) { display: none; } }
@media (max-width: 480px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery figure:nth-child(n+9) { display: none; } }

/* Eggs */
.eggs { display: flex; justify-content: center; align-items: flex-end; gap: 2%; padding: 24px 0;
  background: radial-gradient(closest-side, rgba(242,181,68,.14), transparent); }
.eggs img { width: 21%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); animation: wobble 4s ease-in-out infinite; }
.eggs img:nth-child(2) { animation-delay: -1s; width: 24%; } .eggs img:nth-child(3) { animation-delay: -2s; width: 24%; }
.eggs img:nth-child(4) { animation-delay: -3s; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(-3deg); } 55% { transform: rotate(3deg); } }

/* Full-art cards */
.cards { display: flex; justify-content: center; padding: 30px 0 10px; }
.cards img { width: 30%; max-width: 210px; aspect-ratio: 860 / 1204; object-fit: cover; border-radius: 16px; margin: 0 -4%;
  border: 3px solid rgba(238,240,226,.85); box-shadow: 0 18px 40px rgba(0,0,0,.55); transition: transform .3s ease; }
/* Each card's tilt and lift as numbers, so reveal.js fans them out turning and spreading at once. */
.cards img { --r: 0deg; --y: 0px; transform: translateX(0) translateY(var(--y)) rotate(var(--r)); }
.cards img:nth-child(1) { --r: -12deg; --y: 18px; } .cards img:nth-child(2) { --r: -4deg; z-index: 1; }
.cards img:nth-child(3) { --r: 5deg; --y: 4px; z-index: 2; } .cards img:nth-child(4) { --r: 13deg; --y: 22px; }
.cards img:hover { transform: translateX(0) translateY(-10px) rotate(0deg); z-index: 3; }

/* Phones */
.phones { display: flex; justify-content: center; gap: 18px; }
.phone { width: 31%; max-width: 270px; border-radius: 36px; padding: 8px; background: #050A07; border: 1px solid var(--stroke);
  box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.phone img { border-radius: 28px; aspect-ratio: 1206 / 2622; object-fit: cover; }
.phones .phone:nth-child(2) { transform: translateY(-24px); }
@media (max-width: 560px) { .phone { width: 46%; } .phones .phone:nth-child(3) { display: none; } }

/* Tiko */
.tiko { border-radius: 50%; width: min(320px, 70%); margin: 0 auto; box-shadow: 0 0 0 10px var(--surface), 0 20px 50px rgba(0,0,0,.5); }
.bubble { background: var(--surface); border: 1px solid var(--stroke); border-radius: 18px 18px 18px 4px; padding: 14px 16px;
  margin-top: 14px; color: var(--bone); max-width: 30rem; }
.bubble.me { border-radius: 18px 18px 4px 18px; margin-left: auto; background: var(--raised); }

/* Timeline of the ages */
.ages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 36px; }
.age { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--stroke); }
.age img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.age div { padding: 10px 12px 14px; }
.age b { font-family: var(--display); display: block; }
.age span { color: var(--sage); font-size: .85rem; }
.age.permian b { color: var(--permian); } .age.triassic b { color: var(--triassic); } .age.jurassic b { color: var(--jurassic); }
.age.cretaceous b { color: var(--cretaceous); } .age.paleogene b { color: var(--paleogene); }
@media (max-width: 860px) { .ages { grid-template-columns: repeat(5, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .age { scroll-snap-align: start; } }

/* Seasons band */
.season { position: relative; border-radius: 28px; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end;
  background: center / cover no-repeat; }
.season::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,26,20,.92), rgba(14,26,20,.2) 70%); }
.season > div { position: relative; z-index: 1; padding: 36px; max-width: 34rem; }
.season p { margin-top: 12px; color: var(--bone); }

/* Families */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.trust div { background: var(--surface); border: 1px solid var(--stroke); border-radius: 18px; padding: 20px; }
.trust h3 { font-size: 1.1rem; margin-bottom: 6px; }
.trust p { color: var(--sage); font-size: .98rem; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }

/* Long text (privacy) */
.doc { max-width: 720px; margin: 0 auto; padding: 120px 16px 40px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 12px; }
.doc h2 { font-size: 1.5rem; margin: 44px 0 10px; padding-top: 18px; border-top: 1px solid var(--stroke); }
.doc h3 { margin: 28px 0 6px; }
.doc p, .doc li { color: var(--bone); margin: 10px 0; }
.doc strong { color: #fff; }

footer { border-top: 1px solid var(--stroke); padding: 36px 0 48px; margin-top: 40px; color: var(--sage); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer a { color: var(--sage); }
footer .grow { flex: 1; }
@media (max-width: 600px) { section { padding: 56px 0; } .hero { padding-bottom: 48px; } }

/* Accessibility (Codex's review, 2026-10-23): a skip link, a visible focus ring, a menu on phones, and stillness under
   Reduce Motion. */
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--bone); color: var(--canvas); padding: 10px 14px;
  border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; display: grid; place-content: center;
  gap: 5px; background: rgba(14,26,20,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--bone); }
.menu-list { position: absolute; right: 0; top: 52px; min-width: 200px; display: grid; padding: 8px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--stroke); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.menu-list a { color: var(--bone); text-decoration: none; padding: 12px 14px; border-radius: 10px; }
.menu-list a:hover { background: var(--raised); }
@media (max-width: 640px) { .menu { display: block; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eggs img { animation: none; }
  .gallery img, .cards img { transition: none; }
}

/* "Tell me at launch" */
.notify { margin-top: 26px; max-width: 34rem; }
.notify .soon { font-weight: 700; color: var(--bone); margin-bottom: 10px; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.notify-row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(14,26,20,.72);
  border: 1px solid rgba(238,240,226,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.notify input[type=email] { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--bone); font: inherit;
  padding: 10px 14px; }
.notify input[type=email]::placeholder { color: var(--sage); }
.notify input[type=email]:focus-visible { outline: none; }
.notify-row:focus-within { border-color: var(--amber); }
.notify .cta { margin: 0; border: 0; cursor: pointer; font: 700 1rem var(--text); padding: 12px 20px; white-space: nowrap; }
.notify .cta:disabled { opacity: .6; }
.notify .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notify .fine { margin-top: 10px; font-size: .88rem; color: var(--sage); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.notify .fine a { color: var(--bone); }
.notify-status { margin-top: 10px; font-weight: 600; color: var(--fern); }
.notify-status[data-ok="false"] { color: var(--coral); }
@media (max-width: 480px) {
  .notify-row { flex-direction: column; border-radius: 22px; }
  .notify .cta { width: 100%; }
}
