/* Presentation-layer styles only.
   Design tokens live in :root so a later theme or app shell can reuse them.
   This layer must not assume a specific backend service. */

:root {
  --bg: #f4f1eb;
  --bg-elev: #fffcf7;
  --ink: #1b1916;
  --muted: #5f584f;
  --line: #d9d2c8;
  --accent: #1f4f46;
  --accent-hover: #163932;
  --accent-soft: #e4eeeb;
  --tap: 44px;
  --radius: 16px;
  --max: 40rem;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 480px at 12% -10%, #e8efe9 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

/* Mobile-first: every interactive control is at least 44px. */
a,
button,
.btn {
  min-height: var(--tap);
  min-width: var(--tap);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #f7faf8;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
}

.btn--ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

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

.site-header {
  padding: 1.25rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: var(--tap);
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 9px;
}

.brand__name {
  font-size: 1.05rem;
}

main {
  flex: 1;
  padding: 2.5rem 0 3rem;
}

.hero {
  padding-bottom: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin: 0 0 1rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 8vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.panel {
  margin-top: 2rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
}

/* 404 */
.not-found h1 {
  font-size: clamp(2rem, 7vw, 3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .wrap {
    width: min(100% - 3.5rem, var(--max));
  }

  main {
    padding-top: 4.25rem;
  }

  .panel {
    padding: 1.6rem 1.6rem;
  }
}
