/* ==========================================================================
   Kitchen Echo — design tokens, reset, base type, buttons, utilities
   Palette + type measured from https://kitchenecho.com/ (facts-from-site.md)
   ========================================================================== */

:root {
  --terracotta: #c05621;
  --terracotta-deep: #9d3f14;
  --terracotta-darker: #7c300d;
  --cream: #fdf8f1;
  --sand: #f0e4d4;
  --white: #ffffff;
  --amber: #e8a33d;
  --ink: #000000;

  --font: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.55rem, 6.6vw, 6.1rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.5rem);
  --fs-h3: clamp(1.1rem, 1.5vw, 1.42rem);
  --fs-body: clamp(1rem, 1.02vw, 1.0625rem);
  --fs-label: 0.72rem;

  --gutter: clamp(20px, 4.2vw, 64px);
  --wrap: 1240px;
  --sp-section: clamp(76px, 11vh, 148px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
ul, ol, figure { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--amber); color: var(--ink); }

section[id], [id="main"] { scroll-margin-top: 96px; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.85rem;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 18px;
}
.label--amber { color: var(--amber); }
.label--on-dark { color: var(--amber); }

.sec-title {
  font-size: var(--fs-h2);
  letter-spacing: -0.038em;
  line-height: 0.98;
  max-width: 20ch;
}
.sec-title--sm { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }

.sec-lede {
  margin-top: 20px;
  max-width: 42ch;
  color: rgba(0, 0, 0, 0.66);
  font-size: clamp(1rem, 1.1vw, 1.12rem);
}

.sec-head { max-width: 900px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--terracotta);
  --btn-fg: #ffffff;
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: background 0.28s var(--ease), color 0.28s var(--ease), transform 0.28s var(--ease), border-color 0.28s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid { --btn-bg: var(--terracotta); --btn-fg: #ffffff; }
.btn--solid:hover { --btn-bg: var(--terracotta-deep); }

.btn--light { --btn-bg: #ffffff; --btn-fg: var(--terracotta); }
.btn--light:hover { --btn-bg: var(--cream); --btn-fg: var(--terracotta-deep); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-bd: rgba(253, 248, 241, 0.5);
}
.btn--ghost:hover { --btn-bg: rgba(253, 248, 241, 0.12); --btn-bd: rgba(253, 248, 241, 0.85); }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-bd: rgba(253, 248, 241, 0.42);
}
.btn--outline-light:hover { --btn-bg: rgba(253, 248, 241, 0.1); }

.btn__arrow {
  font-size: 0.9em;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

