/* Booqly — shared marketing site stylesheet.
   Inlined from the Landing.html design system. Loaded from every page so
   the legal subpages don't each carry their own copy. */

:root {
  --paper:      #f1ead8;
  --paper-soft: #e8e0cb;
  --paper-dim:  #ede5cf;
  --ink:        #1f1a14;
  --ink-soft:   #3a2f24;
  --mute:       #7a6e5c;
  --mute-soft:  #a39880;
  --accent:     #b4441f;
  --accent-soft:#e4d3c2;
  --rule:       rgba(31,26,20,0.10);
  --rule-strong:rgba(31,26,20,0.18);
  --serif:      "Newsreader","Source Serif Pro",Georgia,serif;
  --sans:       "Geist",-apple-system,system-ui,sans-serif;
  --mono:       "Geist Mono",ui-monospace,Menlo,monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--paper); }

/* ─── layout ─── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.eyebrow {
  font-family: var(--sans); font-size: 11px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--mute); font-weight: 500;
}

/* ─── header ─── */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  letter-spacing: -0.4px; color: var(--ink);
}
.brand .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  display: inline-block; transform: translateY(-2px);
}
.nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 28px;
  font-size: 13.5px; color: var(--ink-soft);
}
.nav ul a:hover { color: var(--accent); }
.nav .cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 500;
  transition: background .15s;
}
.nav .cta:hover { background: var(--accent); }

/* ─── hero ─── */
.hero { padding: 96px 0 80px; }
.hero .grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 6.2vw, 78px); line-height: 1.02;
  letter-spacing: -1.2px; margin: 18px 0 22px;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero p.lede {
  font-family: var(--serif); font-size: 19px; line-height: 1.5;
  color: var(--ink-soft); max-width: 46ch; margin: 0 0 32px;
  text-wrap: pretty;
}
.hero .actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; cursor: pointer; border: none;
  font: 500 14px var(--sans); transition: transform .12s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #9a3917; }
.btn.ghost   { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.btn.ghost:hover { background: var(--paper-soft); }
.hero .meta {
  margin-top: 28px; display: flex; gap: 22px; align-items: center;
  font-size: 12.5px; color: var(--mute);
}

/* ─── hero art (typographic book stack) ─── */
.stack {
  position: relative; aspect-ratio: 4/5;
  display: flex; align-items: flex-end; justify-content: center;
}
.book {
  position: absolute; bottom: 8%;
  width: 46%; aspect-ratio: 1/1.55; border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 0 0 0.5px rgba(0,0,0,0.25),
    0 2px 4px rgba(0,0,0,0.12),
    0 24px 38px -14px rgba(0,0,0,0.4);
  padding: 18% 12% 12%;
  color: var(--paper);
  font-family: var(--serif);
  display: flex; flex-direction: column; justify-content: space-between;
}
.book .ser {
  font-family: var(--sans); font-size: 9px; letter-spacing: 1.5px;
  text-transform: uppercase; opacity: .8;
}
.book .tt { font-size: 18px; line-height: 1.05; font-weight: 600; letter-spacing: -0.3px; }
.book .au { font-family: var(--sans); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; opacity: .85; }
.book.a { background: #1c2540; transform: translateX(-44%) rotate(-7deg); bottom: 4%; }
.book.a .tt em { font-style: italic; color: #c2654a; font-weight: 500; }
.book.b { background: #5e1c14; transform: translateX(0%)   rotate(2deg);  bottom: 10%; z-index: 2; }
.book.b .tt em { font-style: italic; color: #d6a35a; font-weight: 500; }
.book.c { background: #5a6240; transform: translateX(44%)  rotate(8deg);  bottom: 6%; }
.book.c .tt em { font-style: italic; color: #d97a3e; font-weight: 500; }
.stack::after {
  content: ''; position: absolute; left: 8%; right: 8%; bottom: 2%;
  height: 14px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(31,26,20,0.22), transparent 70%);
  filter: blur(2px);
}

/* ─── section ─── */
section { padding: 96px 0; border-top: 1px solid var(--rule); }
section h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4vw, 46px); line-height: 1.05;
  letter-spacing: -0.6px; margin: 14px 0 18px;
  text-wrap: balance; max-width: 22ch;
}
section h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
section p.intro {
  font-family: var(--serif); font-size: 18px; line-height: 1.5;
  color: var(--ink-soft); max-width: 56ch; margin: 0;
}

/* ─── features ─── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.feature {
  background: var(--paper-soft); border-radius: 14px;
  padding: 28px 26px 30px; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(31,26,20,0.04);
}
.feature .num {
  font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: 1px;
}
.feature h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 600;
  letter-spacing: -0.3px; margin: 14px 0 10px; line-height: 1.15;
}
.feature p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.feature .glyph {
  margin-top: 22px; align-self: flex-start;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--paper); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--rule);
}

/* ─── newsletter form ─── */
.newsletter {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch;
  margin-top: 18px;
}
.newsletter input[type="email"] {
  flex: 1 1 240px; min-width: 0;
  padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--rule-strong); background: var(--paper);
  font: 400 14px var(--sans); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.newsletter input[type="email"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(180,68,31,0.12);
}
.newsletter button { padding: 12px 22px; }
.newsletter-note {
  margin: 12px 0 0; font-size: 12px; color: var(--mute);
  max-width: 48ch;
}
.newsletter-note a { color: var(--ink-soft); border-bottom: 1px solid var(--rule-strong); }
.newsletter-note a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.newsletter-status {
  margin-top: 14px; padding: 12px 16px;
  border-radius: 12px; font-size: 13.5px;
  background: var(--paper); border: 1px solid var(--rule);
  color: var(--ink-soft);
}
.newsletter-status.success { color: var(--accent); border-color: var(--accent-soft); background: rgba(180,68,31,0.06); }
.newsletter-status.error { color: #a23a18; border-color: #d8a999; background: rgba(180,68,31,0.06); }

/* ─── legal sections ─── */
.legal { padding: 80px 0; border-top: 1px solid var(--rule); }
.legal .row {
  display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start;
}
.legal h2 {
  font-family: var(--serif); font-weight: 500; font-size: 30px;
  letter-spacing: -0.4px; margin: 0; line-height: 1.1;
}
.legal .updated { font-family: var(--mono); font-size: 11px; color: var(--mute); margin-top: 10px; letter-spacing: .5px; }
.legal .prose { max-width: 62ch; }
.legal .prose p, .legal .prose li {
  font-size: 14.5px; line-height: 1.65; color: var(--ink-soft);
}
.legal .prose h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  margin: 28px 0 8px; color: var(--ink); letter-spacing: -0.2px;
}
.legal .prose h3:first-child { margin-top: 0; }
.legal .prose ul { padding-left: 20px; margin: 8px 0 14px; }
.legal .prose li { margin-bottom: 4px; }
.legal .prose a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.legal .prose a:hover { border-bottom-color: var(--accent); }
.legal .prose .todo { color: var(--accent); background: rgba(180,68,31,0.08); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: 12px; }
.legal + .legal { border-top: 1px dashed var(--rule); }

/* Solo-legal-page layout — for /privacy, /cookies, /terms, /imprint when
   viewed as their own page (not anchored in the marketing landing).
   The page is just header + one legal block + footer; we tighten spacing
   and lift the legal block visually so the policy is above the fold. */
.legal.solo { padding: 56px 0 80px; border-top: 0; }
.legal.solo + .legal.solo { border-top: 0; }

/* ─── footer ─── */
footer.site {
  background: var(--paper-dim); border-top: 1px solid var(--rule);
  padding: 56px 0 32px; margin-top: 0;
}
footer .grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
footer h4 {
  font-family: var(--sans); font-size: 11px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--mute); font-weight: 600;
  margin: 0 0 14px;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
footer a { font-size: 13.5px; color: var(--ink-soft); }
footer a:hover { color: var(--accent); }
footer .blurb { font-family: var(--serif); font-size: 14.5px; color: var(--ink-soft); max-width: 32ch; margin: 12px 0 0; }
footer .base {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--mute);
}

/* ─── cookie banner ─── */
.cookie {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 50;
  max-width: 560px; margin-left: auto;
  background: var(--ink); color: var(--paper);
  border-radius: 14px; padding: 18px 20px 18px 22px;
  box-shadow: 0 24px 60px -16px rgba(31,26,20,0.5), 0 2px 6px rgba(31,26,20,0.18);
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  font-size: 13.5px; line-height: 1.5;
  transition: transform .25s ease, opacity .25s ease;
}
.cookie.dismissed { transform: translateY(20px); opacity: 0; pointer-events: none; }
.cookie p { margin: 0; }
.cookie a { color: #e4d3c2; text-decoration: underline; text-underline-offset: 2px; }
.cookie .actions { display: flex; gap: 8px; }
.cookie button {
  border: none; cursor: pointer; padding: 9px 14px; border-radius: 999px;
  font: 500 12.5px var(--sans);
}
.cookie .accept { background: var(--accent); color: #fff; }
.cookie .reject { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(241,234,216,0.25); }

/* Newsletter status pages (confirm.html / unsubscribe.html) — minimal centered card */
.flash {
  min-height: calc(100vh - 64px - 200px);
  display: grid; place-items: center; padding: 64px 24px;
}
.flash-card {
  max-width: 460px; text-align: center;
  padding: 40px 32px; border-radius: 18px;
  background: var(--paper-soft); border: 1px solid var(--rule);
}
.flash-card h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: 28px; letter-spacing: -0.4px;
  margin: 0 0 12px;
}
.flash-card h1.success { color: var(--accent); font-style: italic; }
.flash-card p {
  font-family: var(--serif); font-size: 16px; line-height: 1.5;
  color: var(--ink-soft); margin: 0 0 24px;
}
.flash-card .btn { margin-top: 4px; }
.flash-spinner {
  width: 22px; height: 22px; margin: 0 auto 18px;
  border: 2px solid var(--rule-strong); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* anchored target offset for sticky header */
:target { scroll-margin-top: 80px; }

/* ─── mobile menu toggle ─── */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--ink); line-height: 0;
}
.nav-toggle svg { display: block; }

/* ─── responsive ─── */
@media (max-width: 880px) {
  .hero { padding: 64px 0 48px; }
  .hero .grid { grid-template-columns: 1fr; gap: 48px; }
  .stack { display: none; }
  .features { grid-template-columns: 1fr; gap: 16px; }
  section { padding: 64px 0; }
  .legal .row { grid-template-columns: 1fr; gap: 18px; }
  footer .grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-toggle { display: block; }
  .nav ul {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    flex-direction: column; gap: 0; padding: 8px 32px 16px;
    box-shadow: 0 8px 24px -8px rgba(31,26,20,0.12);
  }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 10px 0; font-size: 15px; }
  .nav .cta { display: none; }
  header.site { position: relative; }
}
