:root {
  --ink: #1a2a32;
  --ink-soft: #3d525c;
  --paper: #e8eef1;
  --paper-2: #f4f7f8;
  --accent: #0f6b5c;
  --accent-2: #c45c26;
  --line: rgba(26, 42, 50, 0.12);
  --shadow: 0 18px 40px rgba(26, 42, 50, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(15, 107, 92, 0.14), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(196, 92, 38, 0.1), transparent 50%),
    linear-gradient(180deg, #dfe8ec 0%, var(--paper) 38%, var(--paper-2) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--accent-2);
}

img {
  max-width: 100%;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 0.4rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border-radius: 0.4rem;
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  width: 100%;
}

.hero {
  padding: 4.5rem 0 3.2rem;
  min-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  animation: rise 0.7s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.9rem;
  max-width: 18ch;
}

.hero-lead {
  max-width: 36rem;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #f7fafb;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--line);
  color: var(--ink);
}

.page-hero {
  padding: 2.4rem 0 1.2rem;
  animation: rise 0.55s ease both;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  max-width: 18ch;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-soft);
}

.content {
  padding: 1rem 0 3.5rem;
  animation: rise 0.7s ease 0.08s both;
}

.content h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 2.2rem 0 0.7rem;
  letter-spacing: -0.01em;
}

.content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.45rem;
}

.content p {
  margin: 0 0 1rem;
  max-width: 46rem;
}

.content ul,
.content ol {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  max-width: 44rem;
}

.content li {
  margin-bottom: 0.45rem;
}

.content dl {
  margin: 0 0 1.4rem;
  max-width: 44rem;
}

.content dt {
  font-weight: 700;
  margin-top: 0.9rem;
}

.content dd {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

.note {
  border-left: 3px solid var(--accent);
  padding: 0.2rem 0 0.2rem 0.9rem;
  color: var(--ink-soft);
  margin: 1.2rem 0;
  max-width: 44rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
  max-width: 46rem;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 0.55rem 0 0.2rem;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
}

.related a {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  border-radius: 0.3rem;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.related a:hover {
  border-color: var(--accent);
  background: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.4rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--ink-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.6rem 0 0.9rem;
  }

  .nav.is-open {
    display: flex;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 2.8rem;
  }
}
