@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafaf8;
  --ink: #1a1a1a;
  --charcoal: #4a4a4a;
  --muted: #7a7a7a;
  --rule: #d4d2cc;
  --card-bg: rgba(250,250,248,0.72);
  --card-border: rgba(74,74,74,0.18);
  --accent: #1a1a1a;
  --cta-fill: #1a1a1a;
  --cta-text: #fafaf8;
  --cta-outline: #1a1a1a;
  --radius: 10px;
  --font-head: 'Cormorant', Georgia, serif;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --max-w: 1160px;
  --col-gap: 2rem;
}

html { font-size: 17px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Paper texture overlay — raw aesthetic */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* === Utility === */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1.5px solid var(--ink);
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark { width: 32px; height: 32px; object-fit: contain; }

.brand-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* CTA buttons */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: none;
  white-space: nowrap;
}

.cta-signup {
  background: var(--cta-fill);
  color: var(--cta-text);
  border: 2px solid var(--cta-fill);
}

.cta-signup:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.cta-login {
  background: transparent;
  color: var(--cta-outline);
  border: 2px solid var(--cta-outline);
}

.cta-login:hover {
  background: var(--ink);
  color: var(--bg);
}

/* Nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
}

.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

/* Nav row */
.site-nav {
  background: var(--bg);
  padding: 0 1.5rem;
}

.nav-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
}

.nav-dl dt { display: none; }

.nav-dl dd {
  margin: 0;
}

.nav-dl dd a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  text-decoration: none;
  border-right: 1px solid var(--rule);
  transition: none;
}

.nav-dl dd:first-of-type a { border-left: 1px solid var(--rule); }

.nav-dl dd a:hover {
  color: var(--ink);
  background: rgba(26,26,26,0.05);
}

/* === Hero === */
.hero-section {
  display: flex;
  align-items: center;
  gap: var(--col-gap);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  min-height: 45vh;
}

.hero-copy {
  flex: 1 1 50%;
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1rem;
  color: var(--charcoal);
  max-width: 480px;
  margin-bottom: 1.5rem;
}

.hero-media {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius);
  border: 2px solid var(--rule);
  transform: rotate(0.8deg);
  display: block;
}

.hero-media-placeholder {
  width: 100%;
  max-width: 480px;
  min-height: 240px;
  border: 2px dashed var(--rule);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(74,74,74,0.04) 10px,
    rgba(74,74,74,0.04) 20px
  );
}

.hero-cta { margin-top: 0.5rem; }

/* === Page Banner (non-home) === */
.page-banner {
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  padding: 2.5rem 1.5rem 2rem;
}

.page-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-banner h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--bg);
  margin-top: 0.4rem;
}

/* === Eyebrow === */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.page-banner .eyebrow { color: rgba(250,250,248,0.65); }

/* === Byline === */
.byline {
  font-size: 0.78rem;
  color: rgba(250,250,248,0.7);
  margin-top: 0.5rem;
  font-family: var(--font-body);
}

.byline time { font-style: normal; }

/* === Main layout === */
main {
  flex: 1;
  display: flex;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  gap: var(--col-gap);
  align-items: flex-start;
}

.wrap {
  flex: 1 1 0;
  min-width: 0;
}

/* === Content section / article === */
.content-section {
  margin-bottom: 2.5rem;
}

.prose-article {
  background: transparent;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.article-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0.4rem 0 0.5rem;
}

.article-header .byline {
  color: var(--muted);
  font-size: 0.8rem;
}

.article-header .byline time { font-style: normal; }

.prose-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

.prose-body h2 {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.prose-body h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
}

.prose-body p { margin-bottom: 1.1rem; }

.prose-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-body a:hover { color: var(--charcoal); }

.prose-body ul, .prose-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}

.prose-body li { margin-bottom: 0.4rem; }

.prose-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  overflow-x: auto;
  display: block;
}

.prose-body table th {
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.prose-body table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.prose-body table tr:nth-child(even) td {
  background: rgba(26,26,26,0.03);
}

.prose-body blockquote {
  border-left: 3px solid var(--ink);
  padding: 0.6rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--charcoal);
  font-style: italic;
}

.review-hero-media {
  margin: 1.5rem 0;
}

.review-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1.5px solid var(--rule);
  transform: rotate(-0.5deg);
  display: block;
}

.article-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.article-update-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.stage-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* === Child page cards (section > article direct children) === */
.child-pages-section {
  margin-top: 2.5rem;
}

.child-pages-section .section-heading,
.featured-reviews-section .section-heading {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--ink);
}

.child-pages-section > article,
.featured-reviews-section > article {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(26,26,26,0.06);
  transform: rotate(-0.3deg);
}

.child-pages-section > article:nth-child(even),
.featured-reviews-section > article:nth-child(even) {
  transform: rotate(0.4deg);
}

.child-pages-section > article a,
.featured-reviews-section > article a {
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.child-pages-section > article h3,
.featured-reviews-section > article h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.child-pages-section > article p,
.featured-reviews-section > article p {
  font-size: 0.88rem;
  color: var(--charcoal);
  line-height: 1.55;
}

.card-date {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-family: var(--font-body);
}

/* === Section headings === */
.section-heading {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1rem;
}

/* === Aside === */
.site-aside {
  flex: 0 0 240px;
  width: 240px;
}

.aside-inner {
  position: sticky;
  top: 7rem;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 2px 12px rgba(26,26,26,0.06);
  transform: rotate(0.5deg);
}

.aside-heading {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.aside-links {
  list-style: none;
  margin-bottom: 1.2rem;
}

.aside-links li { border-bottom: 1px solid var(--rule); }
.aside-links li:last-child { border-bottom: none; }

.aside-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0;
  font-size: 0.82rem;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
}

.aside-links a:hover { color: var(--ink); text-decoration: underline; }

.aside-cta-block {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aside-cta { width: 100%; justify-content: center; }

.aside-trust-links { margin-top: 1.2rem; }

.aside-trust-links ul {
  list-style: none;
  margin-top: 0.4rem;
}

.aside-trust-links ul li { border-bottom: 1px solid var(--rule); }
.aside-trust-links ul li:last-child { border-bottom: none; }

.aside-trust-links ul li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.78rem;
  color: var(--charcoal);
  text-decoration: none;
}

.aside-trust-links ul li a:hover { text-decoration: underline; }

/* === Author section === */
.author-section {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2.5rem;
  box-shadow: 0 2px 16px rgba(26,26,26,0.07);
  transform: rotate(-0.3deg);
}

.author-name {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.author-credentials {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
}

.author-bio {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal);
}

/* === Footer === */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 3rem 1.5rem 0;
  margin-top: auto;
}

.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250,250,248,0.15);
}

.footer-brand { margin-bottom: 0.75rem; }

.footer-brand .brand-name { color: var(--bg); }

.footer-desc {
  font-size: 0.82rem;
  color: rgba(250,250,248,0.6);
  margin: 0.5rem 0 1rem;
  line-height: 1.5;
}

.footer-address {
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(250,250,248,0.55);
  line-height: 1.7;
}

.footer-address a {
  color: rgba(250,250,248,0.7);
  text-decoration: underline;
}

.footer-contact-label {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.5);
}

.footer-col-heading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  margin-bottom: 0.75rem;
}

.footer-col .eyebrow { color: rgba(250,250,248,0.45); }

/* Footer nav dl */
.footer-dl { list-style: none; }
.footer-dl dt { display: none; }
.footer-dl dd { margin: 0; }

.footer-dl dd a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  font-size: 0.82rem;
  color: rgba(250,250,248,0.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(250,250,248,0.08);
}

.footer-dl dd:last-child a { border-bottom: none; }
.footer-dl dd a:hover { color: var(--bg); text-decoration: underline; }

/* Footer trust list */
.footer-trust-list { list-style: none; }

.footer-trust-list li { border-bottom: 1px solid rgba(250,250,248,0.08); }
.footer-trust-list li:last-child { border-bottom: none; }

.footer-trust-list li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  font-size: 0.82rem;
  color: rgba(250,250,248,0.65);
  text-decoration: none;
}

.footer-trust-list li a:hover { color: var(--bg); text-decoration: underline; }

/* Subscribe form */
.footer-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-subscribe-form input[type="email"] {
  padding: 0.6rem 0.8rem;
  background: rgba(250,250,248,0.1);
  border: 1px solid rgba(250,250,248,0.25);
  border-radius: 2px;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.82rem;
  min-height: 44px;
}

.footer-subscribe-form input[type="email"]::placeholder {
  color: rgba(250,250,248,0.4);
}

.btn-subscribe {
  padding: 0.6rem 1rem;
  background: var(--bg);
  color: var(--ink);
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
}

.btn-subscribe:hover { background: rgba(250,250,248,0.85); }

.footer-legal-note {
  font-size: 0.72rem;
  color: rgba(250,250,248,0.4);
  margin-top: 0.4rem;
}

/* Footer bottom bar */
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rg-notice {
  font-size: 0.75rem;
  color: rgba(250,250,248,0.5);
  line-height: 1.55;
}

.copyright {
  font-size: 0.72rem;
  color: rgba(250,250,248,0.35);
}

/* === Scroll reveal === */
.reveal {
  opacity: 0;
  transform: translateY(18px) rotate(-0.4deg);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-img, .child-pages-section > section,
  .featured-reviews-section > section,
  .aside-inner, .author-section { transform: none; }
}

/* === Responsive: tablet === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-section { min-height: auto; padding: 2rem 1.5rem; }
}

/* === Responsive: mobile ≤768px === */
@media (max-width: 768px) {
  /* Show toggle, hide nav links */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--rule);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-dl {
    flex-direction: column;
  }

  .nav-dl dd a {
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--rule);
    padding-left: 0;
  }

  .nav-dl dd:first-of-type a { border-left: none; }

  /* Header brand row — one row */
  .header-brand-row {
    padding: 0.5rem 1rem;
  }

  .brand-name { font-size: 1rem; }

  /* CTA compact on mobile */
  .cta { padding: 0.4rem 0.65rem; font-size: 0.7rem; }

  /* Hero stacks */
  .hero-section {
    flex-direction: column;
    min-height: auto;
    padding: 1.5rem 1rem 2rem;
    gap: 1.25rem;
  }

  .hero-copy, .hero-media { flex: none; width: 100%; }

  .hero-h1 { font-size: 2rem; }

  /* Main stacks */
  main {
    flex-direction: column;
    padding: 1.5rem 1rem 2rem;
  }

  .site-aside {
    flex: none;
    width: 100%;
  }

  .aside-inner {
    position: static;
    transform: none;
  }

  /* Footer two columns → one */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-banner { padding: 1.5rem 1rem 1.25rem; }
  .page-banner h1 { font-size: 1.65rem; }

  /* Cards no tilt on mobile */
  .child-pages-section > section,
  .featured-reviews-section > section { transform: none; }
}

@media (max-width: 480px) {
  .header-cta-group { gap: 0.3rem; }
  .cta { padding: 0.35rem 0.5rem; font-size: 0.67rem; letter-spacing: 0.04em; }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}