:root {
  --guide-ink: #282624;
  --guide-paper: #f9f6f2;
  --guide-soft: #f4f1ed;
  --guide-line: rgba(40, 38, 36, 0.18);
}

.guide-page {
  background: var(--guide-paper);
  color: var(--guide-ink);
}

.guide-shell {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.guide-hero {
  padding: 10rem 0 5rem;
  text-align: center;
}

.guide-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #78716c;
}

.guide-breadcrumbs a,
.guide-prose a,
.guide-related a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.guide-eyebrow {
  margin-bottom: 1.25rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #57534e;
}

.guide-title {
  max-width: 980px;
  margin: 0 auto;
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 8vw, 6.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.guide-lede {
  max-width: 760px;
  margin: 2rem auto 0;
  color: #57534e;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.4rem;
  margin-top: 2rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #78716c;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding-bottom: 7rem;
}

.guide-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--guide-line);
  background: #fff;
  color: var(--guide-ink);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, box-shadow 220ms ease;
}

.guide-card:hover,
.guide-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(40, 38, 36, 0.45);
  box-shadow: 0 24px 50px -32px rgba(40, 38, 36, 0.45);
}

.guide-card h2 {
  margin: 1rem 0 1.25rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
}

.guide-card p {
  color: #57534e;
  font-size: 1rem;
  line-height: 1.7;
}

.guide-card-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 44px;
  margin-top: 2rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-prose {
  width: min(100% - 2rem, 780px);
  margin: 0 auto;
  padding-bottom: 7rem;
  font-size: 1.08rem;
  line-height: 1.82;
}

.guide-prose h2 {
  margin: 4.5rem 0 1.25rem;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.guide-prose h3 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.guide-prose p,
.guide-prose ul,
.guide-prose ol {
  margin: 1rem 0;
}

.guide-prose ul,
.guide-prose ol {
  padding-left: 1.4rem;
}

.guide-prose li {
  margin: 0.55rem 0;
}

.guide-answer,
.guide-callout,
.guide-example,
.guide-toc {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--guide-line);
  background: #fff;
}

.guide-answer {
  font-size: 1.15rem;
  line-height: 1.7;
}

.guide-toc strong,
.guide-callout strong,
.guide-example strong {
  display: block;
  margin-bottom: 0.75rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-toc ol {
  margin-bottom: 0;
}

.guide-example {
  background: var(--guide-soft);
}

.guide-example p {
  margin: 0.5rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  line-height: 1.65;
}

.guide-table-wrap {
  margin: 2rem 0;
  overflow-x: auto;
}

.guide-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.guide-table th,
.guide-table td {
  padding: 1rem;
  border: 1px solid var(--guide-line);
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  background: var(--guide-soft);
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-cta {
  width: min(100% - 2rem, 980px);
  margin: 0 auto 7rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  background: var(--guide-ink);
  color: var(--guide-soft);
  text-align: center;
}

.guide-cta h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.05;
}

.guide-cta p {
  max-width: 620px;
  margin: 1.25rem auto 0;
  color: #d6d3d1;
  line-height: 1.7;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.guide-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--guide-soft);
  border-radius: 999px;
  background: var(--guide-soft);
  color: var(--guide-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-button-secondary {
  background: transparent;
  color: var(--guide-soft);
}

.guide-related {
  width: min(100% - 2rem, 780px);
  margin: -3rem auto 7rem;
  padding-top: 2rem;
  border-top: 1px solid var(--guide-line);
}

.guide-related h2 {
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
}

@media (max-width: 760px) {
  .guide-hero {
    padding-top: 8.5rem;
  }

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

  .guide-card {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card {
    transition: none;
  }

  .guide-card:hover,
  .guide-card:focus-within {
    transform: none;
  }
}
