/* Fairhaven Hollow website styles. No external fonts, no CDNs.
   Palette matches the game (game/data/ui_style.json). */
:root {
  --sky: #cfe6ef;
  --sky-deep: #8fc3e6;
  --cream: #f6ecd9;
  --cream-light: #fffaf0;
  --paper: #fdf7ea;
  --sage: #9cc58f;
  --sage-light: #b7d3a8;
  --sage-deep: #5e8a5a;
  --sun: #f5c45e;
  --clay: #c97b63;
  --text: #4a3c33;
  --text-soft: #6e5e51;
  --line: #e6d8bf;
  --radius: 18px;
  --shadow: 0 6px 18px rgba(90, 70, 50, 0.10);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
}

img, svg { max-width: 100%; }

a { color: var(--sage-deep); text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--cream-light); padding: 8px 14px; z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--sky);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.2px;
}
.brand svg { width: 44px; height: 32px; flex: none; }
.brand span, .nav a { white-space: nowrap; }
.nav { display: flex; gap: 16px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--text-soft); }
.nav a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--sky) 0%, #e3ece6 55%, var(--cream) 100%);
  text-align: center;
  padding: 36px 0 0;
  overflow: hidden;
}
.hero-clouds { display: block; margin: 0 auto -6px; width: 220px; height: auto; }
.hero h1 {
  margin: 8px 0 6px;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.5px;
}
.tagline {
  margin: 0 auto 18px; max-width: 34em;
  color: var(--text-soft); font-size: 1.1rem;
}
.pitch {
  margin: 0 auto 26px; max-width: 36em; font-size: 1.12rem;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sage); color: #2f3f2c;
  border: 2px solid #8ab47d;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem;
  box-shadow: var(--shadow);
}
.badge svg { width: 22px; height: 22px; flex: none; }
.hero-note { margin: 12px 0 0; color: var(--text-soft); font-size: 0.95rem; }
.hills { display: block; width: 100%; height: 90px; margin-top: 28px; }

/* ---------- Sections ---------- */
section { padding: 44px 0; }
h2 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 14px; }
h3 { font-size: 1.2rem; margin: 0 0 6px; }

.features {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 18px;
}
.card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--text-soft); }
.card .icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 10px;
}
.icon-sky { background: #dcecf3; }
.icon-sage { background: #e2eedb; }
.icon-sun { background: #fbebc6; }
.card .icon svg { width: 28px; height: 28px; }

/* ---------- Screenshots ---------- */
.shots-section { background: #eef3ea; }
.shots {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0; padding: 0; list-style: none;
}
.shots figure { margin: 0; text-align: center; }
.shots img {
  display: block; width: 100%; height: auto;
  border-radius: 20px; border: 3px solid var(--cream-light);
  box-shadow: var(--shadow); background: var(--sky);
}
.shots figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--text-soft); }
.proto-label {
  display: inline-block; font-size: 0.85rem; font-weight: 700;
  background: var(--cream-light); color: var(--clay);
  border: 1.5px dashed var(--clay); border-radius: 999px;
  padding: 2px 12px; margin-left: 6px; vertical-align: middle;
}

/* ---------- About ---------- */
.about-section { padding-bottom: 0; }
.about-box {
  margin: 0;
  background: #e3eff6; border: 2px solid #c3dcea;
  border-radius: var(--radius); padding: 22px 24px 18px;
  box-shadow: var(--shadow);
}
.about-box blockquote { margin: 0; }
.about-box blockquote p { margin: 0; font-size: 1.08rem; }
.about-box .signature {
  margin-top: 12px; text-align: right;
  font-weight: 700; color: var(--text-soft);
}

/* ---------- Contact ---------- */
.contact-box {
  background: var(--paper); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.contact-box p { margin: 0 0 8px; }
.email { font-weight: 700; font-size: 1.08rem; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sage-light);
  color: #33402f;
  padding: 26px 0 30px; font-size: 0.95rem;
}
.site-footer a { color: #2f4a2c; }
.site-footer p { margin: 4px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; font-weight: 700; }
.small { font-size: 0.85rem; opacity: 0.9; }

/* ---------- Privacy / text pages ---------- */
.page-head {
  background: linear-gradient(180deg, var(--sky) 0%, var(--cream) 100%);
  padding: 34px 0 18px;
}
.page-head h1 { margin: 0 0 6px; font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.15; }
.page-head p { margin: 0; color: var(--text-soft); }
.prose { padding-top: 18px; padding-bottom: 48px; }
.prose h2 { margin-top: 34px; font-size: 1.4rem; }
.prose h3 { margin-top: 20px; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.summary {
  background: #e7f1e2; border: 2px solid #c9dfbf;
  border-radius: var(--radius); padding: 16px 20px; margin: 18px 0 8px;
}
.summary h2 { margin-top: 0; font-size: 1.2rem; }
.summary ul { margin: 0; }
.future {
  background: #e3eff6; border: 2px solid #c3dcea;
  border-radius: var(--radius); padding: 4px 20px 12px; margin-top: 30px;
}
.future h2 { margin-top: 18px; }
.toc { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 20px; }
.toc ol { margin: 6px 0; padding-left: 1.3em; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding-top: 60px; padding-bottom: 40px; }
.lost svg { width: 180px; height: auto; }
.button {
  display: inline-block; margin-top: 10px;
  background: var(--sage); color: #2f3f2c; font-weight: 700;
  border: 2px solid #8ab47d; border-radius: 999px;
  padding: 10px 22px; text-decoration: none;
}
.button:hover { background: #a9cf9c; color: #2f3f2c; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 12px; font-size: 0.9rem; }
  .shots {
    grid-template-columns: repeat(3, 72%);
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 10px; gap: 14px;
  }
  .shots li { scroll-snap-align: center; }
  section { padding: 34px 0; }
}
@media (max-width: 520px) {
  .nav a.nav-optional { display: none; }
}
@media (max-width: 340px) {
  .brand span { font-size: 1rem; }
  .nav { gap: 10px; }
}

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