/* =========================================================
   Hearth & Grain — Coming Soon landing page
   Mobile-first: one column by default, multi-column from 768px.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Colour palette (WCAG checked against --cream) */
  --cream: #fff8ee;        /* main background */
  --sand: #f5eadb;         /* alternate section background */
  --ink: #2b2118;          /* body text — ~15:1 on cream (AAA) */
  --terracotta: #9a3412;   /* headings — ~7:1 on cream (AA, near AAA) */
  --honey: #f4b860;        /* accent on dark backgrounds */
  --muted: #5c4a3a;        /* secondary text — ~8:1 on cream (AAA) */

  /* Typography: web font + fallback stack */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 12px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--terracotta);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1em;
}

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

/* Visible keyboard focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hidden visually but still read by screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font: 600 1rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--honey);
  color: var(--ink);
}

.btn-primary:hover {
  background: #f7c77f;
}

.btn-accent {
  background: var(--honey);
  color: var(--ink);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--cream);
  font: 700 0.9rem var(--font-heading);
}

.logo-text {
  font: 700 1.4rem var(--font-heading);
  color: var(--terracotta);
}

.tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  /* Dark overlay keeps white text readable over the photo */
  background:
    linear-gradient(rgba(43, 33, 24, 0.72), rgba(43, 33, 24, 0.72)),
    url("https://images.unsplash.com/photo-1509440159596-0249088772ff?auto=format&fit=crop&w=1600&q=70") center / cover no-repeat,
    var(--ink);
  color: var(--cream);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  color: #ffffff;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--honey);
  border-radius: 999px;
  color: var(--honey);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 55ch;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* ---------- Sections ---------- */
.intro {
  padding-top: 4rem;
  padding-bottom: 3rem;
  max-width: 760px;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--sand);
}

.section-lead {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Grid: 1 column on mobile */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card,
.offer,
.quote {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(43, 33, 24, 0.06);
}

.section-alt .card,
.section-alt .quote {
  background: #ffffff;
}

.card p,
.offer p {
  margin: 0;
}

/* About split layout */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.split-img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sand);
}

/* Testimonials */
.quote {
  margin: 0;
  border-left: 4px solid var(--terracotta);
}

.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.quote figcaption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* Launch offers */
.offer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.offer {
  border: 2px dashed var(--terracotta);
  box-shadow: none;
}

.offer-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Call to action ---------- */
.cta {
  background: var(--terracotta);
  color: #ffffff;
  padding: 4.5rem 0;
  text-align: center;
}

.cta h2 {
  color: #ffffff;
}

.cta-inner {
  max-width: 640px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

.signup-form input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 1rem var(--font-body);
  color: var(--ink);
  background: #ffffff;
}

.form-note {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: var(--honey);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-title {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.site-footer address {
  font-style: normal;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.copyright {
  margin: 2.5rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---------- Tablet & desktop: multi-column ---------- */
@media (min-width: 768px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero {
    padding: 8rem 0;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .signup-form {
    flex-direction: row;
  }

  .signup-form .btn {
    flex-shrink: 0;
  }

  .footer-grid {
    grid-template-columns: 2fr 2fr 1fr 1fr;
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
