/* K2go — layout: narrow editorial column (max 68ch for prose, 1120px for grids),
   sticky header, full-bleed colour bands between sections */

:root {
  --cream:        #EFE6D5;
  --cream-card:   #FBF3EC;
  --wine:         #5E1417;
  --wine-deep:    #4A0F12;
  --sage:         #9CAF96;
  --clay:         #D2694A;
  --ink:          #3E3330;
  --ink-soft:     #6E615B;
  --rule:         #D8C9B2;

  --bg:        var(--cream);
  --surface:   var(--cream-card);
  --fg:        var(--ink);
  --fg-soft:   var(--ink-soft);
  --heading:   var(--wine);
  --accent:    var(--clay);
  --band:      var(--wine);
  --band-fg:   #F4E9DC;
  --line:      var(--rule);

  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #1F0B0C;
    --surface: #2C1314;
    --fg:      #E8DCCD;
    --fg-soft: #B5A394;
    --heading: #E9C9B4;
    --accent:  #E58A66;
    --band:    #3A1012;
    --band-fg: #F0E2D3;
    --line:    #4A2A26;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:      #1F0B0C;
  --surface: #2C1314;
  --fg:      #E8DCCD;
  --fg-soft: #B5A394;
  --heading: #E9C9B4;
  --accent:  #E58A66;
  --band:    #3A1012;
  --band-fg: #F0E2D3;
  --line:    #4A2A26;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--display);
  color: var(--heading);
  text-wrap: balance;
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.prose { max-width: 62ch; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--fg-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--heading); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: #F6EDE2;
  transition: opacity .15s ease;
}

.btn:hover { opacity: .88; }

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--line);
}

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

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

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

section { padding-block: clamp(48px, 8vw, 88px); }

.band {
  background: var(--band);
  color: var(--band-fg);
}

.band h2, .band h3 { color: var(--band-fg); }
.band .eyebrow { color: var(--sage); }

.band-sage {
  background: var(--sage);
  color: #22301F;
}

.band-sage h2, .band-sage .quote { color: #22301F; }
.band-sage .eyebrow { color: #4B2C22; }

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

.hero { padding-block: clamp(56px, 10vw, 110px); }

.hero-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--fg-soft);
  margin-top: 20px;
  max-width: 48ch;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 26px;
}

.hero-card .price {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--heading);
  line-height: 1;
}

.hero-card ul { margin: 18px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }

.hero-card li {
  font-size: 0.95rem;
  color: var(--fg-soft);
  padding-left: 18px;
  position: relative;
}

.hero-card li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ---------- cards grid ---------- */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 36px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

a.card:hover { border-color: var(--accent); }

.card .meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.card p { color: var(--fg-soft); font-size: 0.95rem; }

.quote {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.4vw, 1.9rem);
  font-style: italic;
  line-height: 1.35;
  max-width: 30ch;
}

/* ---------- article ---------- */

.article-body { max-width: 65ch; }
.article-body > * + * { margin-top: 20px; }
.article-body h2 { margin-top: 44px; }
.article-body ul { padding-left: 22px; color: var(--fg); }
.article-body li + li { margin-top: 8px; }

.note {
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--fg-soft);
}

.photo-slot {
  aspect-ratio: 3 / 2;
  max-width: 100%;
  border: 1px dashed var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--fg-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

/* ---------- cta strip ---------- */

.cta-strip {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 28px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  font-size: 0.86rem;
  color: var(--fg-soft);
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer a { color: var(--fg-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.footer-links { display: grid; gap: 8px; }

.todo {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px dashed var(--accent);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 0.82em;
  color: var(--fg);
}

/* ---------- article layout with sidebar ---------- */

.article-layout {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 44px;
}

.article-aside { min-width: 0; }

.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
}

.aside-card h3 { font-size: 1.05rem; }

.aside-card p {
  color: var(--fg-soft);
  font-size: 0.9rem;
  margin-top: 8px;
}

.aside-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
  font-size: 0.88rem;
}

.aside-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  color: var(--fg-soft);
}

.aside-facts strong {
  color: var(--fg);
  font-weight: 700;
  text-align: right;
}

/* ---------- team ---------- */

.team-photo-wide {
  margin: 44px 0 0;
  max-width: 820px;
}

.team-photo-wide img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.team-photo-wide figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- legal pages ---------- */

.legal { max-width: 70ch; }
.legal > * + * { margin-top: 16px; }
.legal h2 {
  font-size: 1.2rem;
  margin-top: 40px;
  font-family: var(--display);
}
.legal h3 { font-size: 1rem; margin-top: 26px; font-family: var(--body); }
.legal ol, .legal ul { padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal .updated {
  font-size: 0.86rem;
  color: var(--fg-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

/* ---------- cookie banner ---------- */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--wine);
  color: #F4E9DC;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-bar p { max-width: 60ch; }
.cookie-bar a { color: #F0C9B4; }

.cookie-bar button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 2px;
  border: 1px solid #F4E9DC;
  background: #F4E9DC;
  color: var(--wine);
}

.cookie-bar button.ghost { background: transparent; color: #F4E9DC; }

/* ---------- desktop ---------- */

@media (min-width: 1024px) {
  body { font-size: 18px; }

  .wrap { max-width: 1240px; padding-inline: 48px; }

  section { padding-block: 104px; }

  .hero { padding-block: 128px; }

  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 72px;
  }

  .hero h1 { font-size: 4rem; letter-spacing: -0.015em; }
  .hero p.lead { font-size: 1.22rem; }

  .hero-card { padding: 34px; position: sticky; top: 100px; }

  .site-header .wrap { min-height: 76px; }
  .nav { gap: 28px; }
  .nav a { font-size: 0.95rem; }

  .grid { gap: 28px; margin-top: 48px; }
  .card { padding: 30px; }

  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 .card h3 { font-size: 1.3rem; }

  .quote { font-size: 2.3rem; max-width: 26ch; }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 64px;
    align-items: start;
  }

  .article-aside { position: sticky; top: 108px; }

  .article-body { font-size: 1.08rem; }

  .cta-strip { padding: 40px 44px; }

  .site-footer { padding-block: 56px; }
}

@media (min-width: 1500px) {
  .wrap { max-width: 1340px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
