/* keryoza.com "coming soon". Brand HANDOFF (docs/design/brand/HANDOFF.md): cream ground,
   red is the voice, gold is the joy, ink is the words; the logo is used as is; nothing
   flashes. One quiet sunrise on load, off under reduced motion. */

@font-face {
  font-family: "Baloo Display";
  src: url("baloo-display.woff") format("woff");
  font-weight: 700;
  font-display: block;
}
@font-face {
  font-family: "Cairo";
  src: url("cairo.woff") format("woff");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --cream: #FFF3E2;
  --paper: #FDF8EF;
  --red: #C4432B;
  --coral: #EE7A5E;
  --orange: #E8963A;
  --ink: #3D211E;
  --brand-ink: #631315;
  --sill-deep: #43090B;
  --gold: #E8B65A;
  --sun: #FFD98A;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 217, 138, 0.55), rgba(255, 217, 138, 0) 62%),
    var(--cream);
  color: var(--ink);
  font-family: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  overflow-x: hidden;
}

/* The ray meadow: the brand's everyday texture, faint, fading towards the bottom. */
.meadow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--gold);
  opacity: 0.16;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
}

.stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1rem 4.5rem;
}

/* ---- The logo, rising like the sun ---- */
.sunrise {
  position: relative;
  width: clamp(9rem, 34vw, 11.5rem);
  aspect-ratio: 1;
  margin-block-end: 1.75rem;
}
.sunrise::before {                 /* the warm halo behind the tile */
  content: "";
  position: absolute;
  inset: -55%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 217, 138, 0.9), rgba(255, 217, 138, 0.35) 55%, rgba(255, 217, 138, 0));
  z-index: -1;
}
.logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28%;              /* the brand's preview mask radius */
  box-shadow:
    0 1.6rem 3.2rem -1rem rgba(99, 19, 21, 0.45),
    0 0.3rem 0.8rem rgba(99, 19, 21, 0.18);
}

/* ---- Rainbow wordmark (HANDOFF section 3): letters 2/4/6 raised ~0.07em ---- */
.wordmark {
  margin: 0;
  font-family: "Baloo Display", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.01em;
}
.wordmark span { display: inline-block; }
.wordmark span:nth-child(1), .wordmark span:nth-child(4), .wordmark span:nth-child(7) { color: var(--red); }
.wordmark span:nth-child(2), .wordmark span:nth-child(6) { color: var(--coral); }
.wordmark span:nth-child(3), .wordmark span:nth-child(5) { color: var(--orange); }
.wordmark span:nth-child(even) { transform: translateY(-0.07em); }

/* ---- Coming soon ---- */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
  padding: 0.35rem 1.1rem 0.4rem;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  background: rgba(255, 239, 205, 0.75);
  color: var(--brand-ink);
  font-family: "Baloo Display", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.6;
}
.soon [lang="en"] { letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.82em; }
.soon .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--red);
}

/* ---- The chant ---- */
.chant {
  margin: 1.5rem 0 0;
  font-family: "Baloo Display", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 10.5vw, 4.75rem);
  line-height: 1.25;
  color: var(--brand-ink);
  text-wrap: balance;
}
.chant em {
  font-style: normal;
  color: var(--red);
}

.fan {
  width: 4.5rem;
  margin-block: 0.6rem 0.9rem;
  fill: var(--gold);
}

.slogan {
  margin: 0;
  font-family: "Baloo Display", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 4.2vw, 1.5rem);
  letter-spacing: 0.01em;
  color: var(--ink);
}
.slogan span { color: var(--gold); padding-inline: 0.15em; }
.slogan strong { color: var(--red); font-weight: 700; letter-spacing: 0.06em; }

/* ---- The sill, with Kio's hands over its top edge (HANDOFF section 6) ---- */
.sill {
  position: relative;
  padding: 1.6rem 1rem 1.4rem;
  background: linear-gradient(to bottom, #8A2A22 0%, var(--brand-ink) 30%, var(--sill-deep) 100%);
  border-top: 2.5px solid rgba(168, 74, 58, 0.8);
  color: rgba(255, 243, 226, 0.78);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
}
.hands {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  margin-inline: auto;
  width: min(15rem, 62vw);
  display: flex;
  justify-content: space-between;
  transform: translateY(-58%);
  pointer-events: none;
}
.hands i {
  position: relative;
  width: 3.3rem;
  height: 2.45rem;
  border-radius: 50%;
  background: var(--coral);
  border: 0.42rem solid var(--brand-ink);
}
.hands i::after {                   /* the hand shine */
  content: "";
  position: absolute;
  inset-block-start: 0.18rem;
  inset-inline-end: 0.5rem;
  width: 1.3rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
.sill nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.4rem;
}
.sill a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 243, 226, 0.35);
}
.sill a:hover { border-bottom-color: var(--cream); }
.sill p { margin: 0.5rem 0 0; font-size: 0.85rem; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.sill :focus-visible { outline-color: var(--sun); }

/* ---- One quiet sunrise on load ---- */
@media (prefers-reduced-motion: no-preference) {
  .sunrise { animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .sunrise::before { animation: glow 2.2s ease-out both; }
  .wordmark, .soon, .chant, .fan, .slogan {
    animation: settle 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .wordmark { animation-delay: 0.35s; }
  .soon { animation-delay: 0.5s; }
  .chant { animation-delay: 0.65s; }
  .fan { animation-delay: 0.8s; }
  .slogan { animation-delay: 0.9s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(2.2rem) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes glow {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(0.8rem); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 48rem) {
  .stage { padding-block: 4.5rem 6rem; }
  .sill { padding-block: 2rem 1.6rem; }
}
