/* Willow & Veil — a wedding day, remembered slowly */

:root {
  --veil: #F7F3EC;
  --linen: #F4EFE7;
  --ivory: #ECE4D6;
  --golden: #E6D5B6;
  --dusk: #8A6A4C;
  --evening: #1A1613;
  --night: #120F0D;
  --ink: #1F1B17;
  --ink-soft: #5B5248;
  --willow: #5F6A4F;
  --gold: #B8914F;
  --cream: #F2EBDF;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

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

html { scroll-behavior: smooth; }

html, body { margin: 0; }

body {
  background: var(--veil);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

em { font-style: italic; }

h1, h2, h3, p, figure, ol { margin: 0; }

/* ---------- Shared bits ---------- */

.eyebrow,
.chapter-kicker,
.footer-label,
.wordmark-sub {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow { color: var(--willow); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  background: var(--ink);
  color: var(--veil);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:hover { background: var(--willow); border-color: var(--willow); }

.btn--light {
  background: var(--cream);
  color: var(--evening);
  border-color: var(--cream);
}

.btn--light:hover { background: var(--gold); border-color: var(--gold); color: var(--evening); }

.text-link {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  color: var(--ink-soft);
}

.text-link:hover { color: var(--ink); }

/* ---------- Navigation ---------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem var(--gutter);
  background: var(--veil);
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.wordmark-name {
  font-family: var(--serif);
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}

.wordmark-name em { color: var(--gold); }

.wordmark-sub {
  margin-top: 0.35rem;
  font-size: 0.6rem;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

.nav-links .nav-cta {
  color: var(--ink);
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-links .nav-cta:hover { background: var(--ink); color: var(--veil); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
  padding: 0 var(--gutter) clamp(3rem, 6vw, 6rem);
  min-height: calc(100vh - 6rem);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 6vh, 5rem) 0 0.5rem;
}

.hero-title {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 6.6vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.hero-title em {
  display: block;
  color: var(--willow);
}

.hero-lede {
  margin-top: 2rem;
  max-width: 27rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
}

.hero-media {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 36rem;
}

.hero-media img {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 60% 50%;
}

.hero-media figcaption {
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ---------- Approach ---------- */

.approach {
  padding: clamp(4rem, 10vw, 9rem) var(--gutter) clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgba(31, 27, 23, 0.12);
}

.approach-statement {
  max-width: 62rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.approach-statement em { color: var(--willow); }

.pillars {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5.5rem);
}

.pillar {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(31, 27, 23, 0.25);
}

.pillar-num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.pillar-title {
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.1;
}

.pillar-text {
  margin-top: 0.75rem;
  max-width: 22rem;
  color: var(--ink-soft);
}

/* ---------- The day: chapters ---------- */

.day { position: relative; }

.chapter {
  padding: clamp(5rem, 10vw, 9rem) var(--gutter) clamp(5rem, 9vw, 8rem);
}

.chapter--morning { background: var(--linen); }

.chapter--ceremony {
  background: linear-gradient(to bottom, var(--linen) 0, var(--ivory) 16rem);
}

.chapter--portraits {
  background: linear-gradient(to bottom, var(--ivory) 0, var(--golden) 18rem);
}

.chapter--celebration {
  padding-top: clamp(14rem, 26vw, 22rem);
  color: var(--cream);
  background: linear-gradient(
    to bottom,
    var(--golden) 0,
    #CDAE80 4rem,
    var(--dusk) 9rem,
    #3E2F24 15rem,
    var(--evening) 22rem
  );
}

.chapter-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  grid-template-areas:
    "kicker kicker"
    "title quote";
  align-items: end;
  column-gap: 3rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.chapter-kicker {
  grid-area: kicker;
  color: var(--gold);
}

.chapter-title {
  grid-area: title;
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.2rem, 13vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
}

.chapter-quote {
  grid-area: quote;
  padding-bottom: 0.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.3;
  color: var(--ink-soft);
}

.chapter--celebration .chapter-quote { color: rgba(242, 235, 223, 0.72); }

.frames {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.frame figcaption,
.frame-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.frame figcaption { margin-top: 0.8rem; }

.chapter--celebration .frame figcaption { color: rgba(242, 235, 223, 0.62); }

.frame-note {
  max-width: 20rem;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
}

/* Morning */
.frames--morning .f-a { grid-column: 1 / 9; grid-row: 1; }
.frames--morning .f-a img { aspect-ratio: 3 / 2; }
.frames--morning .f-b { grid-column: 9 / 13; grid-row: 1; align-self: end; }
.frames--morning .f-b img { aspect-ratio: 4 / 5; object-position: 45% 50%; }
.frames--morning .f-c { grid-column: 3 / 10; grid-row: 2; margin-top: clamp(1rem, 4vw, 4rem); }
.frames--morning .f-c img { aspect-ratio: 3 / 2; }
.frames--morning .f-note { grid-column: 10 / 13; grid-row: 2; align-self: end; }

/* Ceremony */
.frames--ceremony .f-a { grid-column: 1 / 6; grid-row: 1 / 3; }
.frames--ceremony .f-a img { aspect-ratio: 3 / 4; }
.frames--ceremony .f-note { grid-column: 7 / 12; grid-row: 1; align-self: start; padding-top: 2rem; }
.frames--ceremony .f-b { grid-column: 6 / 13; grid-row: 2; align-self: end; }
.frames--ceremony .f-b img { aspect-ratio: 3 / 2; }

/* Portraits */
.frames--portraits .f-a { grid-column: 1 / 6; }
.frames--portraits .f-a img { aspect-ratio: 3 / 4; object-position: 50% 30%; }
.frames--portraits .f-b { grid-column: 7 / 13; align-self: center; }
.frames--portraits .f-b img { aspect-ratio: 4 / 3; object-position: 48% 50%; }

.frame--wide {
  margin: clamp(3rem, 7vw, 7rem) calc(var(--gutter) * -1) 0;
}

.frame--wide img {
  aspect-ratio: 21 / 9;
  object-position: 50% 58%;
}

/* Celebration */
.frames--celebration .f-a { grid-column: 1 / 8; }
.frames--celebration .f-a img { aspect-ratio: 3 / 2; }
.frames--celebration .f-b { grid-column: 8 / 13; margin-top: clamp(3rem, 9vw, 9rem); }
.frames--celebration .f-b img { aspect-ratio: 4 / 5; object-position: 70% 50%; }
.frames--celebration .f-c { grid-column: 2 / 6; margin-top: clamp(1rem, 3vw, 3rem); align-self: start; }
.frames--celebration .f-c img { aspect-ratio: 4 / 5; object-position: 52% 50%; }
.frames--celebration .f-d { grid-column: 6 / 13; margin-top: clamp(1rem, 3vw, 3rem); }
.frames--celebration .f-d img { aspect-ratio: 4 / 3; object-position: 55% 50%; }

/* Day marker */
.day-marker {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1.1rem;
  background: rgba(247, 243, 236, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(31, 27, 23, 0.08);
  border-radius: 999px;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.5s ease, border-color 0.5s ease;
}

body.in-day .day-marker {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.day-marker a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(31, 27, 23, 0.4);
  transition: color 0.3s ease;
}

.day-marker a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.day-marker a span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.45s ease;
}

.day-marker a.is-active { color: var(--ink); }
.day-marker a.is-active span { max-width: 8rem; }

.day-marker a.is-active::before {
  background: var(--gold);
  border-color: var(--gold);
}

body.is-evening .day-marker {
  background: rgba(26, 22, 19, 0.82);
  border-color: rgba(242, 235, 223, 0.12);
}

body.is-evening .day-marker a { color: rgba(242, 235, 223, 0.4); }
body.is-evening .day-marker a.is-active { color: var(--cream); }

/* ---------- Enquire ---------- */

.enquire {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  background: var(--evening);
  color: var(--cream);
}

.enquire .eyebrow { color: var(--gold); }

.enquire-title {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.enquire-title em { display: block; color: var(--gold); }

.enquire-text {
  margin-top: 1.75rem;
  max-width: 26rem;
  color: rgba(242, 235, 223, 0.72);
}

.enquire-alt {
  margin-top: 1.5rem;
  max-width: 26rem;
  font-size: 0.9rem;
  color: rgba(242, 235, 223, 0.55);
}

.enquire-alt a { color: var(--cream); }

.enquire-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2rem;
  align-content: start;
  padding-top: 0.5rem;
}

.field { display: flex; flex-direction: column; }

.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 235, 223, 0.6);
}

.field input,
.field textarea {
  margin-top: 0.5rem;
  padding: 0.6rem 0 0.7rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(242, 235, 223, 0.3);
  border-radius: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.3;
  transition: border-color 0.25s ease;
}

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

.field input::placeholder { color: rgba(242, 235, 223, 0.3); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.form-foot { padding-top: 0.5rem; }

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(4rem, 7vw, 6rem) var(--gutter) 2rem;
  background: var(--night);
  color: rgba(242, 235, 223, 0.7);
  font-size: 0.92rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(242, 235, 223, 0.12);
}

.footer-mark {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--cream);
  text-decoration: none;
}

.footer-mark em { color: var(--gold); }

.footer-cols {
  display: flex;
  gap: clamp(2rem, 5vw, 5rem);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 17rem;
}

.footer-label {
  margin-bottom: 0.4rem;
  font-size: 0.66rem;
  color: var(--gold);
}

.footer-col a { text-decoration: none; color: var(--cream); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  color: rgba(242, 235, 223, 0.45);
}

.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 2.5rem;
  }

  .hero-text { padding-top: 1.5rem; }

  .hero-media { min-height: 0; }

  .hero-media img {
    flex: none;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .pillars { grid-template-columns: 1fr; gap: 2rem; }

  .chapter-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "quote";
  }

  .chapter-quote { margin-top: 1.5rem; max-width: 24rem; }

  .frames { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 1.25rem; }

  .frames > * { grid-row: auto; margin-top: 0; }

  .frames--morning .f-a { grid-column: 1 / 7; grid-row: auto; }
  .frames--morning .f-b { grid-column: 2 / 7; grid-row: auto; }
  .frames--morning .f-c { grid-column: 1 / 6; grid-row: auto; margin-top: 0; }
  .frames--morning .f-note { grid-column: 2 / 7; grid-row: auto; padding-top: 0.5rem; }

  .frames--ceremony .f-a { grid-column: 1 / 6; grid-row: auto; }
  .frames--ceremony .f-note { grid-column: 2 / 7; grid-row: auto; padding: 0.5rem 0; }
  .frames--ceremony .f-b { grid-column: 1 / 7; grid-row: auto; }

  .frames--portraits .f-a { grid-column: 1 / 7; }
  .frames--portraits .f-b { grid-column: 2 / 7; }

  .frame--wide img { aspect-ratio: 4 / 3; }

  .frames--celebration .f-a { grid-column: 1 / 7; }
  .frames--celebration .f-b { grid-column: 2 / 7; margin-top: 0; }
  .frames--celebration .f-c { grid-column: 1 / 5; margin-top: 0; }
  .frames--celebration .f-d { grid-column: 1 / 7; margin-top: 0; }

  .enquire { grid-template-columns: 1fr; }

  .enquire-form { grid-template-columns: 1fr; gap: 1.75rem; }

  .footer-cols { flex-direction: column; gap: 2rem; }
}

@media (max-width: 480px) {
  .wordmark-name { font-size: 1.6rem; }
  .nav-links .nav-cta { padding: 0.55rem 1rem; font-size: 0.72rem; }
  .hero-title { font-size: 3.35rem; }
  .chapter-title { font-size: 4.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
