:root {
  --bg: #f4eadb;
  --bg-soft: #fbf7f1;
  --sand: #e6d0b2;
  --copper: #bf7a43;
  --copper-strong: #965126;
  --ink: #1d1712;
  --ink-soft: #45392d;
  --slate: #6d756e;
  --ocean: #255f71;
  --line: rgba(35, 27, 21, 0.12);
  --line-strong: rgba(37, 95, 113, 0.26);
  --shadow: 0 18px 42px rgba(32, 22, 14, 0.09);
  --radius: 28px;
  --max: 1180px;
  --sale-height: 48px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background:
    radial-gradient(circle at 82% 6%, rgba(37, 95, 113, 0.12), transparent 18%),
    radial-gradient(circle at 12% 14%, rgba(230, 208, 178, 0.55), transparent 24%),
    linear-gradient(180deg, #fbf7f1 0%, #f3e8d8 56%, #efe2d1 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("/images/topography.svg");
  background-size: 640px;
  background-repeat: repeat;
  mix-blend-mode: multiply;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--copper-strong);
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only,
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(var(--max), calc(100vw - 1.5rem));
  margin: 0 auto;
}

.page-main {
  position: relative;
  z-index: 1;
}

.section-gap {
  padding-top: 2.25rem;
}

.sale-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: var(--sale-height);
  border-bottom: 1px solid rgba(29, 23, 18, 0.08);
  background: rgba(23, 18, 13, 0.9);
  backdrop-filter: blur(18px);
}

.sale-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  min-height: var(--sale-height);
  padding: 0.55rem 0;
  color: #f7eee2;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.sale-flag {
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sale-primary {
  color: #ffcf98;
}

.sale-secondary {
  color: #f5e3c8;
}

.sale-divider {
  opacity: 0.6;
}

.site-header {
  position: sticky;
  top: var(--sale-height);
  z-index: 80;
  border-bottom: 1px solid rgba(29, 23, 18, 0.08);
  background: rgba(251, 247, 241, 0.86);
  backdrop-filter: blur(18px);
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 0 1rem;
}

body.nav-open .site-nav {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(29, 23, 18, 0.09);
  color: var(--ink-soft);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(191, 122, 67, 0.12);
  color: var(--ink);
}

.nav-toggle {
  width: 52px;
  height: 52px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 23, 18, 0.1);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

.hero-grid,
.spotlight-grid,
.planner-layout,
.feature-grid,
.footer-grid,
.article-layout {
  display: grid;
  gap: 1.25rem;
}

.hero-copy,
.hero-visual,
.spotlight-copy,
.spotlight-panel,
.article-body,
.article-hero-copy,
.article-hero-media {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.7rem, 10vw, 5.7rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

p {
  margin: 0;
}

.lede,
.section-copy,
.footer-copy {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.55rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #bb723d 0%, #d59a61 100%);
  color: #fff7ef;
  box-shadow: 0 14px 30px rgba(162, 94, 42, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(29, 23, 18, 0.12);
  color: var(--ink);
}

.button-large {
  width: 100%;
  min-height: 58px;
  font-size: 1.03rem;
}

.stat-grid,
.route-grid,
.buyer-grid,
.article-grid,
.link-grid,
.split-cards,
.field-grid,
.spec-grid,
.meta-row {
  display: grid;
  gap: 1rem;
}

.hero-home .stat-grid {
  margin-top: 1.6rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.stat-card,
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(29, 23, 18, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.stat-card {
  padding: 1.05rem 1.1rem;
}

.stat-card strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  color: var(--ink);
}

.stat-card span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-frame {
  margin: 0;
  position: relative;
  min-height: 100%;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(29, 23, 18, 0.12);
  box-shadow: 0 26px 64px rgba(29, 23, 18, 0.18);
  background: #d1bea8;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.05) 0%, rgba(10, 9, 8, 0.42) 100%),
    radial-gradient(circle at 18% 15%, rgba(255, 214, 164, 0.28), transparent 16%);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/topography.svg");
  background-size: 520px;
  opacity: 0.2;
  mix-blend-mode: screen;
}

.hero-frame-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(14, 12, 10, 0.58);
  color: #f7efe5;
  backdrop-filter: blur(12px);
}

.hero-frame-caption span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: #f9c998;
}

.section-head,
.section-subhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.section-subhead h3 {
  font-size: 1.3rem;
}

.route-card-image,
.article-card-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.route-card-body,
.article-card-body,
.buyer-card,
.link-card,
.spotlight-panel,
.planner-card,
.planner-output,
.legal-card,
.error-card {
  padding: 1.35rem;
}

.route-card-body,
.article-card-body {
  display: grid;
  gap: 0.72rem;
}

.card-detail,
.article-date,
.article-tag,
.planner-note,
.fineprint {
  color: var(--slate);
  font-size: 0.92rem;
}

.article-tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--copper);
}

.buyer-card {
  display: grid;
  gap: 0.75rem;
}

.spotlight-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 241, 233, 0.86) 100%);
}

.clean-list,
.article-list {
  margin: 0;
  padding-left: 1.15rem;
}

.clean-list li,
.article-list li {
  margin-bottom: 0.55rem;
}

.form-panel {
  display: grid;
  gap: 1.4rem;
  padding: 1.2rem;
  border-radius: 34px;
  border: 1px solid rgba(29, 23, 18, 0.08);
  background:
    linear-gradient(135deg, rgba(26, 20, 15, 0.97) 0%, rgba(47, 33, 24, 0.93) 42%, rgba(29, 22, 18, 0.94) 100%);
  color: #f7efe5;
  box-shadow: 0 28px 70px rgba(23, 18, 14, 0.28);
}

.form-panel h2,
.form-panel .lede,
.form-panel .form-meta,
.form-panel a {
  color: #f7efe5;
}

.form-shell {
  display: grid;
  gap: 0.85rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.45rem;
  color: inherit;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  padding: 1rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f8f3ea;
}

input::placeholder,
textarea::placeholder {
  color: rgba(248, 243, 234, 0.66);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(255, 211, 159, 0.24);
  border-color: rgba(255, 211, 159, 0.52);
}

.notice {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  font-weight: 700;
}

.notice.success {
  background: rgba(90, 160, 118, 0.18);
  color: #ddf6e4;
}

.notice.error {
  background: rgba(188, 90, 90, 0.18);
  color: #ffd7d7;
}

.share-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.share-label {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 23, 18, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.share-button {
  appearance: none;
}

.planner-output h2 {
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  margin-bottom: 1rem;
}

.spec-grid dt {
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.spec-grid dd {
  margin: 0;
  color: var(--ink-soft);
}

.article-hero,
.article-layout {
  display: grid;
  gap: 1.25rem;
}

.article-body {
  display: grid;
  gap: 1.2rem;
  padding: 1.4rem;
}

.article-body h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  margin-top: 0.4rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
  color: var(--slate);
  font-size: 0.92rem;
}

.text-link {
  font-weight: 700;
  color: var(--ocean);
}

.site-footer {
  padding: 3rem 0 2rem;
}

.footer-grid {
  gap: 1.2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(29, 23, 18, 0.08);
}

.site-footer a {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}

.footer-title {
  margin-bottom: 0.8rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
}

.footer-bottom {
  padding-top: 1.6rem;
  color: var(--slate);
  font-size: 0.88rem;
}

.legal-shell,
.error-shell {
  padding-bottom: 2rem;
}

.error-card {
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

body.is-ready [data-reveal].is-visible,
body:not(.is-ready) [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .hero-home .stat-grid,
  .field-grid,
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-grid,
  .buyer-grid,
  .article-grid,
  .link-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-panel {
    grid-template-columns: 0.95fr 1.05fr;
    padding: 1.5rem;
  }

  .split-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .brand-row {
    min-height: 74px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0 0 1rem;
  }

  .hero-grid,
  .spotlight-grid,
  .planner-layout,
  .article-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .route-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .buyer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-grid.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-body {
    padding: 1.8rem;
  }

  .route-grid-full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}