/* playsandpipers.com — one stylesheet, no build step.
   Palette: dry sand, wet sand, deep-sea navy, tide teal, crab red, foam. */
:root {
  --sand: #f4e7cf;
  --sand-2: #e9d7b6;
  --foam: #fff9ee;
  --ink: #172736;
  --ink-soft: #4b5865;
  --rule: #d5c3a2;
  --tide: #1b8aa3;
  --tide-deep: #0f5f73;
  --crab: #c8462b;
  --night: #0e1b28;
  --display: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --measure: 62ch;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--tide-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--crab); outline-offset: 3px; }

h1, h2 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* ── top bar ── */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 48px);
  color: var(--foam);
}
.top .brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foam);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.top nav { display: flex; gap: clamp(10px, 2vw, 22px); flex-wrap: wrap; justify-content: flex-end; }
.top nav a {
  color: var(--foam);
  text-decoration: none;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.top nav a:hover { text-decoration: underline; }
.top nav a.steam { padding: 4px 12px; border-radius: 999px; background: rgba(23,39,54,0.55); }
@media (max-width: 700px) { .top nav a.sec { display: none; } }

/* ── hero ── */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--night);
  color: var(--foam);
}
.hero-art { position: absolute; inset: 0; margin: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,27,40,0.35) 0%, rgba(14,27,40,0) 30%, rgba(14,27,40,0.15) 55%, rgba(14,27,40,0.85) 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(96px, 14vw, 140px) clamp(16px, 4vw, 48px) clamp(28px, 4vw, 48px);
  max-width: 980px;
}
.hero-copy .logo { width: min(520px, 78vw); height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45)); }
.hero-copy .tag {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  line-height: 1.25;
  margin: 18px 0 20px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
  text-wrap: balance;
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.2;
}
.button.steam { background: var(--crab); color: var(--foam); box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
.button.steam:hover { filter: brightness(1.08); }
.button.soon { background: rgba(255,249,238,0.16); color: var(--foam); border: 1px solid rgba(255,249,238,0.45); }
.hero-copy .when { margin: 16px 0 0; font-size: 0.95rem; opacity: 0.9; text-shadow: 0 1px 8px rgba(0,0,0,0.6); }

/* ── body sections ── */
main { display: flex; flex-direction: column; gap: clamp(48px, 8vw, 96px); padding: clamp(40px, 7vw, 80px) 0; }
main > section { padding: 0 clamp(16px, 4vw, 48px); }
.intro { max-width: var(--measure); margin: 0 auto; }
.intro p { margin: 0 0 1em; font-size: 1.1rem; }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.pillars article {
  background: var(--foam);
  border-top: 4px solid var(--tide);
  padding: 22px 24px 24px;
}
.pillars h2 { font-size: 1.35rem; }
.pillars p { margin: 0; color: var(--ink); }

.screens { max-width: 1120px; margin: 0 auto; width: 100%; }
.grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.grid a { display: block; position: relative; color: var(--foam); text-decoration: none; }
.grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night); }
.grid span {
  position: absolute; left: 0; bottom: 0;
  padding: 4px 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9rem;
  background: rgba(14,27,40,0.72);
}

.worlds { max-width: 760px; margin: 0 auto; width: 100%; }
.worlds ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.worlds li {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.worlds li b { font-family: var(--display); font-weight: 600; color: var(--tide-deep); }
.worlds .also { margin: 18px 0 0; color: var(--ink-soft); font-style: italic; }
@media (max-width: 520px) { .worlds li { grid-template-columns: 1fr; gap: 2px; } }

.trailer { max-width: 1120px; margin: 0 auto; width: 100%; }
.trailer video { width: 100%; aspect-ratio: 16 / 9; background: var(--night); }

.couch { max-width: var(--measure); margin: 0 auto; text-align: center; }
.couch .cta { justify-content: center; margin-top: 18px; }

/* ── documents (privacy, support) ── */
.doc { max-width: var(--measure); margin: 0 auto; padding: clamp(96px, 14vw, 140px) clamp(16px, 4vw, 48px) 60px; }
.doc header { margin-bottom: 28px; }
.doc header p { color: var(--ink-soft); margin: 4px 0 0; }
.doc h2 { font-size: 1.35rem; margin-top: 1.6em; }
.doc h3 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 1.3em 0 0.4em; }
.doc p, .doc li { margin: 0 0 0.8em; }
.doc ul { padding-left: 1.2em; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.doc dt { color: var(--ink-soft); }
.doc dd { margin: 0; }
.doc .contact {
  background: var(--foam);
  border-left: 4px solid var(--tide);
  padding: 16px 20px;
  margin: 20px 0;
}
.doc .contact p { margin: 0 0 6px; }
.top.doc-top { position: static; background: var(--night); }

footer {
  background: var(--night);
  color: var(--foam);
  padding: 32px clamp(16px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}
footer p { margin: 0; }
footer a { color: var(--foam); }
footer nav { display: flex; gap: 18px; }
