:root {
  --parchment: #ede4d4;
  --parchment-deep: #e2d6c2;
  --ivory: #f7f1e6;
  --ink: #1a1814;
  --ink-soft: #3a342e;
  --terracotta: #c4704b;
  --terracotta-deep: #9a5336;
  --beige: #d4c8b8;
  --indigo: #3d4a6b;
  --indigo-soft: #5c6a8a;
  --shadow: rgba(26, 24, 20, 0.12);
  --grain: rgba(26, 24, 20, 0.035);
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --shell: min(1120px, calc(100% - 2.5rem));
  --radius: 2px;
  --header-h: 4.25rem;
}

*,
*::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(ellipse 80% 50% at 10% -10%, rgba(61, 74, 107, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(196, 112, 75, 0.1), transparent 45%),
    linear-gradient(180deg, var(--ivory), var(--parchment) 40%, var(--parchment-deep));
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      var(--grain) 2px,
      var(--grain) 3px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      var(--grain) 3px,
      var(--grain) 4px
    );
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

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

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

a:hover {
  color: var(--terracotta-deep);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--beige) 70%, transparent);
}

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

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

.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 35%, var(--parchment) 0 38%, transparent 39%),
    radial-gradient(circle at 50% 50%, transparent 0 42%, var(--ink) 43% 48%, transparent 49%),
    linear-gradient(135deg, var(--terracotta), var(--indigo));
  box-shadow: inset 0 0 0 1px var(--ink);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  max-width: 14rem;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--beige);
  background: var(--ivory);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--ink);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

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

.nav-cta {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: var(--ink);
  color: var(--ivory) !important;
  text-decoration: none;
}

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

/* Buttons — paper panel slide */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s ease;
}

.btn-panel {
  background: var(--parchment);
  color: var(--ink);
}

.btn-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.btn-panel:hover {
  color: var(--ivory);
}

.btn-panel:hover::before {
  transform: translateX(0);
}

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

.btn-ghost:hover {
  background: color-mix(in srgb, var(--beige) 55%, transparent);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

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

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 0.75rem;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-tight {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.page-hero h1 {
  max-width: 16ch;
}

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

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }

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

  .split-reverse .split-copy {
    order: 2;
  }
}

.paper-frame {
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--beige);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--ink) 6%, transparent),
    0 18px 40px var(--shadow);
  overflow: hidden;
}

.paper-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(61, 74, 107, 0.08));
  pointer-events: none;
}

.paper-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.88) contrast(0.96);
}

.fold {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(225deg, var(--parchment-deep), transparent 70%);
  pointer-events: none;
}

/* Home hero — full-bleed */
.home-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--ivory);
  overflow: hidden;
}

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

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.72);
}

.home-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 24, 20, 0.25) 0%, rgba(26, 24, 20, 0.55) 45%, rgba(26, 24, 20, 0.82) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(61, 74, 107, 0.35), transparent 50%);
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 4.5rem);
}

.home-hero .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 14ch;
  color: var(--ivory);
}

.home-hero .hero-line {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  max-width: 28rem;
  color: color-mix(in srgb, var(--ivory) 88%, var(--beige));
  margin-bottom: 0.5rem;
}

.home-hero .hero-support {
  max-width: 32rem;
  color: color-mix(in srgb, var(--ivory) 78%, var(--beige));
  margin-bottom: 0;
}

.home-hero .btn-panel {
  background: var(--ivory);
  border-color: var(--ivory);
}

.home-hero .btn-ghost {
  color: var(--ivory);
  border-color: color-mix(in srgb, var(--ivory) 55%, transparent);
}

.home-hero .btn-ghost:hover {
  background: color-mix(in srgb, var(--ivory) 12%, transparent);
}

/* Offer list */
.offer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--beige);
}

.offer-row {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--beige);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease, padding-left 0.35s ease;
}

.offer-row:hover {
  background: color-mix(in srgb, var(--ivory) 70%, transparent);
  padding-left: 0.5rem;
}

@media (min-width: 760px) {
  .offer-row {
    grid-template-columns: 1.2fr 1.4fr auto;
    align-items: baseline;
  }
}

.offer-row h3 {
  margin: 0;
  font-size: 1.25rem;
}

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

.offer-meta {
  font-size: 0.9rem;
  color: var(--indigo);
  white-space: nowrap;
}

/* Cards for interactive listings only when needed */
.stack-cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .stack-cards.cols-2 {
    grid-template-columns: 1fr 1fr;
  }

  .stack-cards.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.entry-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.entry-link .paper-frame {
  height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.entry-link:hover .paper-frame {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px var(--shadow);
}

.entry-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.entry-body h3 {
  margin-bottom: 0.4rem;
}

.entry-meta {
  font-size: 0.85rem;
  color: var(--indigo-soft);
  margin-bottom: 0.5rem;
}

/* Quote / reviews */
.quote-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--beige);
}

.quote-block blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink);
}

.quote-block cite {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.story-panel {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--ivory);
  border: 1px solid var(--beige);
  border-left: 3px solid var(--terracotta);
}

/* Forms */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
  }
}

.form-panel {
  background: var(--ivory);
  border: 1px solid var(--beige);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

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

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

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

.field-error {
  display: block;
  min-height: 1.1rem;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--terracotta-deep);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-status.is-success {
  color: var(--indigo);
}

.form-status.is-error {
  color: var(--terracotta-deep);
}

.address-block p {
  margin-bottom: 0.4rem;
}

/* Tables */
.rate-table,
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

.rate-table th,
.cookie-table th {
  font-weight: 600;
  color: var(--ink-soft);
}

/* Legal prose */
.prose {
  max-width: 42rem;
}

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

.prose ul {
  padding-left: 1.2rem;
}

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

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  background: color-mix(in srgb, var(--ink) 94%, var(--indigo));
  color: color-mix(in srgb, var(--ivory) 88%, var(--beige));
}

.site-footer a {
  color: color-mix(in srgb, var(--ivory) 85%, var(--beige));
}

.site-footer a:hover {
  color: var(--ivory);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr;
  }
}

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

.footer-legal-name {
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-tag {
  font-size: 0.95rem;
  max-width: 22rem;
}

.footer-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 0.65rem;
}

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

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

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--beige) 25%, transparent);
  font-size: 0.85rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--ivory);
  border-top: 1px solid var(--beige);
  box-shadow: 0 -12px 40px var(--shadow);
}

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

.cookie-inner p {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
}

/* Detail layouts */
.detail-hero-img {
  margin: 1.5rem 0 2rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.checklist li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-bottom: 1px solid var(--beige);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--terracotta);
}

.process-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.process-steps li {
  counter-increment: step;
  padding: 1rem 0 1rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--beige);
}

.process-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--font-display);
  color: var(--indigo);
  font-size: 1.1rem;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--beige);
  color: var(--ink-soft);
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.8s ease both;
  }

  .reveal-delay {
    animation: rise 0.9s ease 0.15s both;
  }

  .home-hero-media img {
    animation: drift 18s ease-in-out infinite alternate;
  }
}

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

@keyframes drift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

/* 404 */
.page-404 {
  min-height: 60vh;
  display: grid;
  align-items: center;
  padding: 4rem 0;
}

/* Mobile nav */
@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ivory);
    border-bottom: 1px solid var(--beige);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.is-open {
    max-height: 28rem;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
  }

  .brand-text {
    max-width: 11rem;
    font-size: 0.95rem;
  }
}
