/* Couch Cryptid — studio site
   Lamplight theme: a living room at night with one lamp on. */

:root {
  --night: #212123;      /* header, footer (matches the logo image background) */
  --lamp: #2B2621;       /* page ground */
  --teal: #2F5D5A;       /* the couch */
  --cream: #F2E6CF;      /* main text */
  --amber: #F2A03D;      /* headings, accents, the eyes */
  --text-soft: #D9CFBA;
  --text-muted: #CDC3AF;
  --text-faint: #B3A891;
  --rule: rgba(242, 230, 207, 0.25);

  /* Ashes of Eden card uses the game's own palette */
  --soot: #1A1D19;
  --moss-2: #2E352B;
  --bone: #E7E1D3;
  --lichen: #A9B98F;
  --ember: #EE9B3A;

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Karla', system-ui, sans-serif;
  --font-stencil: 'Big Shoulders Stencil Display', 'Fredoka', sans-serif;

  --wrap: 1200px;
  --gutter: 32px;
  --radius-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--lamp);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cream); text-underline-offset: 6px; text-decoration-color: var(--amber); }
a:hover { color: #FFFFFF; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--cream); color: #1E1F21; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--night); }

.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-top: 22px; padding-bottom: 22px;
}
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.01em; }

.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 17px; font-weight: 500; }
.nav-links .pill:hover { text-decoration: none; background: rgba(242, 230, 207, 0.08); }

.pill {
  display: inline-flex; align-items: center; padding: 10px 18px;
  border: 2px solid var(--cream); border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px;
  padding-top: 40px; padding-bottom: 72px;
}
.hero-text { flex: 1 1 440px; min-width: 0; }
.hero-art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 520px; }

.hero h1 { font-weight: 700; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.01em; }
.hero .lede { margin-top: 28px; font-size: 20px; max-width: 34em; color: var(--text-soft); }

.actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.btn {
  display: inline-block; font-weight: 700; font-size: 18px; padding: 15px 26px;
  border-radius: 999px; text-decoration: none; transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn-cream { background: var(--cream); color: #1E1F21; }
.btn-cream:hover { color: #1E1F21; }
.btn-ember { background: var(--ember); color: #1D150B; font-size: 17px; padding: 14px 24px; }
.btn-ember:hover { color: #1D150B; }

.text-link { font-weight: 500; font-size: 18px; }

/* ---------- Sections ---------- */
.section { padding-top: 80px; padding-bottom: 40px; }
.section:first-of-type { padding-top: 96px; }

.section-title { font-weight: 700; font-size: clamp(34px, 4vw, 44px); color: var(--amber); }
.section-intro { margin-top: 12px; font-size: 19px; max-width: 36em; color: var(--text-muted); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.section-head > a { font-weight: 700; font-size: 17px; }

/* ---------- Game card ---------- */
.game-card {
  margin-top: 40px; background: var(--soot); color: var(--bone);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-wrap: wrap;
}
.game-art {
  flex: 1 1 520px; min-width: 0; min-height: 380px; background: var(--moss-2);
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.art-placeholder {
  font-size: 15px; color: #A3A596; text-align: center;
  border: 1px dashed #5B6253; padding: 20px 24px; border-radius: 12px;
}
.game-info { flex: 1 1 400px; min-width: 0; padding: 48px 48px 52px; display: flex; flex-direction: column; gap: 18px; }
.game-info h3 { font-family: var(--font-stencil); font-weight: 800; font-size: clamp(48px, 6vw, 64px); line-height: 0.9; }
.game-sub { font-weight: 700; color: var(--lichen); }
.game-desc { line-height: 1.6; color: #D2CCBE; }
.game-meta { font-size: 16px; color: #A3A596; }
.game-card .actions { margin-top: 8px; gap: 14px 24px; }
.game-card a:not(.btn) { color: var(--bone); font-weight: 500; font-size: 17px; }

/* ---------- Sightings list ---------- */
.sightings { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--rule); }
.sightings li {
  border-bottom: 2px solid var(--rule); padding: 28px 0;
  display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: baseline;
}
.sighting-num { flex: 0 0 180px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--amber); }
.sighting-num time { display: block; font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--text-faint); }
.sighting-body { flex: 1 1 420px; min-width: 0; }
.sighting-body h3 { font-weight: 600; font-size: 26px; line-height: 1.25; }
.sighting-body h3 a { text-decoration: none; }
.sighting-body h3 a:hover { text-decoration: underline; }
.sighting-body p { margin-top: 8px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }

/* ---------- About + press ---------- */
.about { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-bottom: 112px; }
.about-text { flex: 2 1 520px; min-width: 0; }
.about-text p { margin-top: 20px; font-size: 20px; line-height: 1.6; max-width: 34em; }
.about-text p + p { margin-top: 16px; }

.press-card {
  flex: 1 1 300px; min-width: 0; align-self: flex-start;
  background: var(--teal); border-radius: var(--radius-lg); padding: 36px;
}
.press-card h3 { font-weight: 600; font-size: 26px; }
.press-card p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: #E4DAC4; }
.press-links { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 17px; font-weight: 700; }

/* ---------- Article (single sighting) ---------- */
.article { max-width: 760px; padding-top: 72px; padding-bottom: 112px; }
.article .eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--amber); }
.article .eyebrow time { color: var(--text-faint); font-family: var(--font-body); font-weight: 500; font-size: 15px; margin-left: 12px; }
.article h1 { margin-top: 12px; font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; }
.article .prose { margin-top: 36px; }
.article .prose p, .article .prose ul, .article .prose ol { margin: 0 0 22px; font-size: 19px; line-height: 1.7; color: var(--text-soft); }
.article .prose h2 { margin: 44px 0 14px; font-size: 30px; color: var(--amber); }
.article .prose img { border-radius: 16px; margin: 32px 0; }
.back-link { display: inline-block; margin-top: 40px; font-weight: 700; }

/* ---------- 404 ---------- */
.not-found { padding-top: 96px; padding-bottom: 140px; text-align: center; }
.not-found h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1; }
.not-found p { margin: 20px auto 0; max-width: 30em; font-size: 20px; color: var(--text-soft); }
.not-found .actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--text-soft); }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px;
  padding-top: 48px; padding-bottom: 48px; font-size: 16px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand strong { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--cream); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .nav-links { gap: 6px 20px; font-size: 16px; }
  .hero { padding-top: 16px; padding-bottom: 56px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 340px; }
  .game-art { min-height: 220px; }
  .game-info { padding: 32px 24px 36px; }
  .sighting-num { flex-basis: 100%; }
  .press-card { padding: 28px; }
}
