:root {
  --bg: #f4f2ed;
  --bg-soft: #ebe7df;
  --surface: #faf9f6;
  --ink: #2a322d;
  --ink-muted: #5c665f;
  --line: #d5d0c6;
  --accent: #3d4f45;
  --accent-soft: #a8c4b0;
  --accent-warm: #8b7355;
  --focus: #2f5d4a;
  --danger: #8b3a3a;
  --success: #2f5d4a;
  --shadow: 0 12px 40px rgba(42, 50, 45, 0.08);
  --radius: 4px;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Libre Franklin", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --wrap: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(168, 196, 176, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 181, 154, 0.22), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--focus);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(244, 242, 237, 0.92);
  border-bottom: 1px solid var(--line);
  animation: fade-down 0.6s ease both;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.35rem;
  height: 1.7rem;
  border-radius: 40% 40% 30% 30%;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  box-shadow: inset 0 -6px 0 rgba(255, 255, 255, 0.15);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #f7faf8 !important;
}

.nav-cta:hover {
  background: var(--focus);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

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

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

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  animation: slow-zoom 18s ease-in-out alternate infinite;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 50, 45, 0.25) 0%, rgba(42, 50, 45, 0.62) 55%, rgba(42, 50, 45, 0.82) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  color: #f7faf8;
  padding: clamp(3rem, 10vh, 6rem) 0;
  max-width: 38rem;
  animation: rise 0.9s ease both;
}

.hero-copy h1 {
  color: #f7faf8;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-copy .lede {
  color: rgba(247, 250, 248, 0.9);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

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

.hero .btn-primary {
  background: var(--accent-soft);
  color: var(--ink);
}

.hero .btn-ghost {
  border-color: rgba(247, 250, 248, 0.45);
  color: #f7faf8;
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-muted {
  background: rgba(235, 231, 223, 0.55);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 0.65rem;
}

.lede {
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.split img {
  width: 100%;
  height: min(420px, 55vw);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.offer-list {
  display: grid;
  gap: 1.25rem;
}

.offer-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.offer-row:hover {
  background: rgba(255, 255, 255, 0.45);
}

.offer-row img {
  width: 140px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius);
}

.offer-meta {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.stack-list {
  display: grid;
  gap: 1.5rem;
}

.stack-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.quote {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
}

.quote footer {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
  animation: rise 0.7s ease both;
}

.page-hero .lede {
  max-width: 42rem;
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.aside-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.25rem;
  border-radius: var(--radius);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.aside-panel dl {
  margin: 0;
}

.aside-panel dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-top: 0.85rem;
}

.aside-panel dd {
  margin: 0.2rem 0 0;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rate-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

label {
  font-weight: 600;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-success {
  display: block;
  background: rgba(47, 93, 74, 0.12);
  color: var(--success);
}

.form-status.is-error {
  display: block;
  background: rgba(139, 58, 58, 0.1);
  color: var(--danger);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.contact-card p {
  margin-bottom: 0.5rem;
}

.blog-list {
  display: grid;
  gap: 1.75rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.blog-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
}

.blog-item h2 {
  font-size: 1.35rem;
}

.muted {
  color: var(--ink-muted);
}

.site-footer {
  margin-top: 2rem;
  background: #2a322d;
  color: #d7ddd8;
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: #e8ede9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #f7faf8;
  margin-bottom: 0.5rem;
}

.footer-tag {
  color: #b7c0b9;
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8c4b0;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: #9aa59d;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(42, 50, 45, 0.96);
  color: #e8ede9;
  border-top: 1px solid rgba(168, 196, 176, 0.35);
  padding: 1rem 0;
  animation: fade-up 0.45s ease both;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner a {
  color: var(--accent-soft);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner .btn-ghost {
  color: #e8ede9;
  border-color: rgba(232, 237, 233, 0.35);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #f7faf8;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.media-cover {
  width: 100%;
  height: min(420px, 50vw);
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.table-wrap {
  overflow-x: auto;
}

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.cookies-table th,
.cookies-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.75rem 0.5rem;
  vertical-align: top;
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
}

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

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@media (max-width: 900px) {
  .split,
  .split-reverse,
  .detail-grid,
  .contact-grid,
  .footer-grid,
  .quote-grid,
  .blog-item,
  .offer-row {
    grid-template-columns: 1fr;
  }

  .offer-row img {
    width: 100%;
    height: 180px;
  }

  .aside-panel {
    position: static;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
}
