/* Quail Egg Games: design tokens from approved logo palette */
:root {
  --ink: #111111;
  --shell: #ede4c8;
  --spot: #5c3a22;
  --beak: #f0963c;
  --white: #ffffff;
  --deep: #0a0a0a;
  --max: 42rem;
  --max-wide: 48rem;
  --radius: 1.25rem;
  --border: 3px solid var(--ink);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--shell);
  color: var(--ink);
  line-height: 1.55;
  font-size: 1.05rem;
}

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

a {
  color: var(--spot);
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--beak);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--beak);
  color: var(--ink);
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--shell) 92%, var(--white));
  border-bottom: var(--border);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 2.5rem;
  height: auto;
  flex-shrink: 0;
}

.wordmark {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}

.nav a:hover {
  color: var(--spot);
}

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
}

.hero__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.hero .logo-mark {
  width: 6.5rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero .lede {
  margin: 0;
  color: var(--spot);
  font-size: 1.15rem;
  max-width: 28rem;
}

.hero .sub {
  margin: 0;
  max-width: 30rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: var(--border);
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn--primary {
  background: var(--beak);
  color: var(--ink);
}

.btn--primary:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.btn--on-dark {
  background: var(--beak);
  color: var(--ink);
  border-color: var(--ink);
}

.btn--on-dark:hover {
  color: var(--ink);
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

/* Feature card (ATOL) */
.feature-card {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
  background: var(--deep);
  color: var(--white);
  border: 3px solid #222;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.feature-card h2 {
  margin: 0 0 0.35rem;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
}

.feature-card .status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--beak);
  margin-bottom: 0.75rem;
}

.feature-card .pitch {
  color: #e8dcc0;
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.feature-card ul {
  margin: 0 0 1.35rem;
  padding-left: 1.2rem;
  color: #d4c7a8;
}

.feature-card li {
  margin-bottom: 0.35rem;
}

.feature-card a:not(.btn) {
  color: var(--beak);
}

/* About / Contact */
.prose p {
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.prose .muted {
  color: var(--spot);
}

.contact-email {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--beak);
}

.contact-email:hover {
  color: var(--spot);
}

/* Footer */
.site-footer {
  border-top: var(--border);
  padding: 1.5rem 0 2.5rem;
  margin-top: 1rem;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--spot);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--spot);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}
