:root {
  --bg: #f4ecdc;
  --bg-soft: #efe6d2;
  --card: #fffdf7;
  --card-soft: #faf3e3;
  --ink: #1a2a22;
  --ink-soft: #4e5a52;
  --ink-mute: #8a7559;
  --green: #1f4031;
  --green-mid: #2a5f3f;
  --green-soft: #dce9df;
  --gold: #c89a47;
  --border: #e3d8bd;
  --border-soft: #ece3cd;
  --shadow-sm: 0 1px 2px rgba(31, 64, 49, 0.05), 0 1px 3px rgba(31, 64, 49, 0.05);
  --shadow-md: 0 16px 40px -24px rgba(31, 64, 49, 0.24);
  --radius: 18px;
  --radius-sm: 12px;
  --content: 1140px;
  --sans: "Geist", ui-sans-serif, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: ui-monospace, "Cascadia Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(200, 154, 71, 0.12), transparent 24%),
    radial-gradient(circle at bottom left, rgba(42, 95, 63, 0.08), transparent 28%),
    var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--green);
  color: #fffdf7;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(244, 236, 220, 0.84);
  border-bottom: 1px solid rgba(227, 216, 189, 0.7);
}

.topbar-inner {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f5f4f0 url("/brand/selvio-favicon.png") center / 92% 92% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(31, 64, 49, 0.06);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--green);
}

.brand-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a,
.inline-link {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.topnav a {
  text-decoration-color: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, text-decoration-color 0.15s ease;
}

.topnav a:hover {
  background: rgba(255, 255, 255, 0.65);
  text-decoration-color: currentColor;
}

.hero {
  padding: 56px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 30px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  color: var(--green);
  font-family: var(--serif);
  font-size: clamp(3.1rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.hero p,
.page-hero p {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions,
.page-hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 64, 49, 0.24);
}

.button-primary {
  background: var(--green);
  color: #fffdf7;
  border-color: var(--green);
}

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

.hero-panel,
.cta-box,
.section-card,
.guide-card,
.faq-item,
.page-panel,
.related-card {
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero-panel {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.hero-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}

.hero-panel p {
  font-size: 0.98rem;
}

.hero-points,
.compact-list,
.cta-list,
.breadcrumb,
.related-links,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-points li,
.compact-list li,
.cta-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
}

.hero-points li + li,
.compact-list li + li,
.cta-list li + li {
  margin-top: 10px;
}

.hero-points li::before,
.compact-list li::before,
.cta-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #4d7f63);
  box-shadow: 0 0 0 3px rgba(42, 95, 63, 0.12);
}

.section {
  padding: 28px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-soft);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  padding: 22px;
}

.guide-card h3,
.page-panel h2,
.section-card h2,
.related-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.26rem;
  letter-spacing: -0.03em;
}

.guide-card p,
.page-panel p,
.section-card p,
.related-card p,
.faq-answer {
  margin: 0;
  color: var(--ink-soft);
}

.guide-meta,
.page-meta,
.cta-note,
.micro-label {
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-meta {
  margin-bottom: 14px;
}

.guide-card .button {
  margin-top: 18px;
}

.page-hero {
  padding: 42px 0 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(138, 117, 89, 0.75);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 24px;
  align-items: start;
}

.page-content {
  display: grid;
  gap: 18px;
}

.section-card,
.page-panel,
.cta-box,
.related-card {
  padding: 24px;
}

.section-card h2 {
  font-size: 1.4rem;
}

.page-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.page-panel p + p,
.section-card p + p,
.faq-answer p + p {
  margin-top: 12px;
}

.callout {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(42, 95, 63, 0.16);
  background: linear-gradient(180deg, rgba(221, 235, 226, 0.82), rgba(248, 246, 238, 0.92));
}

.callout strong {
  color: var(--green);
}

.step-list {
  counter-reset: steps;
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  min-height: 58px;
  padding: 14px 16px 14px 60px;
  border: 1px solid rgba(227, 216, 189, 0.92);
  border-radius: 16px;
  background: rgba(250, 243, 227, 0.74);
  color: var(--ink-soft);
}

.step-list li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green);
  color: #fffdf7;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.faq-item {
  padding: 18px 20px;
}

.faq-question {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-links li + li {
  margin-top: 10px;
}

.cta-box {
  margin: 22px 0 8px;
}

.cta-box h2 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.cta-box p {
  margin: 0;
  max-width: 58ch;
}

.cta-note {
  margin-top: 16px;
}

.footer {
  padding: 28px 0 56px;
}

.footer-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(227, 216, 189, 0.9);
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.82);
}

.footer-copy {
  max-width: 48ch;
}

.footer-copy p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

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

.footer-links a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
}

.footer-links a:hover {
  color: var(--green);
  text-decoration-color: currentColor;
}

@media (max-width: 980px) {
  .hero-grid,
  .page-layout,
  .guide-grid,
  .related-grid,
  .footer-card {
    grid-template-columns: 1fr;
  }

  .page-panel {
    position: static;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-shell,
  .topbar-inner {
    width: min(calc(100% - 28px), var(--content));
  }

  .topbar-inner {
    min-height: 68px;
  }

  .topnav {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .page-hero,
  .section {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero-panel,
  .section-card,
  .page-panel,
  .cta-box,
  .guide-card,
  .related-card,
  .faq-item {
    padding: 20px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  .hero p,
  .page-hero p,
  .section-head p,
  .guide-card p,
  .section-card p,
  .cta-box p {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .page-hero-actions,
  .cta-actions {
    flex-direction: column;
  }
}
