@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }

:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #f2b48a;
}

html { height: 100%; scroll-behavior: smooth; }

*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  min-height: 100%;
  background: transparent;
  color: #fff4e6;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}

#scene.ready { opacity: 1; }

.hero, main, footer { position: relative; z-index: 1; }

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14vh 1.5rem 3rem;
  text-align: center;
  text-shadow: 0 2px 24px rgba(60, 20, 10, 0.45);
}

.hero h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(3rem, 11vw, 6.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.tagline { margin: 0.6rem 0 0; font-style: italic; font-size: clamp(1.2rem, 3.4vw, 1.7rem); }
.date { margin: 0.4rem 0 0; opacity: 0.85; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.95rem; }

.scroll-hint {
  margin-top: auto;
  color: inherit;
  font-style: italic;
  font-size: 1.15rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 244, 230, 0.6);
  padding-bottom: 2px;
}

.reading {
  max-width: 42rem;
  margin: 0 auto 4rem;
  padding: 2.5rem 1.75rem;
  background: rgba(38, 18, 14, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 220, 180, 0.2);
  border-radius: 14px;
  width: calc(100% - 2rem);
}

.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.9rem; color: #ffc98f; }
.reading h2 { margin: 0.3rem 0 1.4rem; font-weight: 500; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1.15; }
.reading p { margin: 0 0 1.2rem; }

.reading blockquote {
  margin: 1.8rem 0;
  padding-left: 1.2rem;
  border-left: 2px solid #ffc98f;
  font-style: italic;
  font-size: 1.35rem;
}

.reading cite { display: block; margin-top: 0.4rem; font-size: 0.95rem; font-style: normal; letter-spacing: 0.08em; color: #ffc98f; }

footer { text-align: center; padding: 0 1.5rem 3rem; font-size: 0.95rem; opacity: 0.8; text-shadow: 0 1px 12px rgba(60, 20, 10, 0.6); }
footer p { margin: 0.2rem 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #scene { transition: none; }
}

.loader { display: none; }

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: radial-gradient(ellipse at 50% 70%, #f6c79c 0%, #e9935f 55%, #7a3d2c 100%);
  transition: opacity 1s ease, visibility 1s ease;
}

.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader p { margin: 0; text-shadow: 0 2px 18px rgba(60, 20, 10, 0.45); }
.loader-title { font-size: clamp(2.2rem, 8vw, 3.6rem); font-weight: 500; letter-spacing: 0.04em; }
.loader-percent { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.loader-track { width: min(16rem, 70vw); height: 2px; background: rgba(255, 244, 230, 0.3); border-radius: 2px; overflow: hidden; }
.loader-bar { height: 100%; background: #fff4e6; transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.loader-label { font-style: italic; font-size: 1.1rem; opacity: 0.9; }
