/* Freddie the Farmer — freddiethefarmer.com
   The farm gate: summer sky, barn red, wheat gold, storybook cream. */

:root {
  --sky: #a9d3ee;
  --sky-2: #cfe8f7;
  --paper: #fdf6e6;
  --ink: #4a3b2a;
  --barn: #b5432f;
  --barn-2: #d8604a;
  --wheat: #e2b34c;
  --wheat-2: #f3d489;
  --meadow: #5f8f4a;
  --bark: #5a4632;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, .btn { font-family: "Baloo 2", "Nunito", sans-serif; }

.h-farm {
  font-family: "Titan One", "Baloo 2", sans-serif;
  font-size: clamp(1.8rem, 4.4vw, 2.9rem);
  font-weight: 400;
  text-align: center;
  padding-top: 3.6rem;
  color: var(--bark);
  letter-spacing: .01em;
}
.section-sub {
  text-align: center;
  font-size: 1.06rem;
  opacity: .82;
  margin: .5rem auto 2rem;
  max-width: 36rem;
  padding: 0 1.2rem;
}

/* ── the farm gate (hero) ─────────────────────────── */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(20,30,50,0) 55%, rgba(60,45,20,.38) 100%),
    url("assets/hero.jpg") center 76% / cover no-repeat;
  overflow: hidden;
}
/* mid widths crop the sides of the wide art and Freddie drifts under the
   centred UI — bias the window right so he keeps his place at the left,
   with air above his cap at every size */
@media (min-width: 701px) and (max-width: 1500px) {
  .hero { background-position: 68% 76%; }
}
/* the gate composition: wordmark high, the doors resting on the path
   below — with the whole farm breathing in between */
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 7rem 1.4rem 3.4rem;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.hero-title { display: grid; justify-items: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero-logo {
  width: min(520px, 78vw);
  filter: drop-shadow(0 10px 28px rgba(60, 40, 5, .45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.wordmark {
  display: grid;
  justify-items: center;
  line-height: .92;
  filter: drop-shadow(0 6px 18px rgba(70, 45, 10, .4));
}
.wm-top {
  font-family: "Titan One", "Baloo 2", sans-serif;
  font-size: clamp(2.6rem, 8.5vw, 5rem);
  color: #fdf3d8;
  -webkit-text-stroke: 2px #4e6b33;
  text-shadow: 0 4px 0 #4e6b33, 0 8px 22px rgba(40, 50, 20, .45);
}
.wm-mid {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  color: var(--wheat-2);
  text-shadow: 0 2px 8px rgba(60, 40, 0, .55);
  margin: .2rem 0;
  text-transform: uppercase;
  letter-spacing: .35em;
}
.hero-line {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #fff8e8;
  text-shadow: 0 2px 12px rgba(50, 35, 5, .65);
  margin-top: .9rem;
}
.hero-actions { display: grid; justify-items: center; gap: 1.35rem; }

/* ── buttons & doors ──────────────────────────────── */
.btn {
  display: inline-block;
  padding: .95rem 2.2rem;
  border-radius: 999px;
  border: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn-sun {
  background: linear-gradient(180deg, var(--wheat-2), var(--wheat));
  color: #4e3a10;
  box-shadow: 0 8px 26px rgba(120, 85, 20, .5);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.04); } }
.doors { display: flex; gap: 1rem; }
.door {
  display: grid; justify-items: center; gap: .35rem;
  text-decoration: none;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: .92rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(40, 25, 0, .6);
}
.door-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #4e3a10;
  background: linear-gradient(180deg, #fff6dd, var(--wheat-2));
  box-shadow: 0 8px 22px rgba(50, 35, 5, .45);
  transition: transform .18s ease;
}
.door-icon svg { width: 28px; height: 28px; }
.door:hover .door-icon { transform: translateY(-4px) scale(1.08); }
.grownups-link {
  color: #fff;
  font-size: .85rem;
  text-decoration: none;
  background: rgba(60, 42, 15, .55);
  padding: .35rem .95rem;
  border-radius: 999px;
}
.grownups-link:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .doors { gap: .7rem; }
  .door-icon { width: 52px; height: 52px; }
}

/* ── the map ──────────────────────────────────────── */
.map-section { background: var(--paper); padding-bottom: 0; }
.map-wrap { position: relative; width: 100%; }
.map-art {
  width: 100%;
  height: 100vh;
  min-height: 540px;
  object-fit: cover;
  object-position: center;
}
.spot {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  background: none; border: 0; cursor: pointer;
  display: grid; justify-items: center; gap: .4rem;
  z-index: 2;
}
.spot .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8e3, var(--wheat));
  box-shadow: 0 0 0 6px rgba(243, 212, 137, .38), 0 0 22px 6px rgba(255, 224, 150, .85);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 12px rgba(243, 212, 137, .2), 0 0 30px 10px rgba(255, 224, 150, .95); }
}
.spot .tag {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: #fff;
  background: rgba(58, 40, 14, .85);
  padding: .32rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s, transform .18s;
}
.spot:hover .tag, .spot:focus .tag { opacity: 1; transform: none; }
@media (max-width: 700px) { .spot .tag { opacity: 1; font-size: .62rem; } }

/* ── bands ────────────────────────────────────────── */
.band { padding: 1rem 1.4rem 4.4rem; }
.band-paper { background: var(--paper); }
.band-meadow {
  background: linear-gradient(180deg, var(--paper) 0%, #eef3dd 50%, var(--paper) 100%);
}
.band-barn {
  background: linear-gradient(180deg, #7c2c1d 0%, var(--barn) 100%);
  color: #fdf0e2;
}
.band-barn .h-farm { color: var(--wheat-2); }
.band-sunset {
  background: linear-gradient(180deg, #f6dfae 0%, #f0c983 55%, #e9b76a 100%);
  text-align: center;
}
.band-sunset .h-farm { color: #6b4a1a; }

/* ── cast ─────────────────────────────────────────── */
.cast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.3rem;
  max-width: 1150px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  box-shadow: 0 10px 34px rgba(90, 60, 20, .16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 18px 44px rgba(90, 60, 20, .28); }
.card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.card h3 { padding: .8rem 1rem 0; font-size: 1.3rem; }
.card p { padding: .3rem 1rem 1.1rem; font-size: .93rem; opacity: .85; }

/* ── splits & figures ─────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.6rem;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 1rem;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split .h-farm { text-align: left; padding-top: 1.4rem; }
.split p { margin: .8rem 0; line-height: 1.65; }
.film-figure img, .book-figure img {
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(40, 20, 5, .45);
}
.book-figure img { transform: rotate(-1.6deg); }
.film-figure figcaption { font-size: .85rem; opacity: .75; margin-top: .6rem; text-align: center; }
.soon-badge {
  display: inline-block;
  background: linear-gradient(180deg, var(--wheat-2), var(--wheat));
  color: #4e3a10;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  font-size: .95rem;
}
.fine { font-size: .92rem; opacity: .8; }

/* ── shelf ────────────────────────────────────────── */
.shelf-title { margin-top: 1.6rem; font-size: 1.15rem; }
.shelf {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .55rem;
  margin-top: .8rem;
}
.shelf li {
  background: #fff;
  border-radius: 12px;
  padding: .55rem .8rem;
  font-size: .84rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(90, 60, 20, .1);
}
.shelf li span { display: block; font-size: .72rem; font-weight: 400; opacity: .6; }

/* ── learning pillars ─────────────────────────────── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
  max-width: 1080px;
  margin: 0 auto;
}
.pillar {
  background: rgba(255, 252, 240, .92);
  border-radius: 18px;
  padding: 1.5rem 1.3rem;
  box-shadow: 0 10px 28px rgba(120, 80, 20, .18);
}
.pillar-icon { font-size: 1.9rem; display: block; margin-bottom: .4rem; }
.pillar h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.pillar p { font-size: .93rem; line-height: 1.55; opacity: .88; }
.motto {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: #6b4a1a;
  max-width: 34rem;
  margin: 2.4rem auto 0;
}

/* ── grown-ups ────────────────────────────────────── */
.grown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem;
  max-width: 1080px;
  margin: 1rem auto 0;
}
.grown-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 10px 30px rgba(90, 60, 20, .12);
}
.grown-card h3 { margin-bottom: .5rem; font-size: 1.12rem; }
.grown-card p { font-size: .95rem; line-height: 1.6; opacity: .88; }

/* ── footer ───────────────────────────────────────── */
.site-footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 3.2rem 1rem 2.6rem;
}
.foot-mark { font-family: "Futura", "Nunito", sans-serif; font-weight: 300; letter-spacing: .35em; font-size: 1.05rem; }
.foot-fine { opacity: .5; font-size: .8rem; margin-top: .9rem; }

/* ── modal ────────────────────────────────────────── */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(40, 28, 8, .7);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
}
.modal-card {
  background: var(--paper);
  border-radius: 22px;
  max-width: 24rem;
  width: 100%;
  padding: 1.2rem 1.2rem 1.6rem;
  text-align: center;
  position: relative;
  animation: pop .28s ease;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.modal-card img { border-radius: 16px; margin-bottom: .8rem; }
.modal-card h3 { font-size: 1.5rem; }
.modal-card p { margin-top: .4rem; line-height: 1.6; }
.modal-x {
  position: absolute; top: .7rem; right: .8rem;
  border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--ink);
}

/* ── mobile ───────────────────────────────────────── */
@media (max-width: 700px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(20,30,50,0) 60%, rgba(60,45,20,.3) 100%),
      url("assets/hero-p.jpg") center 82% / cover no-repeat;
  }
  .hero-inner { justify-content: flex-start; gap: 1.2rem; padding-top: 1.6rem; }
  .grownups-link {
    position: absolute;
    top: .9rem;
    right: .9rem;
    font-size: .78rem;
  }
  .map-art { height: auto; min-height: 0; }
  .spot { left: var(--xm, var(--x)); top: var(--ym, var(--y)); }
  .spot .dot { width: 26px; height: 26px; }
  .spot .tag { white-space: normal; max-width: 40vw; text-align: center;
               font-size: .6rem; padding: .22rem .5rem; }
}
.loc-row { display: none; }
@media (max-width: 700px) {
  .loc-row {
    display: flex;
    gap: .8rem;
    overflow-x: auto;
    padding: 1rem 1.2rem 1.6rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background: var(--paper);
  }
  .loc-card {
    flex: 0 0 46vw;
    scroll-snap-align: center;
    border: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(90, 60, 20, .16);
    font-family: "Baloo 2", sans-serif;
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink);
  }
  .loc-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
  .loc-card span { display: block; padding: .55rem .5rem .7rem; }
}


/* ── the TigerWorks house footer (standing, all universe sites) ── */
.house-footer { color: #fff; padding: 3.6rem 1.6rem 2.8rem; }
.hf-inner { max-width: 1080px; margin: 0 auto; }
.hf-top { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; }
.hf-logo { width: min(190px, 44vw); filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
.hf-social { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.hf-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16); color: #fff;
  opacity: .85; cursor: default;
}
.hf-icon svg { width: 21px; height: 21px; }
.hf-subscribe {
  font-family: "Baloo 2", sans-serif; font-weight: 700;
  background: rgba(255,255,255,.16);
  padding: .6rem 1.3rem; border-radius: 999px;
  opacity: .85; cursor: default; font-size: .95rem;
}
.hf-studio { margin-top: 2.6rem; }
.hf-mark { font-family: "Futura", "Nunito", sans-serif; font-weight: 400; letter-spacing: .3em; font-size: 1rem; opacity: .95; }
.hf-legal { margin-top: 1.8rem; display: grid; gap: .55rem; }
.hf-legal p { font-size: .82rem; opacity: .66; }
.hf-legal a { color: inherit; }
.hf-links { margin-top: 1.8rem; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.hf-links a {
  color: #fff; text-decoration: none;
  font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: .9rem;
}
.hf-links a:hover { text-decoration: underline; }

.hf-freddie { background: linear-gradient(180deg, #3c4f2c 0%, #2b3a1f 100%); }
