/* Kitchen Squirrel — kitchensquirrel.com
   Palette, typography and shapes follow docs/brand/. */

@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-display-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('fonts/playfair-display-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The brand board gives one background, and it is cream. Declaring the scheme
     stops a dark-mode device applying its own styling to form controls and
     scrollbars underneath a page that has no dark variant. */
  color-scheme: light;

  --forest: #1f4d3a;
  --forest-deep: #163a2b;
  --sage: #6b8f71;
  --sage-soft: #dfe7dc;
  --orange: #f28c28;
  --orange-soft: #fce6cf;
  /* Brand orange and sage are fill colours: on cream they read at 2.3:1 and
     3.4:1, below the WCAG floor. These darkened siblings are for text only. */
  --orange-ink: #9a4d00;
  --sage-ink: #4a6b51;
  --cream: #faf7f2;
  --surface: #ffffff;
  --ink: #1b2a22;
  --ink-soft: #4d6157;
  --rule: #e4e0d6;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shell: 1160px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 18px;
  --shadow: 0 1px 2px rgb(31 77 58 / 6%), 0 12px 32px -18px rgb(31 77 58 / 28%);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--forest);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 1.7rem + 3.4vw, 4rem);
}
h2 {
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.7rem);
}
h3 {
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

a {
  color: var(--forest);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip:focus {
  left: 0;
}

:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- header ---------- */

.site-header {
  padding: clamp(1.1rem, 2.5vw, 1.75rem) 0;
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--forest);
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.header-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.header-link:hover {
  color: var(--forest);
  text-decoration: underline;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(1rem, 3vw, 3rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: clip;
}

.hero::before {
  /* the swirl from the mark, blown up as a quiet backdrop */
  content: '';
  position: absolute;
  inset-inline-end: -14vw;
  top: -10vw;
  width: 52vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sage-soft);
  opacity: 0.55;
  z-index: 0;
}

.hero .shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

@media (max-width: 880px) {
  .hero .shell {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
    max-width: 320px;
    margin-inline: auto;
  }
}

h1 .alt {
  display: block;
  color: var(--orange-ink);
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 1.75rem;
}

.hero-art {
  display: grid;
  place-items: center;
}

/* Capped deliberately: the art sets the height of the hero row, and anything
   taller pushes the email field below the fold on a 720px-tall laptop. */
.hero-art img {
  display: block;
  width: min(100%, 360px);
  filter: drop-shadow(0 30px 40px rgb(31 77 58 / 18%));
}

/* ---------- the email gate ---------- */

.gate {
  max-width: 30rem;
}

.gate-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.gate-form label {
  flex: 0 0 100%;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.gate-form input[type='email'] {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
}

.gate-form input[type='email']::placeholder {
  color: var(--ink-soft);
  opacity: 0.7;
}

.gate-form input[type='email']:focus-visible {
  border-color: var(--forest);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--forest);
  color: #faf7f2;
  border-color: var(--forest);
}
.btn-primary:hover {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
}

.btn[aria-busy='true'] {
  opacity: 0.7;
  pointer-events: none;
}

.gate-note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin: 0.75rem 0 0;
}

.gate-error {
  color: #a4331a;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.6rem 0 0;
}
.gate-error:empty {
  display: none;
}

/* revealed store buttons */

.stores[hidden] {
  display: none;
}

.stores {
  animation: rise 0.35s ease-out;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.stores-heading {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest);
  margin: 0 0 0.85rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.25rem 0.7rem 1rem;
  border: 1.5px solid var(--forest);
  border-radius: 12px;
  background: var(--surface);
  color: var(--forest);
  text-decoration: none;
  line-height: 1.2;
}

.store-btn:hover {
  background: var(--sage-soft);
}

.store-btn svg {
  flex: none;
  width: 26px;
  height: 26px;
}

.store-btn small {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
}

.store-btn strong {
  font-size: 1.02rem;
  font-weight: 600;
}

/* ---------- generic sections ---------- */

section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-head {
  max-width: 46ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0;
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-ink);
  margin-bottom: 0.75rem;
}

.band {
  background: var(--surface);
  border-block: 1px solid var(--rule);
}

/* ---------- the gap (3 cards) ---------- */

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.band .card {
  background: var(--cream);
}

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-ink);
  font-family: var(--serif);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

/* ---------- the reel ---------- */

.loops-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.loops-intro .section-head {
  margin-bottom: 0;
}

.reel {
  margin: 0;
}

.reel-video {
  display: block;
  /* Held by aspect-ratio so the row does not jump when the file attaches. */
  width: min(100%, 290px);
  aspect-ratio: 600 / 1066;
  height: auto;
  border-radius: 26px;
  background: var(--sage-soft);
  box-shadow: 0 2px 4px rgb(31 77 58 / 8%), 0 26px 50px -24px rgb(31 77 58 / 45%);
  object-fit: cover;
}

@media (max-width: 820px) {
  .loops-intro {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .loops-intro .section-head {
    max-width: 100%;
  }
  .reel-video {
    width: min(100%, 260px);
  }
}

/* ---------- alternating loops ---------- */

.loop {
  display: grid;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding-block: clamp(2rem, 4vw, 3rem);
}

.loop + .loop {
  border-top: 1px solid var(--rule);
}

/* The capture loop runs text-only, directly beneath the reel that illustrates
   it. Measure is capped so a full-width row does not turn into a wall. */
.loop--wide {
  grid-template-columns: minmax(0, 68ch);
}

.loop-art {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 62%, var(--sage-soft) 0%, transparent 68%);
}

.loop-art img {
  width: min(100%, 300px);
  filter: drop-shadow(0 22px 28px rgb(31 77 58 / 16%));
}

.loop:nth-child(even) .loop-art {
  order: -1;
}

@media (max-width: 820px) {
  .loop {
    grid-template-columns: 1fr;
  }
  .loop-art,
  .loop:nth-child(even) .loop-art {
    order: -1;
  }
  .loop-art img {
    width: min(100%, 230px);
  }
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.ticks li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--ink-soft);
}

.ticks li::before {
  content: '';
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--sage-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4D3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 0.85rem no-repeat;
}

.pull {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.4rem;
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  border-radius: 0 14px 14px 0;
}

.pull p {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest);
  margin: 0;
}

.pull cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--ink-soft);
}

/* ---------- difference grid ---------- */

.grid-4 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.tile {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--rule);
}

.band .tile {
  background: var(--cream);
}

.tile svg {
  width: 30px;
  height: 30px;
  color: var(--forest);
  margin-bottom: 0.85rem;
}

.tile h3 {
  margin-bottom: 0.4rem;
}

.tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- what it is not ---------- */

.nots {
  columns: 2;
  column-gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 700px) {
  .nots {
    columns: 1;
  }
}

.nots li {
  break-inside: avoid;
  padding: 0.9rem 0 0.9rem 2rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  color: var(--ink-soft);
}

.nots li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.9rem;
  height: 1.5px;
  background: var(--orange);
}

.nots strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- closing CTA ---------- */

.closer {
  text-align: center;
}

.closer .shell {
  display: grid;
  justify-items: center;
}

.closer .gate {
  margin-inline: auto;
}

.closer .gate-form {
  justify-content: center;
}

.closer .store-buttons {
  justify-content: center;
}

.closer .lead {
  max-width: 42ch;
  margin-inline: auto;
}

.closer-art {
  width: min(60%, 190px);
  margin-bottom: 1rem;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.site-footer .brand img {
  width: 34px;
  height: 34px;
}

.site-footer .brand span {
  font-size: 1.15rem;
}

.footer-tag {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ---------- coming soon page ---------- */

.centred {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(2.5rem, 8vw, 5rem);
}

.centred .shell {
  max-width: 44rem;
}

.centred img {
  width: min(58%, 230px);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 24px 30px rgb(31 77 58 / 16%));
}

.centred .lead {
  max-width: 40ch;
  margin-inline: auto;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
