/*
 * Keykibotos's own tokens (ADR-001): the old site's orange as the one accent,
 * the system's fonts (no web font to download, none to license), light and
 * dark from the visitor's setting. Phone width first.
 */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1c1b1a;
  --muted: #5f5b57;
  --line: #e6e2dd;
  --accent: #c94a14;
  --accent-text: #ffffff;
  --radius: 14px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --surface: #1d1c1b;
    --text: #f1eeea;
    --muted: #b0aaa3;
    --line: #34312e;
    --accent: #fb6930;
    --accent-text: #141312;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main,
.footer {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 40rem) {
  main,
  .footer {
    padding: 0 32px;
  }
}

h1,
h2 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}

h2 {
  font-size: 1.375rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.hero {
  padding: 4rem 0 2.5rem;
}

@media (min-width: 40rem) {
  .hero {
    padding: 6rem 0 3rem;
  }
}

.eyebrow {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.lede {
  color: var(--muted);
  font-size: 1.25rem;
  max-width: 38rem;
}

.doors {
  display: grid;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .doors {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.door {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.door p {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  padding: 0.2rem 0.75rem;
}

.button {
  margin-top: auto;
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.08);
}

.about,
.contact {
  max-width: 40rem;
  padding: 3rem 0 0;
}

.signature {
  color: var(--muted);
  font-style: italic;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.footer p {
  margin: 0 0 0.25rem;
}
