:root {
  --bg: #f3ebdf;
  --bg-strong: #111111;
  --paper: rgba(255, 251, 245, 0.92);
  --paper-strong: #fffaf2;
  --ink: #171412;
  --ink-soft: #5d5246;
  --line: rgba(23, 20, 18, 0.12);
  --line-strong: rgba(23, 20, 18, 0.26);
  --accent: #b5773c;
  --accent-bright: #d29a54;
  --accent-ink: #3a2514;
  --success: #295f45;
  --shadow: 0 30px 80px rgba(47, 31, 18, 0.16);
  --shadow-soft: 0 18px 40px rgba(47, 31, 18, 0.08);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1200px;
  --header-height: 92px;
  --font-display: "Bodoni Moda", Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(210, 154, 84, 0.18), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(29, 25, 20, 0.08), transparent 28%),
    linear-gradient(180deg, #f8f1e7 0%, var(--bg) 45%, #efe4d5 100%);
  min-height: 100vh;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
    radial-gradient(rgba(0, 0, 0, 0.035) 0.6px, transparent 0.6px);
  background-size: auto, 11px 11px;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 50;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 241, 231, 0.76);
  border-bottom: 1px solid rgba(23, 20, 18, 0.08);
}

.nav-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.brand-mark {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(198, 139, 74, 0.94), rgba(245, 235, 221, 0.75)),
    #121212;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), var(--shadow-soft);
  position: relative;
  flex: none;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.brand-mark::before {
  width: 1.5rem;
  height: 0.14rem;
  background: rgba(18, 18, 18, 0.9);
  left: 0.56rem;
  top: 1.32rem;
  transform: rotate(-44deg);
}

.brand-mark::after {
  width: 0.55rem;
  height: 0.55rem;
  background: rgba(18, 18, 18, 0.9);
  right: 0.6rem;
  bottom: 0.62rem;
}

.brand-copy {
  display: grid;
  gap: 0.12rem;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.brand-copy span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  font-size: 0.95rem;
  color: rgba(23, 20, 18, 0.82);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.75);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 1rem;
  height: 0.12rem;
  background: var(--ink);
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-small {
  min-height: 2.75rem;
  padding-inline: 1rem;
  font-size: 0.92rem;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #1d120a;
  box-shadow: 0 14px 28px rgba(181, 119, 60, 0.22);
}

.button-secondary,
.button-outline {
  background: rgba(255, 251, 245, 0.72);
  border-color: rgba(23, 20, 18, 0.14);
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(58, 37, 20, 0.75);
}

.hero,
.guide-hero {
  padding: clamp(4rem, 9vw, 8rem) 0 3rem;
}

.hero-grid,
.guide-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1,
.guide-hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-copy h1 span,
.guide-hero-copy h1 span {
  display: block;
  color: rgba(23, 20, 18, 0.72);
}

.hero-lead {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.2rem;
  color: rgba(23, 20, 18, 0.82);
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 40rem;
  display: grid;
  place-items: center;
}

.signal-card {
  position: absolute;
  background: rgba(255, 250, 242, 0.86);
  border: 1px solid rgba(23, 20, 18, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  backdrop-filter: blur(16px);
}

.card-large {
  width: min(30rem, 100%);
  top: 0.8rem;
  left: 0;
}

.card-medium {
  width: min(19rem, 70%);
  right: 0;
  top: 8rem;
}

.card-small {
  width: min(23rem, 82%);
  bottom: 0;
  left: 2.5rem;
}

.tilt-left {
  transform: rotate(-2deg);
}

.tilt-right {
  transform: rotate(3deg);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.status-pill,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-pill {
  background: rgba(41, 95, 69, 0.12);
  color: var(--success);
}

.status-pill.is-private {
  background: rgba(181, 119, 60, 0.12);
  color: var(--accent-ink);
}

.meta-chip {
  background: rgba(23, 20, 18, 0.06);
  color: var(--ink-soft);
}

.signal-card h2,
.guide-summary h2,
.feature-panel h3,
.module-card h3,
.audit-card h3,
.stack-layer p,
.timeline-card h3,
.callout-card h3,
.step-card h3,
.rule-card h3,
.workflow-card h3,
.prompt-card h3,
.do-dont-card h3,
.note-panel h3 {
  margin-top: 0;
}

.signal-card h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.fact-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-top: 1px solid rgba(23, 20, 18, 0.08);
}

.fact-label {
  color: var(--ink-soft);
}

.fact-value {
  text-align: right;
  font-weight: 600;
}

.evidence-note,
.transcript-line,
.summary-note,
.sample-box p:last-child {
  margin-bottom: 0;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.mini-metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.mini-metrics span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.transcript-line {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(23, 20, 18, 0.08);
}

.proof-bar {
  padding: 1.5rem 0 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 250, 242, 0.6);
  border: 1px solid rgba(23, 20, 18, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.proof-grid div {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.36);
}

.proof-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
}

.proof-grid span {
  display: block;
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

.section-block {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-dark {
  background:
    radial-gradient(circle at top right, rgba(210, 154, 84, 0.22), transparent 24%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.98), rgba(27, 23, 20, 0.98));
  color: #f8f0e5;
}

.section-dark .section-header p,
.section-dark .module-card p,
.section-dark .module-card li {
  color: rgba(248, 240, 229, 0.78);
}

.section-dark .eyebrow {
  color: rgba(210, 154, 84, 0.76);
}

.section-contrast {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.84), rgba(243, 235, 223, 0.92));
}

.section-header {
  max-width: 48rem;
  margin-bottom: 2.4rem;
}

.section-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.section-header p:last-child {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.split-grid,
.modules-grid,
.audit-grid,
.timeline-grid,
.callout-grid,
.step-grid,
.rules-grid,
.prompt-grid,
.do-dont-grid {
  display: grid;
  gap: 1rem;
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-panel,
.module-card,
.audit-card,
.timeline-card,
.callout-card,
.step-card,
.rule-card,
.workflow-card,
.prompt-card,
.do-dont-card,
.guide-summary,
.toc-card,
.sample-box,
.note-panel,
.closing-panel {
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(23, 20, 18, 0.09);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.feature-panel,
.module-card,
.audit-card,
.timeline-card,
.callout-card,
.step-card,
.rule-card,
.workflow-card,
.prompt-card,
.do-dont-card,
.note-panel {
  padding: 1.4rem;
}

.feature-panel ul,
.module-card ul,
.security-list,
.summary-steps,
.callout-card ul,
.do-dont-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.panel-index,
.audit-number,
.section-step,
.timeline-week,
.stack-label,
.sample-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding-inline: 0.7rem;
  border-radius: 999px;
  background: rgba(181, 119, 60, 0.14);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modules-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-card {
  background: rgba(255, 248, 239, 0.06);
  border-color: rgba(255, 248, 239, 0.14);
}

.audit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audit-card-roadmap {
  background: linear-gradient(180deg, rgba(255, 244, 227, 0.92), rgba(248, 236, 217, 0.78));
}

.security-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: start;
}

.security-copy p:last-child {
  color: var(--ink-soft);
}

.security-stack {
  display: grid;
  gap: 1rem;
}

.stack-layer {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 242, 0.75);
  border: 1px solid rgba(23, 20, 18, 0.08);
  box-shadow: var(--shadow-soft);
}

.stack-label {
  margin-bottom: 0.8rem;
}

.timeline-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-week {
  margin-bottom: 1rem;
}

.closing-panel {
  margin-top: 2rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.closing-panel h2 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-footer {
  padding: 1.5rem 0 2rem;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.3fr auto auto;
  gap: 1.5rem;
  align-items: start;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(23, 20, 18, 0.1);
}

.footer-brand {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.footer-copy,
.footer-meta {
  margin: 0;
  color: var(--ink-soft);
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.guide-main {
  padding-bottom: 3rem;
}

.guide-summary,
.toc-card {
  padding: 1.4rem;
}

.summary-steps {
  display: grid;
  gap: 0.7rem;
}

.guide-shell {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.toc-card nav {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

.toc-card a {
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  color: var(--ink-soft);
}

.toc-card a.is-active,
.toc-card a:hover,
.toc-card a:focus-visible {
  background: rgba(181, 119, 60, 0.12);
  color: var(--ink);
}

.guide-article {
  display: grid;
  gap: 1.2rem;
}

.guide-section {
  padding: 1.6rem;
  border: 1px solid rgba(23, 20, 18, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 245, 0.74);
  box-shadow: var(--shadow-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 0.96;
}

.section-heading p:last-child {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.sample-box {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
}

.sample-label {
  margin-bottom: 0.65rem;
}

.workflow-stack {
  display: grid;
  gap: 1rem;
}

.prompt-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.do-dont-grid,
.rules-grid,
.callout-grid,
.step-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.do-dont-card.is-negative {
  background: rgba(76, 37, 27, 0.06);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .menu-toggle {
    transition: none;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .guide-hero-grid,
  .security-grid,
  .guide-shell,
  .split-grid,
  .modules-grid,
  .audit-grid,
  .timeline-grid,
  .prompt-grid,
  .do-dont-grid,
  .rules-grid,
  .callout-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 34rem;
  }

  .guide-toc {
    position: static;
  }

  .footer-shell,
  .closing-panel {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 251, 245, 0.96);
    border: 1px solid rgba(23, 20, 18, 0.08);
    box-shadow: var(--shadow-soft);
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .hero-copy h1,
  .guide-hero-copy h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: 28rem;
  }

  .card-large,
  .card-medium,
  .card-small {
    width: min(100%, 25rem);
  }

  .card-large {
    top: 0;
    left: 0;
  }

  .card-medium {
    right: 0;
    top: 7.4rem;
  }

  .card-small {
    left: 1rem;
    bottom: 0.2rem;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.1rem), var(--container));
  }

  .hero,
  .guide-hero,
  .section-block {
    padding-top: 3.4rem;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 31rem;
  }

  .card-large,
  .card-medium,
  .card-small {
    position: absolute;
    width: calc(100% - 1rem);
  }

  .card-large {
    left: 0.5rem;
  }

  .card-medium {
    top: 10.2rem;
    right: 0.5rem;
  }

  .card-small {
    left: 0.5rem;
    bottom: 0;
  }

  .hero-actions,
  .closing-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
  }

  body::before,
  .site-header,
  .guide-toc,
  .site-footer,
  .hero-actions,
  .closing-actions {
    display: none !important;
  }

  .guide-shell,
  .guide-hero-grid {
    display: block;
  }

  .guide-section,
  .guide-summary {
    box-shadow: none;
    background: #fff;
    border: 1px solid #cfc7bc;
  }
}
