/* Recipe-keeper website — shared styles
   Brand from logo: warm orange, deep navy, cream. Handwritten accent in Caveat. */

:root {
  --paper: #F4EBDF;
  --surface: #FCF8F2;
  --orange: #F4661E;
  --orange-deep: #E2530E;
  --navy: #14233B;
  --navy-deep: #0E1B2E;
  --ink: #14233B;
  --taupe: #6B6256;
  --hairline: #E7DCC9;

  --radius-card: 20px;
  --radius-btn: 14px;
  --radius-input: 10px;

  --maxw: 1080px;

  --s4: 4px; --s8: 8px; --s16: 16px; --s24: 24px; --s32: 32px; --s48: 48px; --s64: 64px; --s96: 96px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s24); }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-deep); }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.01em; margin: 0; font-weight: 600; }
p { margin: 0 0 var(--s16); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: var(--s8); color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { display: block; }
.brand .wordmark { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; color: var(--navy); }
.nav { display: flex; gap: var(--s24); align-items: center; font-size: 16px; }
.nav a { color: var(--taupe); }
.nav a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s8);
  font-family: inherit; font-size: 17px; font-weight: 600;
  padding: 14px 24px; border-radius: var(--radius-btn);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--surface); }
.btn-primary:hover { background: var(--orange-deep); color: var(--surface); }
.btn-ghost { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-ghost:hover { background: rgba(244,102,30,0.07); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: var(--surface);
  font-weight: 600; font-size: 17px;
  padding: 15px 26px; border-radius: 999px; border: none; cursor: default;
  font-family: inherit;
  box-shadow: 0 10px 24px -12px rgba(244,102,30,0.7);
}
.soon .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--navy);
  box-shadow: 0 0 0 0 rgba(20,35,59,0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.soon-note { display: block; margin-top: var(--s16); color: var(--taupe); font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: var(--s96) 0 var(--s64); }
.hero h1 {
  font-size: clamp(40px, 6.5vw, 68px);
  font-weight: 600; max-width: 16ch; margin-bottom: var(--s24);
}
.hero .lede { font-size: clamp(19px, 2.2vw, 23px); color: var(--taupe); max-width: 46ch; margin-bottom: var(--s32); }

/* handwritten accent word with hand-drawn underline */
.scribble {
  position: relative; white-space: nowrap;
  font-family: 'Caveat', 'Fraunces', cursive;
  font-weight: 700; color: var(--orange);
  font-size: 1.12em; padding: 0 0.06em;
}
.scribble svg {
  position: absolute; left: -2%; bottom: -0.18em; width: 104%; height: 0.4em; overflow: visible;
}
.scribble svg path {
  fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round;
}

/* ---------- Sections ---------- */
.section { padding: var(--s64) 0; }
.eyebrow { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); font-weight: 600; margin-bottom: var(--s16); }
.section h2 { font-size: clamp(28px, 4vw, 40px); max-width: 18ch; margin-bottom: var(--s48); }

/* steps: a real 3-part sequence, so numbering is meaningful */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s24); }
.step {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: var(--s32);
}
.step .num {
  font-size: 15px; font-weight: 600; color: var(--orange);
  border: 1px solid var(--orange); border-radius: 999px;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s16);
}
.step h3 { font-size: 21px; margin-bottom: var(--s8); color: var(--navy); }
.step p { color: var(--taupe); font-size: 16px; margin: 0; }

/* features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s24); }
.feature {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: var(--s32);
}
.feature h3 { font-size: 20px; margin-bottom: var(--s8); color: var(--navy); }
.feature p { color: var(--taupe); font-size: 16px; margin: 0; }

/* navy band */
.band {
  background: var(--navy); color: var(--surface);
  border-radius: var(--radius-card); padding: var(--s64) var(--s48);
  text-align: center;
}
.band h2 { color: var(--surface); margin: 0 auto var(--s16); max-width: 20ch; }
.band p { color: rgba(252,248,242,0.78); max-width: 48ch; margin: 0 auto; font-size: 18px; }

/* ---------- Legal pages ---------- */
.legal { padding: var(--s64) 0 var(--s96); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: var(--s8); color: var(--navy); }
.legal .updated { color: var(--taupe); font-size: 15px; margin-bottom: var(--s48); }
.legal h2 { font-size: 24px; margin: var(--s48) 0 var(--s16); color: var(--navy); }
.legal p, .legal li { color: var(--ink); font-size: 17px; }
.legal ul { padding-left: var(--s24); margin: 0 0 var(--s16); }
.legal li { margin-bottom: var(--s8); }
.legal a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline); margin-top: var(--s64);
  padding: var(--s48) 0;
}
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s16); }
.site-footer .links { display: flex; gap: var(--s24); font-size: 15px; }
.site-footer .links a { color: var(--taupe); }
.site-footer .links a:hover { color: var(--ink); }
.site-footer .copy { color: var(--taupe); font-size: 15px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero { padding: var(--s64) 0 var(--s48); }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .nav { gap: var(--s16); font-size: 15px; }
  .band { padding: var(--s48) var(--s24); }
}
