/* treefolktales.com. Colours follow Theme/Palette.swift; no outside fonts or scripts. */
:root {
  --midnight: #0e1e1c;
  --forest: #142b29;
  --moss: #1e463b;
  --bark: #3a261e;
  --amber: #f4b942;
  --lumen: #ffedb8;
  --text: #edf2eb;
  --quiet: #a6b6ad;
  --paper: #f7ecd4;
  --ink: #3a261e;
  --serif: "Hoefler Text", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--midnight);
  color: var(--text);
  font-family: var(--round);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--amber); text-underline-offset: 0.18em; }
a:hover { color: var(--lumen); }

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* Hero */
.hero { background: linear-gradient(#142b29, var(--midnight)); }

.hero-art { position: relative; }
.hero-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 42%; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, var(--midnight));
}

.hero-text { position: relative; margin-top: -5.5rem; padding-bottom: 2rem; text-align: center; }
.hero-text .logo { width: min(26rem, 92%); margin: 0 auto; }
.lede { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; margin: 0.5rem 0 0.75rem; }
.sub { color: var(--quiet); margin: 0 auto 1.5rem; max-width: 30rem; }

.soon {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.85rem 1.5rem;
  font-size: clamp(1.05rem, 4.6vw, 1.25rem);
  white-space: nowrap;
  border-radius: 999px;
  background: linear-gradient(#6b4024, #804f2e);
  border: 2px solid #c08a55;
  box-shadow: 0 3px 0 #45260f;
  color: var(--lumen);
  font-weight: 600;
}

@media (min-width: 54rem) {
  .hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .hero-art { order: 2; }
  .hero-art img {
    aspect-ratio: 1 / 1;
    object-position: 50% 38%;
    border-radius: 1.5rem;
    box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.45);
  }
  .hero-art::after { display: none; }
  .hero-text { margin-top: 0; padding-bottom: 0; }
  .hero-text .logo { width: min(34rem, 100%); }
  .lede { font-size: 2rem; }
  .sub { font-size: 1.15rem; max-width: 32rem; }
  .soon { font-size: 1.4rem; padding: 1rem 2.2rem; }
}

@media (max-width: 53.99rem) {
  .hero .wrap { padding: 0; }
  .hero-text { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* Inside the oak: the tour video beside what the game is */
.inside { padding: 1.5rem 0 2.5rem; }
.inside .wrap { display: grid; gap: 2rem; justify-items: center; }
.inside h2 { font-size: 1.9rem; margin-bottom: 1.25rem; text-align: center; }
.inside .blurb { margin: 0 auto 1.75rem; max-width: 34rem; color: var(--quiet); text-align: center; }
.tour {
  width: min(19rem, 80vw);
  height: auto;
  aspect-ratio: 664 / 1440;
  border-radius: 2rem;
  border: 0.35rem solid #b98250;
  background: #0a1615;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.5);
}
.features { display: grid; gap: 1.5rem; }
.features h3 { font-family: var(--serif); font-weight: 600; color: var(--amber); font-size: 1.35rem; line-height: 1.2; margin: 0 0 0.35rem; }
.features p { margin: 0; }

@media (min-width: 40rem) {
  .features { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
}

@media (min-width: 54rem) {
  .inside .wrap { grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: 3.5rem; }
  .inside h2 { font-size: 2.2rem; text-align: left; }
  .inside .blurb { margin-left: 0; text-align: left; max-width: none; }
}

/* Screenshots: one row that scrolls sideways */
.shots { padding: 0 0 2.5rem; }
.strip {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.strip li { flex: 0 0 auto; scroll-snap-align: center; }
.strip img { width: min(15rem, 62vw); border-radius: 1.1rem; box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.45); }

@media (min-width: 54rem) {
  .strip { padding-left: max(1.25rem, calc((100vw - 68rem) / 2 + 1.25rem)); padding-right: 2rem; gap: 1.25rem; }
  .strip img { width: 16.5rem; }
}

/* Tales band: paper, like the Book of Treefolk */
.tales { background: var(--paper); color: var(--ink); padding: 2.5rem 0 2.75rem; }
.tales h2 { font-size: 1.9rem; text-align: center; }
.tales p { max-width: 40rem; margin: 0.6rem auto 1.5rem; text-align: center; }
.plates { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.plates img { width: 100%; border-radius: 0.75rem; box-shadow: 0 0.4rem 1.2rem rgba(58, 38, 30, 0.25); }

@media (min-width: 40rem) {
  .plates { grid-template-columns: repeat(3, 1fr); }
}

/* Footer: where to write, and the small print */
footer { padding: 2.25rem 0 2.5rem; color: var(--quiet); text-align: center; }
footer p { margin: 0 auto; max-width: 44rem; }
footer .contact { color: var(--text); font-size: 1.1rem; margin-bottom: 1rem; }
footer .small { font-size: 0.85rem; }

/* Plain pages: privacy, not found */
.page { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 3.5rem; }
.page .home { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-size: 1.15rem; text-decoration: none; }
.page .home img { width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; }
.page h1 { font-size: 2rem; margin: 2rem 0 0.25rem; }
.page h2 { font-size: 1.35rem; color: var(--amber); margin: 2.25rem 0 0.5rem; }
.page .date { color: var(--quiet); font-style: italic; margin: 0 0 1.5rem; }
.page li { margin-bottom: 0.5rem; }
.page ul { padding-left: 1.25rem; }
