/* lands/css/lands.css - THE LANDS' entry page (2026-09-28). The village's colours (index.html :root) at dusk:
 * the Farm's painted sky, its floating plots drifting in it, gold for the name, parchment for the words. System fonts
 * only (the site's CSP allows no font host), Georgia for the title as the main game's crest lockups use a serif. */
:root {
  --ink: #140F22;
  --night: #1B1430;
  --sky-indigo: #241A3D;
  --panel: rgba(22, 16, 38, 0.74);
  --panel-edge: rgba(245, 194, 66, 0.26);
  --gold: #F5C242;
  --gold-soft: #FFD98A;
  --parchment: #FBF3E7;
  --lavender: #C9A8F5;
  --muted: #A99BC9;
  --candy-pink: #FF8FC7;
  --mint: #7FE0D6;
  --body-font: 'Trebuchet MS', 'Lucida Grande', Verdana, sans-serif;
  --title-font: Georgia, 'Times New Roman', serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--body-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }

/* ---- the hero: the painting and the promise ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: flex-end;
  padding: var(--gutter);
  padding-bottom: clamp(32px, 7vh, 80px);
  overflow: hidden;
  isolation: isolate;
}
.sky {
  position: absolute; inset: 0; z-index: -3;
  background: var(--sky-indigo) url(../../assets/backgrounds/painted/web/room-farm-sky.jpg) center 30% / cover no-repeat;
  animation: sky-drift 60s ease-in-out infinite alternate;
}
.veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 15, 34, 0.9) 0%, rgba(20, 15, 34, 0.55) 34%, rgba(20, 15, 34, 0) 62%),
    linear-gradient(180deg, rgba(20, 15, 34, 0) 55%, var(--ink) 100%);
}

/* The floating plots: the Farm screen's own renders, set on a loose arc and breathing up and down. */
.isles {
  position: absolute; z-index: -2;
  right: max(-40px, -3vw); top: 6%;
  width: min(64vw, 940px); height: 82%;
}
.isle { position: absolute; animation: bob 7s ease-in-out infinite; filter: drop-shadow(0 26px 30px rgba(8, 4, 20, 0.55)); }
.isle .plot { display: block; width: 100%; height: auto; }
.isle .prop { position: absolute; width: 46%; bottom: 44%; }
.isle .prop--l { left: 10%; }
.isle .prop--r { right: 8%; }
.isle .prop--nap { width: 40%; right: 2%; left: auto; bottom: 38%; }
.isle--a { width: 24%; left: 6%;  top: 46%; animation-delay: -1.2s; }
.isle--b { width: 21%; left: 30%; top: 10%; animation-delay: -3.4s; animation-duration: 8s; }
.isle--c { width: 31%; left: 38%; top: 40%; animation-delay: 0s; animation-duration: 9s; }
.isle--d { width: 23%; left: 70%; top: 18%; animation-delay: -5s; }
.isle--e { width: 19%; left: 76%; top: 60%; animation-delay: -2.2s; animation-duration: 7.6s; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-0.4deg); } 50% { transform: translateY(-14px) rotate(0.4deg); } }
@keyframes sky-drift { from { background-position: center 26%; } to { background-position: center 36%; } }
@keyframes glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.copy { position: relative; max-width: 560px; }
.kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 6px; font-size: 13px; font-weight: bold; letter-spacing: 0.28em; text-transform: uppercase; color: var(--lavender);
}
.kicker .crest { width: 30px; height: 30px; }
h1 {
  margin: 0; font-family: var(--title-font); font-weight: bold;
  font-size: clamp(56px, 9vw, 116px); line-height: 0.95; letter-spacing: 0.01em;
  color: var(--gold);
  text-shadow: 0 2px 0 #7A4E12, 0 8px 28px rgba(245, 160, 60, 0.35), 0 0 60px rgba(245, 194, 66, 0.18);
}
.tale { margin: 8px 0 18px; font-family: var(--title-font); font-style: italic; font-size: clamp(17px, 2vw, 22px); color: var(--gold-soft); }
.blurb { margin: 0 0 18px; font-size: clamp(15px, 1.35vw, 17px); color: var(--parchment); max-width: 50ch; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px; padding: 8px 14px; border-radius: 999px;
  background: rgba(20, 15, 34, 0.7); border: 1px solid var(--panel-edge);
  font-size: 13px; letter-spacing: 0.04em; color: var(--gold-soft);
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: glow 2.4s ease-in-out infinite; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px;
  border-radius: 10px; font: bold 15px var(--body-font); letter-spacing: 0.03em; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--home { background: var(--gold); color: var(--ink); border: 0; box-shadow: 0 6px 20px rgba(245, 194, 66, 0.3); }
.btn--home:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(245, 194, 66, 0.42); }
.btn--ghost { background: rgba(20, 15, 34, 0.6); color: var(--parchment); border: 1px solid rgba(201, 168, 245, 0.55); }
.btn--ghost:hover { background: rgba(60, 42, 96, 0.7); }
.btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

/* ---- the ledger: who, and the candy ------------------------------------------------------------------------- */
.ledger, .waits, .foot { padding-left: var(--gutter); padding-right: var(--gutter); }
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.card { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 14px; padding: 18px 20px; backdrop-filter: blur(4px); }
.card .label { margin: 0; font-size: 12px; font-weight: bold; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.card .value { margin: 4px 0 6px; font-family: var(--title-font); font-size: 26px; color: var(--parchment); overflow-wrap: anywhere; }
.card .value--candy { display: flex; align-items: center; gap: 10px; color: var(--gold); font-variant-numeric: tabular-nums; }
.card .value--candy img { width: 30px; height: 30px; }
.card .note { margin: 0; font-size: 13px; color: var(--muted); }

/* ---- what waits ----------------------------------------------------------------------------------------------- */
.waits { max-width: 1100px; margin: 56px auto 0; }
.waits h2 { margin: 0 0 18px; font-family: var(--title-font); font-size: clamp(24px, 3vw, 32px); color: var(--gold-soft); }
.waits .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.waits .card { display: flex; flex-direction: column; }
.waits .art { width: 96px; height: 96px; object-fit: contain; margin: -6px 0 6px -6px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)); }
.waits h3 { margin: 0 0 6px; font-size: 17px; color: var(--parchment); }
.waits p { margin: 0; font-size: 14px; color: #DCD0EE; }
.waits .meanwhile { margin: 22px 0 0; font-size: 15px; color: var(--lavender); }
.waits .meanwhile strong { color: var(--gold); }

.foot { max-width: 1100px; margin: 56px auto 0; padding-bottom: 36px; }
.foot p { margin: 0; font-size: 12px; color: #7D7098; border-top: 1px solid rgba(201, 168, 245, 0.15); padding-top: 16px; }

/* ---- phones and narrow windows -------------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; min-height: auto; padding-top: 0; }
  .isles { position: relative; right: auto; top: auto; width: 100%; height: auto; aspect-ratio: 16 / 11; margin: 8px 0 -10px; }
  .veil { background: linear-gradient(180deg, rgba(20, 15, 34, 0) 30%, rgba(20, 15, 34, 0.82) 62%, var(--ink) 100%); }
  .ledger, .waits .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .isle, .sky, .status .dot { animation: none; }
}
