/* Cheerful Brands — shared styles
   Aesthetic: refined editorial. Warm cream, deep ink, terracotta accent.
   WCAG 2.2 AA: focus-visible, contrast, reduced-motion, target sizes. */

:root {
  --cream:      #FBF8F1;
  --cream-2:    #F4EEE0;
  --ink:        #1B1A17;
  --muted:      #5E5A50;
  --accent:     #8F3F18;   /* interactive text — ~6:1 on cream */
  --accent-br:  #BE5B2A;   /* decorative only */
  --hair:       rgba(27, 26, 23, 0.14);
  --maxw:       1080px;
  --serif:      "Fraunces", Georgia, "Times New Roman", serif;
  --sans:       "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: .75rem 1.25rem; z-index: 200; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---- header ---- */
.site-head {
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--hair);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.4rem; padding-bottom: 1.4rem;
}
.brandmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brandmark span { color: var(--accent-br); }
.site-head nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  margin-left: 1.6rem;
}
.site-head nav a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .site-head nav a:first-child { margin-left: 0; }
  .site-head .wrap { flex-direction: column; gap: .9rem; align-items: flex-start; }
}

/* ---- hero ---- */
.hero { padding: 5.5rem 0 4rem; }
.eyebrow {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero p.lede {
  margin-top: 1.6rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 46ch;
}

/* ---- answer block (AEO) ---- */
.answer {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 3.5rem 0;
}
.answer .wrap { display: grid; grid-template-columns: 1fr 2.4fr; gap: 2.5rem; }
.answer h2 {
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
  color: var(--accent); letter-spacing: .02em;
}
.answer p { font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.5; }
@media (max-width: 720px) {
  .answer .wrap { grid-template-columns: 1fr; gap: 1rem; }
}

/* ---- brands ---- */
.brands { padding: 4rem 0 1rem; }
.brands > .wrap > h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 2.2rem;
  letter-spacing: -0.01em;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.brand {
  background: var(--cream);
  padding: 2.4rem 2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background .25s ease, transform .25s ease;
}
.brand:hover { background: var(--cream-2); }
.brand .idx {
  font-family: var(--serif); font-size: .85rem; color: var(--accent-br);
  letter-spacing: .12em;
}
.brand h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.7rem; margin: .8rem 0 .6rem; letter-spacing: -0.01em;
}
.brand p { color: var(--muted); font-size: 1rem; }
.brand .go {
  display: inline-block; margin-top: 1.2rem;
  font-size: .9rem; color: var(--accent); font-weight: 600;
}
.brand .go::after { content: " \2192"; }
@media (max-width: 620px) {
  .brand-grid { grid-template-columns: 1fr; }
}

/* ---- contact ---- */
.contact { padding: 4.5rem 0; }
.contact .wrap { border-top: 1px solid var(--hair); padding-top: 3.5rem; }
.contact h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6rem;
}
.contact p { color: var(--muted); max-width: 44ch; }
.contact a.mail {
  display: inline-block; margin-top: 1.4rem;
  font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--accent-br); padding-bottom: 2px;
}
.contact a.mail:hover { color: var(--accent); }

/* ---- footer ---- */
.site-foot {
  border-top: 1px solid var(--hair);
  padding: 2.5rem 0 3rem;
  font-size: .9rem; color: var(--muted);
}
.site-foot .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: center;
}
.site-foot nav a {
  color: var(--muted); text-decoration: none; margin-right: 1.4rem;
}
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; }

/* ---- legal pages ---- */
.legal { padding: 4rem 0 5rem; }
.legal .wrap { max-width: 760px; }
.legal h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em;
  margin-bottom: .4rem;
}
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }
.legal h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.35rem; margin: 2.4rem 0 .8rem;
}
.legal p, .legal li { color: #38352D; margin-bottom: 1rem; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal a { color: var(--accent); }
.back {
  display: inline-block; margin-top: 2.5rem; font-size: .92rem;
  color: var(--accent); text-decoration: none; font-weight: 600;
}
.back::before { content: "\2190 "; }

/* ---- entrance animation ---- */
.reveal { opacity: 0; transform: translateY(14px); animation: fade .8s ease forwards; }
.reveal:nth-child(2) { animation-delay: .08s; }
.reveal:nth-child(3) { animation-delay: .16s; }
@keyframes fade { to { opacity: 1; transform: none; } }

/* ---- cookie banner ---- */
.cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 560px; background: var(--ink); color: var(--cream);
  padding: 1.3rem 1.4rem; border-radius: 10px; z-index: 150;
  box-shadow: 0 12px 40px rgba(0,0,0,.28); font-size: .92rem;
}
.cookie p { margin-bottom: 1rem; line-height: 1.55; }
.cookie a { color: #E9B58C; }
.cookie-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cookie button {
  font: inherit; cursor: pointer; border-radius: 6px;
  padding: .6rem 1.2rem; border: 1px solid rgba(255,255,255,.4);
  min-height: 44px;          /* WCAG 2.2 target size */
}
.cookie .accept { background: var(--cream); color: var(--ink); border-color: var(--cream); font-weight: 600; }
.cookie .decline { background: transparent; color: var(--cream); }
.cookie button:hover { opacity: .88; }
.cookie[hidden] { display: none; }
