/* Patty & Spice — coming soon
   Palette lifted straight from the logo artwork.
   Fonts are self-hosted so the page never falls back to a system serif. */

@font-face {
  font-family: "Fredericka the Great";
  src: url("/fonts/fredericka-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --terracotta: #d28e63;
  --tan:        #d8a66b;
  --sand:       #dcb771;
  --butter:     #e2cc78;
  --ember:      #b4542f;

  --ink:        #120f0d;
  --ink-soft:   #1c1715;
  --outline:    #000;
  --cream:      #f7efe3;
  --cream-dim:  rgba(247, 239, 227, .68);

  --display: "Playfair Display", Georgia, serif;
  --body:    "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sketch:  "Fredericka the Great", Georgia, serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --shadow-hard: 6px 6px 0 var(--outline);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* the rotated full-bleed ticker is wider than the viewport by design;
     clip (not hidden) stops it being pannable sideways on touch */
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: clip;
  position: relative;
}

.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;
}

/* ---------- Backdrop: the retro sun ---------- */

.sun-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* a small warm glow right behind the badge — just enough to lift it */
.ember {
  position: absolute;
  inset: 0;
  background: radial-gradient(46% 32% at 50% 24%,
    rgba(210, 142, 99, .20) 0%,
    rgba(180, 84, 47, .08) 55%,
    transparent 78%);
}

/* ---------- Horizon strip (the sunset, as a designed band) ---------- */

.horizon {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  height: clamp(92px, 14.5vh, 165px);
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  overflow: hidden;
  border-top: 2px solid var(--outline);
}

.band { display: block; }
.band-1 { background: var(--terracotta); }
.band-2 { background: var(--tan); }
.band-3 { background: var(--sand); }
.band-4 { background: var(--butter); }

/* inked rules between the bands, as in the badge */
.band + .band { box-shadow: 0 -4px 0 rgba(0, 0, 0, .6); }

/* palms are sized off the strip's height, so they survive any viewport width */
.palm-defs { position: absolute; width: 0; height: 0; }

.palm {
  position: absolute;
  width: auto;
  fill: var(--ink);
}

/* each bottom is set below the ridge top at that x, so the trunks are rooted
   in the dark mass rather than floating over a band (see ridge curve in markup) */
.palm--far   { left: 11%;  height: 46%; bottom: 14.5%; transform: scaleX(-1); }
.palm--tall  { right: 18%; height: 72%; bottom: 18.5%; }
.palm--short { right: 14%; height: 44%; bottom: 7%; }

@media (max-width: 40rem) {
  .palm--far   { left: 7%;  height: 42%; }
  .palm--tall  { right: 16%; height: 66%; }
  .palm--short { right: 11%; height: 40%; }
}

.palm-ridge {
  position: absolute;
  inset: auto 0 -1px 0;
  width: 100%;
  height: 62%;
  display: block;
  fill: var(--ink);
}

/* film grain */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  animation: grain-drift 7s steps(6) infinite;
}

@keyframes grain-drift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}

/* ---------- Layout ---------- */

.shell {
  position: relative;
  z-index: 2;
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(1.1rem, 3vh, 2.25rem) var(--gutter) clamp(1.25rem, 3.5vh, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2.8vh, 2.25rem);
  min-height: 100svh;
}

.topline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(247, 239, 227, .3), transparent);
}

.eyebrow {
  margin: 0;
  font-family: var(--sketch);
  font-weight: 400;
  font-size: clamp(.8rem, 2vw, 1.05rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  white-space: nowrap;
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  justify-content: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(.55rem, 1.5vh, 1rem);
}

.hero .logo { margin-bottom: clamp(.25rem, 1.4vh, 1rem); }
.headline { margin-bottom: clamp(.1rem, .6vh, .5rem); }

.logo {
  width: min(88%, 26rem, 36vh);
  height: auto;
  animation: rise .9s cubic-bezier(.2, .8, .3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.headline {
  margin: 0;
  font-family: var(--sketch);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 8.5vw, 4.75rem);
  color: var(--cream);
}

.hype {
  margin: 0;
  font-family: var(--sketch);
  font-weight: 400;
  font-size: clamp(1.2rem, 3.4vw, 1.95rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--butter);
}

/* ---------- Flavour ticker ---------- */

.ticker {
  position: relative;
  overflow: hidden;
  width: 108vw;
  margin-inline: calc(50% - 54vw);
  margin-top: .25rem;
  padding: .4rem 0;
  background: var(--terracotta);
  color: #180d06;
  border-top: 2px solid var(--outline);
  border-bottom: 2px solid var(--outline);
  transform: rotate(-1.1deg);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: slide 34s linear infinite;
}

.ticker-track span {
  font-family: var(--sketch);
  font-weight: 400;
  font-size: clamp(.85rem, 2.1vw, 1.15rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 1.5rem;
}

.ticker-track i { font-style: normal; opacity: .45; margin: 0 .3em; }

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Footer ---------- */

.foot {
  margin-top: calc(clamp(1.1rem, 2.8vh, 2.25rem) * -1 + 1.6rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.foot-meta {
  margin: .2rem 0 0;
  font-size: .9rem;
  letter-spacing: .06em;
  color: var(--cream-dim);
}

.foot-meta a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(210, 142, 99, .6);
  padding-bottom: 1px;
  transition: color .16s ease, border-color .16s ease;
}

.foot-meta a:hover { color: var(--butter); border-color: var(--butter); }

.dot { margin: 0 .55rem; opacity: .45; }

.copyright {
  margin: .3rem 0 0;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247, 239, 227, .38);
}

/* ---------- Focus & motion ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--butter);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 30rem) {
  .topline { gap: .6rem; }
  .eyebrow {
    font-size: clamp(.58rem, 2.8vw, .8rem);
    letter-spacing: .08em;
  }
}
