/* ═════════════════════════════════════════════════════════════════════
   Treehouse Holidays UK — slow-luxury editorial microsite
   Palette : warm parchment, deep forest-ink, dusky copper
   Type    : Fraunces (display, opsz 9–144) + Newsreader (body, opsz 6–72)
   ═════════════════════════════════════════════════════════════════════ */

:root {
  --paper:        #f4ede0;
  --paper-2:      #ece2cf;
  --paper-3:      #e0d3b8;
  --ink:          #1d2a1f;        /* deepest forest-ink */
  --ink-2:        #2c3a2e;
  --moss:         #5e6b4a;
  --moss-soft:    #8a9275;
  --copper:       #a85d3a;        /* dusky terracotta accent */
  --copper-deep:  #7e3f24;

  --serif-display: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --serif-body:    "Newsreader", "EB Garamond", Georgia, serif;

  --measure: 64ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --maxw: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset / base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-variation-settings: "opsz" 16;
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.13rem);
  line-height: 1.65;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  /* warm radial wash, not flat colour */
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(120% 80% at 100% 0%, #f9f3e6 0%, transparent 55%),
    radial-gradient(110% 70% at 0% 100%, #ebdcbd 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Paper grain — subtle SVG noise, eternal print texture */
.grain {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: multiply;
  z-index: 0;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

::selection { background: var(--ink); color: var(--paper); }

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Masthead / nav ─────────────────────────────────────────────── */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif-display);
}
.masthead__brand em {
  font-style: normal;
  font-weight: 500;
  font-size: 1.2rem;
  font-variation-settings: "opsz" 28, "SOFT" 30;
  display: block;
  line-height: 1;
  letter-spacing: -0.01em;
}
.masthead__brand small {
  display: block;
  font-family: var(--serif-body);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  color: var(--moss);
}

.sprig {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--moss);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.masthead__nav {
  display: flex; align-items: center;
  gap: clamp(0.75rem, 2vw, 1.6rem);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.masthead__nav a {
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  transition: color 0.4s var(--ease);
}
.masthead__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.masthead__nav a:hover { color: var(--copper); }
.masthead__nav a:hover::after { transform: scaleX(1); }

.masthead__cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.7rem;
}
.masthead__cta::after { display: none; }
.masthead__cta:hover {
  background: var(--copper-deep);
  color: var(--paper) !important;
}

@media (max-width: 720px) {
  .masthead__nav a:not(.masthead__cta) { display: none; }
  .masthead__brand small { display: none; }
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.85rem 1.4rem;
  font-family: var(--serif-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.5s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--copper-deep); transform: translateY(-1px); }
.btn--ghost {
  border-color: color-mix(in srgb, var(--ink) 35%, transparent);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn--solid { background: var(--copper); color: var(--paper); }
.btn--solid:hover { background: var(--copper-deep); }
.btn--lg { padding: 1rem 1.6rem; font-size: 0.82rem; }
.btn--xl { padding: 1.25rem 2.2rem; font-size: 0.9rem; }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
  font-family: var(--serif-body);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 1.6rem;
}
.eyebrow--light { color: color-mix(in srgb, var(--paper) 70%, transparent); }

.hero__title {
  font-family: var(--serif-display);
  font-weight: 380;
  font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.022em;
  margin: 0 0 2rem;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--ink);
  max-width: 16ch;
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  color: var(--copper-deep);
}

.hero__lede {
  max-width: 38ch;
  font-size: clamp(1.1rem, 0.9rem + 0.7vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 2.2rem;
}

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

.hero__rule {
  display: flex; align-items: center; gap: 1rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  color: color-mix(in srgb, var(--ink) 35%, transparent);
}
.hero__rule span {
  flex: 1; height: 1px;
  background: currentColor;
}
.hero__rule svg { width: 18px; height: 18px; fill: currentColor; }

/* ─── Prose blocks ───────────────────────────────────────────────── */
.prose {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  font-size: 1.13rem;
  line-height: 1.75;
}
.prose p { margin: 0 0 1.2em; }
.prose em { color: var(--copper-deep); font-style: italic; }
.prose a {
  color: var(--copper-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, var(--copper) 40%, transparent);
  transition: text-decoration-color 0.4s var(--ease);
}
.prose a:hover { text-decoration-color: var(--copper); }

.prose__rec {
  border-left: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  padding: 0.4rem 0 0.4rem 1.4rem;
  margin-top: 2rem !important;
  font-style: italic;
  color: var(--ink-2);
}

.prose--closing { padding-top: clamp(3rem, 7vw, 5rem); }
.prose__kicker {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1rem;
}
.prose__title {
  font-family: var(--serif-display);
  font-weight: 380;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.prose__emph {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-variation-settings: "opsz" 72, "SOFT" 50;
  line-height: 1.25;
  color: var(--copper-deep);
  margin: 1.6rem 0 !important;
  letter-spacing: -0.005em;
}

/* ─── Chapters ───────────────────────────────────────────────────── */
.chapter {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  position: relative;
}
.chapter::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.chapter__head {
  display: block;
  margin-bottom: 1.6rem;
}
.chapter__head .chapter__num { display: block; margin-bottom: 1.2rem; }
.chapter__num {
  font-family: var(--serif-body);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--copper-deep);
  font-weight: 500;
  align-self: center;
}
.chapter__head h2 {
  font-family: var(--serif-display);
  font-weight: 350;
  font-size: clamp(2rem, 5.4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 96, "SOFT" 60;
  margin: 0;
  color: var(--ink);
}
.chapter__lede {
  max-width: 60ch;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  margin-left: 0;
}

/* ─── Cards (Why grid) ───────────────────────────────────────────── */
.cards {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-left: 0;
}
.card {
  position: relative;
  padding-top: 2.4rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.card__num {
  position: absolute;
  top: 0.85rem;
  right: 0;
  font-family: var(--serif-body);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
}
.card h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 60, "SOFT" 50;
  margin: 0 0 0.8rem;
  color: var(--ink);
}
.card p { margin: 0; color: var(--ink-2); line-height: 1.6; }

/* ─── Definition list (Luxury) ───────────────────────────────────── */
.defs {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  margin-left: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
.defs > div {
  padding: 1.8rem 1.5rem 1.8rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.defs dt {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 1.2rem;
  font-variation-settings: "opsz" 36, "SOFT" 30;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}
.defs dd {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 38ch;
}

.pullquote {
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  max-width: 32ch;
  text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  padding: 2rem 0;
}
.pullquote p {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 380;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.35;
  font-variation-settings: "opsz" 60, "SOFT" 30;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.pullquote a {
  color: var(--copper-deep);
  text-decoration-color: color-mix(in srgb, var(--copper) 50%, transparent);
}
.pullquote a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ─── Oxfordshire feature panel ──────────────────────────────────── */
.feature {
  max-width: var(--maxw);
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: 0 var(--gutter);
}
.feature__panel {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, var(--paper-2), var(--paper-3));
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.feature__panel::before {
  /* deco sprig in the top-right */
  content: "";
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  width: 64px; height: 64px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60' fill='none' stroke='%235e6b4a' stroke-width='1.2' stroke-linecap='round'><path d='M30 56 V14'/><path d='M30 22 C 22 18, 18 12, 18 6'/><path d='M30 22 C 38 18, 42 12, 42 6'/><path d='M30 32 C 20 28, 14 22, 12 14'/><path d='M30 32 C 40 28, 46 22, 48 14'/><path d='M30 42 C 22 40, 16 36, 14 30'/><path d='M30 42 C 38 40, 44 36, 46 30'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.75;
}
@media (max-width: 760px) {
  .feature__panel { grid-template-columns: 1fr; }
}
.feature__kicker {
  font-size: 0.72rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--copper-deep);
  margin: 0 0 1rem;
}
.feature__title {
  font-family: var(--serif-display);
  font-weight: 350;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  margin: 0;
  color: var(--ink);
}
.feature__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  color: var(--copper-deep);
}
.feature__body p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.65;
}
.feature__body strong {
  font-family: var(--serif-display);
  font-weight: 500;
  color: var(--ink);
}
.feature__cta {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.8rem;
  margin-top: 0.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}
.feature__cta-note {
  font-family: var(--serif-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
}

/* ─── Booking checklist ──────────────────────────────────────────── */
.checklist {
  list-style: none; padding: 0; margin: 0;
  margin-left: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.checklist li {
  padding: 1.6rem 1.2rem 1.6rem 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.checklist h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 0 0 0.7rem;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48, "SOFT" 50;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 0.7rem;
}
.checklist h3 span {
  display: inline-block;
  font-family: var(--serif-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
  min-width: 1.5em;
}
.checklist p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.checklist a { color: var(--copper-deep); }

/* ─── Finale ─────────────────────────────────────────────────────── */
.finale {
  max-width: none;
  margin: 0;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.finale::before {
  content: "";
  position: absolute;
  inset: -10% -10%;
  background:
    radial-gradient(50% 40% at 70% 30%, color-mix(in srgb, var(--copper) 30%, transparent), transparent 70%),
    radial-gradient(60% 50% at 20% 80%, color-mix(in srgb, var(--moss) 35%, transparent), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.finale__inner {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}
.finale__title {
  font-family: var(--serif-display);
  font-weight: 320;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 70;
  margin: 0 0 2.4rem;
  color: var(--paper);
  max-width: 22ch;
}
.finale__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: color-mix(in srgb, var(--copper) 70%, var(--paper) 30%);
}
.finale__note {
  max-width: 50ch;
  margin: 0;
  font-family: var(--serif-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
}
.finale__note a {
  color: color-mix(in srgb, var(--copper) 80%, var(--paper) 20%);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, var(--copper) 50%, transparent);
  transition: color 0.4s var(--ease), text-decoration-color 0.4s var(--ease);
}
.finale__note a:hover {
  color: var(--paper);
  text-decoration-color: var(--paper);
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  margin-top: clamp(2rem, 6vw, 4rem);
  font-size: 0.92rem;
}
@media (max-width: 720px) {
  .footer { grid-template-columns: 1fr; }
}
.footer__brand {
  font-family: var(--serif-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}
.footer__brand em {
  font-style: normal;
  font-variation-settings: "opsz" 48, "SOFT" 30;
  color: var(--copper-deep);
  font-weight: 500;
}
.footer__tag { margin: 0; color: var(--moss); max-width: 36ch; line-height: 1.5; }
.footer h4 {
  font-family: var(--serif-body);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--moss);
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer a { text-decoration: none; color: var(--ink-2); transition: color 0.4s var(--ease); }
.footer a:hover { color: var(--copper-deep); }
.footer__col--end {
  text-align: right;
  color: var(--moss);
  font-size: 0.82rem;
}
.footer__col--end p { margin: 0 0 0.4rem; }
@media (max-width: 720px) {
  .footer__col--end { text-align: left; }
}
