/* ————————————————————————————————————————
   KETO.FAMILY — the warm kitchen table
   ———————————————————————————————————————— */

:root {
  --bg: #FAF4EA;
  --card: #FFFDF8;
  --line: #E7DBC6;
  --ink: #33291D;
  --muted: #7A6E5C;
  --tomato: #D3543A;
  --oak: #A9752F;
  --leaf: #4E7A45;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(85% 55% at 50% -8%, #F4E8D2, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--tomato); color: #fff; }

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

:focus-visible {
  outline: 2px solid var(--leaf);
  outline-offset: 3px;
  border-radius: 6px;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span { color: var(--tomato); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 26px);
  font-size: 13.5px;
  font-weight: 600;
}

.site-header nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.site-header nav a:hover { color: var(--ink); }

/* hero */

.hero { padding: clamp(76px, 12vh, 140px) var(--gutter) clamp(66px, 10vh, 110px); }

.kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tomato);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(46px, 9vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 12ch;
}

.hero h1 em { font-style: normal; color: var(--leaf); }

.lede {
  max-width: 58ch;
  margin-top: 26px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  color: #fff;
  background: var(--tomato);
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 28px;
  box-shadow: 0 12px 30px rgba(211, 84, 58, 0.28);
  transition: transform 0.15s, filter 0.2s;
}

.hero-cta:hover { filter: brightness(1.06); transform: translateY(-2px); }

/* sections */

.section {
  padding: clamp(60px, 9vh, 110px) var(--gutter);
  border-top: 1px solid var(--line);
}

.section-head { max-width: 800px; margin-bottom: clamp(28px, 4vh, 44px); }

.section-head h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-head p { color: var(--muted); max-width: 60ch; }

/* system steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--leaf);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 2px 8px rgba(51, 41, 29, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}

.step:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(51, 41, 29, 0.10); }

.step-no {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  background: var(--leaf);
  border-radius: 999px;
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}

.step p { color: var(--muted); font-size: 14.5px; }

/* templates */

.templates { display: grid; gap: 14px; max-width: 860px; }

.tmpl {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--tomato);
  border-radius: 0 14px 14px 0;
  padding: 20px 24px;
  transition: transform 0.2s;
}

.tmpl:hover { transform: translateX(4px); }

.tmpl h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  margin-bottom: 6px;
}

.tmpl p { color: var(--muted); font-size: 15px; }

.tmpl strong { color: var(--ink); }

/* diplomacy */

.rules { list-style: none; max-width: 780px; }

.rules li {
  padding: 16px 4px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 16px;
}

.rules li:first-child { border-top: 1px dashed var(--line); }

.rules strong { color: var(--ink); font-family: var(--display); font-weight: 700; }

.cta-card {
  max-width: 640px;
  margin-top: 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 12px 30px rgba(51, 41, 29, 0.08);
}

.cta-card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  margin-bottom: 8px;
}

.cta-card p { color: var(--muted); font-size: 15.5px; }

/* footer */

.site-footer {
  padding: 36px var(--gutter) 50px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links span { color: var(--muted); }
.footer-links a { text-decoration: none; color: var(--tomato); }
.footer-links a:hover { color: var(--ink); }

.site-footer > p { color: var(--muted); font-size: 13px; }

/* reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .step:hover, .tmpl:hover, .hero-cta:hover { transform: none; }
}

@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-header nav { flex-wrap: wrap; row-gap: 8px; }
}
