/* Tree Fort Games — shared styles for both landing page versions */
:root {
  --bg: #14110f;
  --bg-glow: #1f2a1c;
  --ink: #efe6d2;
  --muted: #a89f8c;
  --accent: #c94a5a;
  --rule: rgba(239, 230, 210, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 60% at 50% 35%, var(--bg-glow) 0%, transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  padding: 4rem 1rem 3rem;
  text-align: center;
}

h1 { margin: 0; line-height: 0; }

.studio-logo { width: clamp(150px, 32vw, 200px); height: auto; }

.tagline {
  margin: 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: 1.125rem;
  font-style: italic;
}

/* Featured-game layout: smaller studio mark + game logo */
.studio-logo--small { width: clamp(110px, 22vw, 140px); }

.feature { display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.feature-label {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.game-logo { width: min(640px, 100%); height: auto; }

.game-name { /* visually hidden full title for screen readers & search */
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  min-width: min(320px, 100%);
}

.contact h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover { color: #fff; text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.email { font-size: 1.25rem; overflow-wrap: anywhere; }

footer {
  padding: 1.5rem 1rem 2rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
footer p { margin: 0 auto; max-width: 70ch; }
footer p + p { margin-top: 0.4rem; }

@media (prefers-reduced-motion: reduce) { a { transition: none; } }
