/* AskJASP chrome — fonts, tokens, header, footer, buttons, 404. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-sans-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/dm-sans-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/geist-sans-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Patrick Hand";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/patrick-hand-400-normal.woff2") format("woff2");
}

:root {
  --surface: #f9f8f6;
  --surface-100: #f2f0ec;
  --surface-200: #e8e6e2;
  --surface-300: #d4d2ce;
  --ink: #1a1a1a;
  --ink-600: #3a3a3a;
  --ink-400: #6a6a6a;
  --ink-300: #8a8a8a;
  --accent-blue: #315c8c;
  --accent-coral: #bd5b48;
  --accent-green: #276035;
  --soft-blue: #dce8f2;
  --soft-coral: #f5dfd8;
  --radius: 14px;
  --radius-pill: 999px;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Geist", var(--font-body);
  --font-hand: "Patrick Hand", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
}
body > main { flex: 1 0 auto; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-weight: 500;
}
.skip-link:focus { left: 0.75rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(249, 248, 246, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.brand-name span:last-child { color: var(--ink-400); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-400);
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.25s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .btn::after { display: none; }

.italic { font-style: italic; color: var(--ink-400); }
.hl { color: var(--accent-coral); font-style: italic; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn svg { width: 0.95rem; height: 0.95rem; flex: none; }
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: #2a2a2a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}
.btn-coral {
  background: var(--accent-coral);
  color: #fff;
  border-color: var(--accent-coral);
}
.btn-coral:hover:not(:disabled) {
  background: #a84d3d;
  border-color: #a84d3d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(189, 91, 72, 0.25);
}
.btn-outline {
  border-color: var(--surface-300);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
  transform: translateY(-2px);
}

.plink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: gap 0.2s;
}
.plink:hover { gap: 0.9rem; }
.plink svg { color: var(--accent-coral); }

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.hand {
  font-family: var(--font-hand);
  font-size: 1.08em;
  letter-spacing: 0;
  color: var(--accent-blue);
}

.not-found {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0 4.5rem;
  text-align: center;
}
.not-found__inner {
  width: min(28rem, calc(100% - 2.5rem));
  margin-inline: auto;
}
.not-found__code {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.not-found__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--ink);
}
.not-found__text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--ink-400);
  line-height: 1.55;
}
.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.site-footer {
  background: var(--ink);
  color: var(--ink-300);
  margin-top: auto;
}
.footer-accent {
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
}
.footer-inner { padding: 3rem 0 2rem; }
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.75rem; }
.site-footer .footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.site-footer .footer-wordmark > span {
  color: rgba(255, 255, 255, 0.55);
}
.site-footer p { margin: 0; font-size: 0.9rem; max-width: 22rem; line-height: 1.6; }
.site-footer a {
  color: var(--ink-300);
  text-decoration: none;
  font-size: 0.92rem;
}
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: rgba(170,170,170,0.75);
}
.footer-bottom a {
  color: inherit;
}
.footer-bottom a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; box-shadow: none; }
}
