/* One stylesheet for every page of the site: the game's parchment-and-ink
   colours, no web fonts (loading a font from another host would hand every
   reader's address to it), no script. Mobile first; breakpoints 40rem, 64rem. */
:root {
  --page: #f6f2e8;
  --ink: #2b2620;
  --muted: #6b6357;
  --rule: #ddd4c2;
  --accent: #2f6b4f;
  --panel: #ede6d6;
  --overlay: rgba(246, 242, 232, .82);
  --radius: 6px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #1c1a17; --ink: #ece6d8; --muted: #a79f90; --rule: #3a352d;
    --accent: #7cc4a0; --panel: #26231e; --overlay: rgba(28, 26, 23, .82); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #1c1a17; --ink: #ece6d8; --muted: #a79f90; --rule: #3a352d;
  --accent: #7cc4a0; --panel: #26231e; --overlay: rgba(28, 26, 23, .82); color-scheme: dark;
}
* { box-sizing: border-box; }
html { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 16px/1.6 var(--body);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
main { max-width: 42rem; margin: 0 auto; padding-block: 2.5rem 4rem; }
h1, h2 { font-family: var(--display); font-weight: 600; text-wrap: balance; line-height: 1.2; }
h1 { font-size: 2.1rem; margin: 0 0 .25rem; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 .5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
p, li { margin: .5rem 0; }
ul { padding-left: 1.25rem; }
.meta { color: var(--muted); font-size: .9rem; margin: 0; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.summary { background: var(--panel); border-radius: 6px; padding: 1rem 1.25rem; margin-top: 1.5rem; }
.summary p { margin: .35rem 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; color: var(--muted); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
code { font-size: .9em; }

/* ---- Shared layout contract (other pages build against these names) ---- */
img { max-width: 100%; height: auto; }
.wrap { max-width: 64rem; margin: 0 auto; }
.prose { max-width: 42rem; }
main.wrap { max-width: 64rem; }
main.wrap > .prose { margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--accent); color: var(--page); padding: .5rem .9rem; border-radius: var(--radius);
}
.skip:focus { top: calc(.5rem + env(safe-area-inset-top, 0px)); }

.site-header {
  max-width: 64rem; margin: 0 auto; padding-block: 1rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font-family: var(--display); font-weight: 600; font-size: 1.35rem; letter-spacing: .06em;
  color: var(--ink); text-decoration: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding-block: .35rem; }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.site-footer {
  max-width: 64rem; margin: 0 auto; padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer p { margin: .75rem 0 0; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: var(--panel); border-radius: 999px; padding: .1rem .6rem;
}

.btn {
  display: inline-block; background: var(--accent); color: var(--page); text-decoration: none;
  font-weight: 600; padding: .7rem 1.3rem; border-radius: var(--radius);
}
.btn:hover { filter: brightness(1.1); }
.soon {
  display: inline-block; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px;
  padding: .55rem 1.1rem; font-weight: 600; cursor: default;
}

.hero { display: grid; gap: 1.5rem; padding-block: 1.5rem 2.5rem; align-items: center; }
.hero__art { margin: 0; }
.hero__art img { display: block; width: 100%; height: auto; max-height: 30rem; object-fit: cover; border-radius: var(--radius); }
.hero__text h1 { font-size: 2.6rem; }
.hero__text p { margin: .75rem 0; }
.hero__text .btn, .hero__text .soon { margin: .25rem .5rem .25rem 0; }

.feature { display: grid; gap: 1.5rem; align-items: center; padding-block: 2rem; border-top: 1px solid var(--rule); }
.feature h2 { border-top: 0; padding-top: 0; margin-top: 0; }

.shot {
  margin: 0; width: 100%; max-width: 20rem; justify-self: center;
  border-radius: 1.5rem; overflow: hidden; background: var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.shot img { display: block; width: 100%; height: auto; }

.gallery {
  display: flex; gap: 1rem; overflow-x: auto; padding-block: .5rem 1rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.gallery .shot { flex: 0 0 min(72%, 15rem); scroll-snap-align: center; }
.gallery:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.houses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.houses li { margin: 0; text-align: center; background: var(--panel); border-radius: var(--radius); padding: 1rem .75rem; }
.houses img { display: block; margin: 0 auto .5rem; width: 6rem; height: auto; }

.faq details { border-bottom: 1px solid var(--rule); padding-block: .75rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq details p { margin: .5rem 0 0; }

@media (min-width: 40rem) {
  .hero { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding-block: 2.5rem 3rem; }
  .feature { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .feature--flip .shot { order: -1; }
  .shot { max-width: 18rem; }
  .gallery .shot { flex-basis: 14rem; }
}
@media (min-width: 64rem) {
  .hero__text h1 { font-size: 3.2rem; }
  .houses { grid-template-columns: repeat(4, 1fr); }
  .gallery .shot { flex-basis: 15rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
