:root {
  --color-bg: #f3f2ee;
  --color-bg-elevated: #fafaf7;
  --color-surface: #ffffff;
  --color-ink: #1f2420;
  --color-ink-soft: #4a524c;
  --color-muted: #6e776f;
  --color-line: #d8dbd4;
  --color-accent: #3d4a3f;
  --color-accent-hover: #2c352e;
  --color-accent-soft: #e4e8e2;
  --color-highlight: #8b7355;
  --color-success: #2f5d3a;
  --color-error: #8b3a2f;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;
  --radius: 0.35rem;
  --shadow-soft: 0 12px 40px rgba(31, 36, 32, 0.06);
  --max: 70rem;
  --measure: 40rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(139, 115, 85, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(61, 74, 63, 0.07), transparent 45%),
    linear-gradient(180deg, #ecebe6 0%, var(--color-bg) 28%, #efeee9 100%);
  min-height: 100vh;
}

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

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

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

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

h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); margin: 0 0 var(--space-5); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin: 0 0 var(--space-4); }
h3 { font-size: 1.25rem; margin: 0 0 var(--space-3); }

p { margin: 0 0 var(--space-4); }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.2rem; }

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-ink);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  z-index: 1000;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(243, 242, 238, 0.88);
  border-bottom: 1px solid rgba(216, 219, 212, 0.8);
}

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

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

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

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

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

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

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

.nav-cta {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--color-accent);
  color: #f7f8f5 !important;
  border-radius: var(--radius);
}

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

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

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

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

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

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

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

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero {
  padding: var(--space-8) 0 var(--space-7);
  position: relative;
  overflow: hidden;
}

.hero-home {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  padding: 0;
}

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

.hero-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-home .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(31, 36, 32, 0.78) 0%,
    rgba(31, 36, 32, 0.55) 42%,
    rgba(31, 36, 32, 0.2) 100%
  );
}

.hero-home .shell {
  position: relative;
  z-index: 1;
  padding-block: var(--space-9) var(--space-8);
  color: #f4f6f3;
  max-width: 38rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  width: min(100% - 2rem, 38rem);
  animation: rise 0.9s var(--ease) both;
}

.hero-home .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fafaf7;
}

.hero-home h1 {
  color: #e8ebe5;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.45;
  max-width: 28rem;
  margin-bottom: var(--space-4);
}

.hero-home .lede {
  color: rgba(244, 246, 243, 0.82);
  font-size: 1.05rem;
  max-width: 26rem;
  margin-bottom: var(--space-6);
}

.hero-home .btn-primary {
  background: #f4f6f3;
  color: var(--color-ink);
}

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

.hero-home .btn-secondary {
  border-color: rgba(244, 246, 243, 0.45);
  color: #f4f6f3;
}

.hero-page {
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
}

.hero-page .lede {
  max-width: var(--measure);
  color: var(--color-ink-soft);
  font-size: 1.15rem;
}

.section {
  padding: var(--space-7) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--color-line);
}

.section-intro {
  max-width: 36rem;
  margin-bottom: var(--space-6);
}

.section-intro p {
  color: var(--color-ink-soft);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-soft);
}

.offer-list {
  display: grid;
  gap: var(--space-5);
}

.offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto;
  gap: var(--space-5);
  align-items: start;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-line);
}

.offer-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.offer-row h3 {
  margin: 0;
}

.offer-row p {
  margin: 0;
  color: var(--color-ink-soft);
}

.offer-row a.btn {
  white-space: nowrap;
}

.media-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 22rem;
}

.media-band img {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  object-fit: cover;
}

.media-band .band-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-7);
  background: var(--color-accent);
  color: #f4f6f3;
}

.media-band .band-copy h2 { color: #fafaf7; }
.media-band .band-copy p { color: rgba(244, 246, 243, 0.85); }
.media-band .band-copy .btn-primary {
  background: #f4f6f3;
  color: var(--color-ink);
  align-self: flex-start;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.story {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-line);
}

.story blockquote {
  margin: 0 0 var(--space-4);
  font-size: 1.05rem;
  color: var(--color-ink-soft);
  quotes: none;
}

.story footer {
  font-size: 0.92rem;
  color: var(--color-muted);
}

.story strong {
  color: var(--color-ink);
  font-weight: 600;
}

.meta-line {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}

.price-table th,
.price-table td {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}

.price-table th {
  font-family: var(--font-display);
  font-weight: 550;
  background: var(--color-accent-soft);
}

.price-table tr:last-child td { border-bottom: 0; }

.note-box {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--color-bg-elevated);
  border-left: 3px solid var(--color-highlight);
}

.prose {
  max-width: var(--measure);
}

.prose h2 { margin-top: var(--space-7); }
.prose h3 { margin-top: var(--space-5); }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

.steps li {
  position: relative;
  padding-left: 3.5rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
}

.journal-list {
  display: grid;
  gap: var(--space-6);
}

.journal-item {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.journal-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

.service-hero-img {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin: var(--space-6) 0;
}

.detail-grid dt {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}

.detail-grid dd {
  margin: 0 0 var(--space-4);
  color: var(--color-ink-soft);
}

.form-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-7);
}

.form {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: var(--space-6);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-soft);
}

.field {
  margin-bottom: var(--space-4);
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  font-size: 0.95rem;
}

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

.field textarea { min-height: 8rem; resize: vertical; }

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

.field-error {
  display: block;
  color: var(--color-error);
  font-size: 0.88rem;
  margin-top: var(--space-1);
  min-height: 1.2em;
}

.form-message {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

.form-message--success {
  background: #e5f0e7;
  color: var(--color-success);
}

.form-message--error {
  background: #f8e8e5;
  color: var(--color-error);
}

.address-block p { margin-bottom: var(--space-1); }

.site-footer {
  margin-top: var(--space-8);
  background: var(--color-ink);
  color: rgba(244, 246, 243, 0.78);
  padding: var(--space-7) 0 var(--space-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fafaf7;
  margin-bottom: var(--space-3);
}

.footer-tag { max-width: 18rem; }

.footer-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(244, 246, 243, 0.5);
  margin-bottom: var(--space-3);
}

.site-footer a {
  color: rgba(244, 246, 243, 0.88);
  text-decoration: none;
}

.site-footer a:hover { color: #fff; text-decoration: underline; }

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

.footer-links li { margin-bottom: var(--space-2); }

.footer-base {
  border-top: 1px solid rgba(244, 246, 243, 0.12);
  padding-top: var(--space-4);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 -8px 30px rgba(31, 36, 32, 0.08);
  padding: var(--space-4) 0;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.cookie-inner p {
  margin: 0;
  max-width: 44rem;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

.page-404 {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

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

.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}

.cookies-table th,
.cookies-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

.cookies-table th {
  background: var(--color-accent-soft);
  font-weight: 600;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

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

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

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

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .split,
  .split-reverse,
  .form-panel,
  .media-band,
  .journal-item,
  .offer-row,
  .story-grid,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .offer-row a.btn { justify-self: start; }

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

  .hero-home .shell {
    margin-left: 1rem;
  }
}
