:root {
  --color-bg: #ede9e1;
  --color-surface: #ffffff;
  --color-text: #15130f;
  --color-muted: #6b665e;
  --color-accent: #e11d2a;
  --color-border: #e7e2d9;
  --max-width: 760px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.nav__brand:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav__links a {
  color: var(--color-muted);
}

.nav__links a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: clamp(3.5rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 6rem);
}

.hero__eyebrow,
.prose__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
}

.hero__accent {
  color: var(--color-accent);
}

.hero__lede {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.55;
  color: var(--color-text);
  max-width: 38ch;
  margin: 0 0 1.25rem;
}

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

/* Prose / about */
.prose {
  padding: clamp(3rem, 9vh, 6rem) 1.5rem 4rem;
  font-size: 1.12rem;
}

.prose__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  max-width: 18ch;
}

.prose__lead {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0 0 1.75rem;
}

.prose p {
  color: var(--color-muted);
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

.prose em {
  font-style: italic;
  color: var(--color-text);
}

.prose__signoff {
  color: var(--color-text);
  border-left: 2px solid var(--color-accent);
  padding-left: 1.25rem;
  margin-top: 2.5rem;
}

.backlink {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.backlink:hover {
  color: var(--color-accent);
}

/* Long-form prose: headings, lists, meta (privacy policy and similar) */
.prose__meta {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin: -1rem 0 2.5rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 2.75rem 0 1rem;
}

.prose h3 {
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--color-text);
  margin: 1.75rem 0 0.75rem;
}

.prose ul {
  color: var(--color-muted);
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  max-width: 60ch;
}

.prose li {
  margin: 0 0 0.5rem;
}

.prose strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  padding: 1.5rem 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__inner a {
  color: var(--color-muted);
}

.site-footer__inner a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* Layout: keep footer at bottom on short pages */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* Entrance animation */
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow,
  .hero__title,
  .hero__lede,
  .hero__note,
  .prose__eyebrow,
  .prose__title,
  .prose__lead,
  .prose p,
  .prose__signoff {
    opacity: 0;
    transform: translateY(12px);
    animation: rise 0.7s cubic-bezier(0.2, 0.65, 0.3, 1) forwards;
  }
  .hero__title,
  .prose__title { animation-delay: 0.08s; }
  .hero__lede,
  .prose__lead { animation-delay: 0.18s; }
  .hero__note { animation-delay: 0.28s; }
  .prose p:nth-of-type(1) { animation-delay: 0.18s; }
  .prose p:nth-of-type(2) { animation-delay: 0.26s; }
  .prose p:nth-of-type(3) { animation-delay: 0.34s; }
  .prose__signoff { animation-delay: 0.42s; }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cookie-consent banner (Google Consent Mode v2) */
.cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(21, 19, 15, 0.14);
}

.cookie-consent__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.cookie-consent__text a {
  color: var(--color-accent);
}

.cookie-consent__actions {
  display: flex;
  gap: 0.6rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.cookie-consent__btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cookie-consent__btn--primary {
  background: var(--color-accent);
  color: #ffffff;
}

.cookie-consent__btn--primary:hover {
  background: #c2151f;
}

.cookie-consent__btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.cookie-consent__btn--ghost:hover {
  border-color: var(--color-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-consent {
    animation: consent-rise 0.4s cubic-bezier(0.2, 0.65, 0.3, 1) both;
  }
}

@keyframes consent-rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .cookie-consent__actions {
    width: 100%;
  }
  .cookie-consent__btn {
    flex: 1 1 auto;
  }
}
