* {
  box-sizing: border-box;
}

:root {
  --page: #f7f8fb;
  --surface: rgba(255, 255, 255, 0.86);
  --line: rgba(21, 34, 29, 0.12);
  --text: #15221d;
  --muted: #51625b;
  --brand: #157f70;
  --brand-deep: #0f5f54;
  --accent: #ef6b2e;
  --shadow: 0 18px 48px rgba(32, 38, 51, 0.1);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(21, 127, 112, 0.14), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(239, 107, 46, 0.13), transparent 26%),
    linear-gradient(180deg, #f7f8fb 0%, #eef4f2 58%, #fbfcfc 100%);
  font: 16px/1.65 "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

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

.page-shell {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header,
.content-card,
.site-footer {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #f8f7f2;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__text strong {
  font-size: 1rem;
}

.brand__text span {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--text);
  font-weight: 700;
}

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.95rem;
  backdrop-filter: blur(18px);
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(21, 127, 112, 0.1);
  color: var(--text);
  transform: translateY(-1px);
}

.content-card {
  padding: clamp(24px, 5vw, 44px);
  border-radius: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h2 {
  margin: 32px 0 8px;
  color: var(--text);
  font-size: 1.25rem;
}

p,
li {
  color: var(--muted);
}

p {
  margin: 18px 0 0;
}

ul,
ol {
  margin: 18px 0 0;
  padding-left: 1.3rem;
  color: var(--muted);
}

li + li {
  margin-top: 0.72rem;
}

strong {
  color: var(--text);
}

main a {
  color: var(--brand-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lede {
  max-width: 64ch;
  font-size: 1.08rem;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #f8f7f2;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
  box-shadow: 0 12px 28px rgba(21, 127, 112, 0.18);
}

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

.guide-button--secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  box-shadow: none;
}

.guide-index-intro,
.guide-callout,
.guide-toc,
.guide-card,
.related-links,
.guide-steps,
.guide-summary-grid article {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(32, 38, 51, 0.08);
}

.guide-index-intro,
.guide-callout,
.guide-toc,
.related-links,
.guide-steps,
.guide-summary-grid article {
  padding: 22px;
}

.guide-callout {
  margin-top: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(240, 248, 245, 0.88) 100%);
}

.guide-callout p:first-child,
.guide-toc p:first-child,
.guide-summary-grid p:first-child {
  margin-top: 0;
}

.guide-toc {
  margin-top: 28px;
}

.guide-toc ul,
.guide-summary-grid ul,
.related-links ul,
.guide-card ul,
.guide-steps ol {
  margin-top: 14px;
}

.guide-grid,
.guide-summary-grid,
.related-links__grid {
  display: grid;
  gap: 18px;
}

.guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.guide-card h2,
.guide-card h3 {
  margin: 0;
}

.guide-card__eyebrow,
.guide-section-label {
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-card p,
.guide-card ul {
  margin-top: 0;
}

.guide-card__links,
.related-links__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.guide-link::after {
  content: '→';
}

.guide-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}

.guide-summary-grid article h2,
.guide-summary-grid article h3,
.related-links h2,
.guide-steps h2,
.guide-toc h2 {
  margin: 0;
  font-size: 1.15rem;
}

.guide-steps,
.related-links {
  margin-top: 30px;
}

.guide-article section {
  margin-top: 32px;
}

.guide-article section:first-of-type {
  margin-top: 28px;
}

.guide-article h2 {
  scroll-margin-top: 24px;
}

.guide-article h3 {
  margin: 26px 0 0;
  font-size: 1.02rem;
}

.guide-article p + h3,
.guide-article ul + h3,
.guide-article ol + h3 {
  margin-top: 24px;
}

.guide-note {
  font-weight: 700;
  color: var(--text);
}

.site-footer {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 18px;
}

.site-footer p {
  max-width: 720px;
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1 1 0;
    text-align: center;
  }

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

  .guide-button,
  .guide-card__links a,
  .related-links__grid a {
    width: 100%;
  }
}
