/* Adventure Club, Phase 0 landing.
   Gallery-white aesthetic. System fonts only.
   - Light + dark theme via prefers-color-scheme.
   - rem-based sizing so user font-size adjustments scale the whole page.
   - Visible :focus-visible outlines + skip-to-content link for keyboard users.
   - WCAG AA contrast at small sizes (--faint bumped from #8a857c to #6a6258).
   - Reduced-motion defended even though no animations exist today. */

:root {
  --bg: #f6f3ec;
  --text: #1a1814;
  --muted: #4a4640;
  --faint: #6a6258;
  --rule: #e3ddd0;
  --hero-bg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110c;
    --text: #f0ebe0;
    --muted: #c0b8a8;
    --faint: #8e8676;
    --rule: #2a251e;
    --hero-bg: #1a1712;
  }
}

* { box-sizing: border-box; }

html { font-size: 100%; } /* respect user-chosen base size; everything below is rem */

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "New York", "Hoefler Text", Georgia, serif;
  font-size: 1.0625rem;       /* 17px at 16px root, scales with user prefs */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--faint);
}
a:hover { text-decoration-color: var(--text); }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus {
  top: 0;
}

main {
  max-width: 40rem;            /* = 640px at default; scales with user font */
  margin: 0 auto;
  padding: 4rem 1.75rem 2rem;
}

main.center {
  /* root page: vertically centered on tall screens */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wordmark {
  font-size: 1.75rem;          /* 28px */
  font-weight: 500;
  letter-spacing: 0.005em;
  margin: 0 0 1.75rem;
}

.wordmark-small {
  font-size: 1.125rem;          /* 18px */
  font-weight: 500;
  margin: 0 0 2.5rem;
}
.wordmark-small a { text-decoration: none; }

.tagline {
  margin: 0 0 3.5rem;
  color: var(--muted);
}

.pitch p { color: var(--muted); margin: 0 0 1.125rem; }

.hero {
  margin: 0 0 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  background: var(--hero-bg);
}
.hero img { display: block; width: 100%; height: auto; }

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: 0.005em;
}
h2 { font-size: 1.375rem; margin: 3rem 0 1rem; }     /* 22px */
h3 { font-size: 1.125rem; margin: 2rem 0 0.5rem; }   /* 18px */

.label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6875rem;        /* 11px */
  color: var(--faint);
  margin: 0 0 0.5rem;
}

.artifacts {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.artifacts li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}
.artifacts li:last-child { border-bottom: 1px solid var(--rule); }
.artifacts .desc { color: var(--faint); font-size: 0.875rem; margin-left: 0.5rem; }

/* Pixel-elevated CTA for the prototype link (target of /for-jury/#prototype).
   Chunky retro button: hard offset shadow, no rounded corners, monospace face. */
#main-content > ul > li:nth-child(3) {
  padding: 1.25rem 0 1.5rem;
  scroll-margin-top: 2rem;
}
#main-content > ul > li:nth-child(3) > a {
  display: inline-block;
  padding: 0.55rem 1rem;
  margin-right: 0.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--bg);
  background: var(--text);
  border: 2px solid var(--text);
  border-radius: 0;
  box-shadow: 4px 4px 0 0 var(--text);
  image-rendering: pixelated;
  transition: transform 80ms steps(2, end), box-shadow 80ms steps(2, end);
}
#main-content > ul > li:nth-child(3) > a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 0 var(--text);
  text-decoration: none;
}
#main-content > ul > li:nth-child(3) > a:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 0 var(--text);
}
#main-content > ul > li:nth-child(3) > a:target {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

.manifesto ol { padding-left: 1.5rem; }
.manifesto li { margin: 0 0 1.25rem; }
.manifesto li strong { font-weight: 600; }

.refs {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.refs p { color: var(--muted); font-size: 0.875rem; margin: 0 0 0.75rem; }

.imprint {
  margin-top: 5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 0.75rem;          /* 12px */
  line-height: 1.5;
}
.imprint p { margin: 0 0 0.125rem; }
.imprint .label { margin-bottom: 0.375rem; color: var(--faint); }

.legal-links {
  margin-top: 5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--faint);
  font-size: 0.75rem;
  line-height: 1.5;
}
.legal-links a {
  color: inherit;
  margin: 0 0.75rem;
  text-decoration-color: var(--faint);
}

.jury-pill {
  display: table;                /* shrink-to-fit, behaves with auto margins */
  margin: 1rem auto 0;           /* sits near the top of body (outside main) */
  padding: 0.15rem 0.7rem;
  font-size: 0.325rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  background: var(--rule);
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
