/* Golden Family Roots — premium editorial genealogy theme */
:root {
  --bg: #faf8f4;
  --bg-warm: #fffdf8;
  --cream: #f3efe6;
  --cream-deep: #ebe4d6;
  --forest: #1a3d32;
  --forest-soft: #2d5c4b;
  --forest-muted: rgba(26, 61, 50, 0.08);
  --gold: #b8944a;
  --gold-soft: #d4b978;
  --gold-muted: rgba(184, 148, 74, 0.18);
  --ink: #1f1c18;
  --ink-soft: #4d463e;
  --line: rgba(31, 28, 24, 0.1);
  --shadow: 0 22px 60px rgba(26, 61, 50, 0.08);
  --shadow-sm: 0 12px 34px rgba(26, 61, 50, 0.06);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: "Cormorant Garamond", "Libre Baskerville", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image: var(--texture);
  color: var(--ink);
  font-size: clamp(17px, 1.05vw, 19px);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--forest-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--forest);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 10px;
  z-index: 10000;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.55rem);
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
}

h3 {
  font-size: clamp(1.28rem, 2vw, 1.62rem);
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-soft);
  font-weight: 700;
}

.pill-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.pill strong {
  color: var(--ink);
  font-weight: 700;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.65vw, 1.22rem);
  max-width: 54ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    background 0.22s var(--ease),
    border-color 0.22s var(--ease);
  font-size: 1rem;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-soft) 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(26, 61, 50, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(26, 61, 50, 0.32);
}

.btn-secondary {
  background: var(--bg-warm);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: rgba(184, 148, 74, 0.45);
  background: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #1a140c;
  box-shadow: 0 12px 30px rgba(184, 148, 74, 0.28);
}

.btn-gold:hover {
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.12rem, 2.6vw, 1.42rem);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--forest);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-desktop > a,
.nav-desktop .nav-link-btn {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 10px 12px;
  border-radius: 12px;
  transition:
    background 0.2s,
    color 0.2s;
}

.nav-desktop > a:hover,
.nav-desktop .nav-link-btn:hover {
  background: var(--forest-muted);
  color: var(--forest);
}

.nav-dropdown {
  position: relative;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.nav-link-btn .caret {
  transition: transform 0.2s var(--ease);
}

.nav-dropdown.is-open .nav-link-btn .caret {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    visibility 0.2s;
}

.nav-dropdown.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.dropdown-panel a:hover {
  background: var(--cream);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-warm);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.icon-btn:hover {
  background: #fff;
  border-color: rgba(184, 148, 74, 0.35);
}

.hamburger {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
  padding: 14px 20px 22px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a,
.mobile-nav button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 6px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border: none;
  background: transparent;
  border-bottom: 1px dashed var(--line);
  font-size: 1rem;
  cursor: pointer;
}

.mobile-sub {
  padding-left: 12px;
}

.mobile-sub a {
  font-weight: 600;
  border-bottom: none;
}

@media (max-width: 1040px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: inline-grid;
  }
}

/* Sections */
section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.section-muted {
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 45%);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-head p {
  max-width: 52ch;
  color: var(--ink-soft);
  margin: 0;
}

/* Hero */
.hero {
  padding-top: clamp(36px, 5vw, 68px);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 520px at 80% 0%, rgba(184, 148, 74, 0.14), transparent 55%),
    radial-gradient(900px 420px at 10% 20%, rgba(26, 61, 50, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.trust-strip .dot {
  opacity: 0.45;
}

.hero-media {
  position: relative;
}

.blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.55;
}

.blob.a {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at 30% 30%, rgba(184, 148, 74, 0.55), transparent 65%);
  top: -46px;
  right: -34px;
}

.blob.b {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 70% 40%, rgba(45, 92, 75, 0.35), transparent 70%);
  bottom: -70px;
  left: -50px;
}

.hero-photo {
  position: relative;
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-photo figcaption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
}

/* Cards grids */
.cards-grid {
  display: grid;
  gap: 18px;
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cards-4 {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: linear-gradient(180deg, #fff 0%, var(--bg-warm) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 10px;
}

.feature-card p {
  color: var(--ink-soft);
  margin: 0;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--gold-muted);
  border: 1px solid rgba(184, 148, 74, 0.28);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--forest);
  font-size: 1.35rem;
}

/* Records cards */
.records-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1100px) {
  .records-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .records-grid {
    grid-template-columns: 1fr;
  }
}

.record-card {
  background: var(--bg-warm);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.record-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.record-card .thumb {
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.record-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.record-body p {
  color: var(--ink-soft);
  margin: 0;
}

.record-body .text-link {
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  color: var(--forest);
}

.record-body .text-link:hover {
  text-decoration: underline;
}

/* Article cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 1100px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}

.article-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.article-card .thumb {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--forest-muted);
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.article-body h3 {
  margin: 0;
}

.article-body h3 a {
  color: inherit;
  text-decoration: none;
}

.article-body h3 a:hover {
  text-decoration: underline;
}

/* Testimonials */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 980px) {
  .test-grid {
    grid-template-columns: 1fr;
  }
}

.test-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.test-card blockquote {
  margin: 0;
  font-size: 1.06rem;
}

.test-card footer {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.test-card strong {
  color: var(--ink);
}

/* Newsletter band */
.news-band {
  border-radius: calc(var(--radius) + 10px);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
  background:
    linear-gradient(120deg, rgba(184, 148, 74, 0.14), transparent 45%),
    linear-gradient(180deg, var(--bg-warm), var(--cream));
  box-shadow: var(--shadow);
}

.news-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.news-form input[type="email"] {
  flex: 1 1 240px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  padding: 14px 18px;
  font: inherit;
  background: #fff;
}

.news-foot {
  margin-top: 12px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* FAQ */
.faq {
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq-trigger .faq-icon {
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.faq-item.is-open .faq-trigger .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  display: none;
  padding: 0 18px 16px;
  color: var(--ink-soft);
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* Final CTA */
.cta-banner {
  border-radius: calc(var(--radius) + 12px);
  border: 1px solid var(--line);
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(184, 148, 74, 0.22), transparent 55%),
    linear-gradient(135deg, var(--forest) 0%, #143029 55%, var(--forest-soft) 120%);
  color: #f4efe6;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  margin: 0 0 12px;
}

.cta-banner p {
  color: rgba(244, 239, 230, 0.86);
  max-width: 62ch;
  margin: 0 auto 20px;
}

.cta-banner .hero-cta {
  justify-content: center;
}

.cta-banner .btn-secondary {
  background: rgba(255, 253, 248, 0.1);
  color: #fff;
  border-color: rgba(255, 253, 248, 0.28);
}

.cta-banner .btn-secondary:hover {
  background: rgba(255, 253, 248, 0.16);
}

/* Footer */
.site-footer {
  background: #121c19;
  color: #e9e2d8;
  padding: clamp(48px, 6vw, 80px) 0 28px;
  margin-top: 12px;
}

.site-footer a {
  color: #f1d9b4;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 0.85fr 0.95fr;
  gap: 26px;
}

@media (max-width: 980px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

.foot-brand p {
  color: #c9bfb2;
  max-width: 46ch;
}

.foot-col h3 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.foot-links a {
  display: block;
  padding: 7px 0;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 28px;
  padding-top: 18px;
  color: #b3a89b;
  font-size: 0.94rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.logo-inverse {
  color: #fff;
}

.logo-inverse span {
  color: var(--gold-soft);
}

/* Family tree demo */
.tree-section .split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 980px) {
  .tree-section .split {
    grid-template-columns: 1fr;
  }
}

.tree-board {
  background: linear-gradient(180deg, #fff 0%, var(--bg-warm) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.tree-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  opacity: 0.35;
  pointer-events: none;
}

.tree-svg-wrap {
  position: relative;
  z-index: 1;
}

.family-tree-svg {
  width: 100%;
  height: auto;
}

.tree-node {
  cursor: pointer;
  transition:
    transform 0.22s var(--ease),
    filter 0.22s var(--ease);
}

.tree-node rect {
  transition:
    fill 0.22s,
    stroke 0.22s;
}

.tree-node:hover rect,
.tree-node.is-active rect {
  fill: rgba(184, 148, 74, 0.22);
  stroke: rgba(26, 61, 50, 0.55);
}

.tree-node:hover,
.tree-node.is-active {
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 18px rgba(26, 61, 50, 0.12));
}

.tree-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.tree-detail h3 {
  margin: 0 0 10px;
}

.tree-meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.kv span {
  color: var(--ink-soft);
}

/* Blog layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 26px;
  align-items: start;
}

@media (max-width: 980px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-warm);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.filter-btn.is-active {
  background: var(--forest-muted);
  border-color: rgba(26, 61, 50, 0.22);
  color: var(--forest);
}

.blog-search {
  width: 100%;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  padding: 12px 16px;
  font: inherit;
  margin-bottom: 14px;
}

.article-card.is-hidden {
  display: none;
}

/* Article / guide pages */
.page-hero {
  padding: clamp(44px, 6vw, 78px) 0 clamp(26px, 4vw, 40px);
}

.page-hero-muted {
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 65%);
}

.breadcrumb {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.breadcrumb a {
  text-decoration: none;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.layout-guide {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 980px) {
  .layout-guide {
    grid-template-columns: 1fr;
  }
}

.toc {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg-warm);
}

.toc h2 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.toc a {
  display: block;
  padding: 8px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.toc a:hover {
  background: var(--cream);
}

.cta-inline {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(135deg, rgba(184, 148, 74, 0.14), transparent);
  margin: 28px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.card-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-warm);
  padding: 22px;
}

.form-grid label {
  display: block;
  font-weight: 800;
  margin: 12px 0 8px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.note-soft {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .feature-card:hover,
  .record-card:hover,
  .article-card:hover {
    transform: none;
  }
}
