:root {
    --accent: #b58a9d;
    --plate-h: 390px;
    --plate-focus: 35%;
    --heading-style: italic;

    --sage:        #5a7d6e;
    --sage-deep:   #3f5a4e;
    --sage-soft:   #8aa499;
    --link:        #527366;
    --link-on-dark:#9db5a6;
    --blush:       #d4b5c4;
    --blush-deep:  #b58a9d;
    --cream:       #f5f1e8;
    --cream-soft:  #ede7d8;
    --paper:       #faf7ef;
    --charcoal:    #2b2520;
    --ink:         #3a332c;
    --gold:        #b8a04a;
    --chartreuse:  #c8bf6a;

    --serif:  "Cormorant Garamond", "Garamond", "Times New Roman", serif;
    --sans:   "Inter", "Helvetica Neue", Arial, sans-serif;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  ::selection { background: var(--blush); color: var(--charcoal); }

  /* ---------- typographic primitives ---------- */
  .display {
    font-family: var(--serif);
    font-weight: 400;
    font-style: italic;
    color: var(--charcoal);
    letter-spacing: -0.01em;
    line-height: 0.95;
  }
  .label {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--sage);
  }
  .smallcaps {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
  }
  a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--link) 32%, transparent);
  }
  a:hover { color: var(--sage-deep); }

  /* ---------- nav ---------- */
  .topnav {
    position: relative; z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid rgba(90,125,110,0.15);
  }
  .topnav-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 14px 32px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
  }
  .nav-brand {
    font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--charcoal);
  }
  .nav-brand .amp { color: var(--blush-deep); }
  .nav-links { display: flex; gap: 28px; }
  .nav-links a {
    font-family: var(--sans); font-weight: 500; font-size: 11px;
    letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink);
    border: none;
  }
  .nav-links a:hover { color: var(--sage); }
  @media (max-width: 720px) {
    .nav-links { display: none; }
  }

  /* ---------- hero ---------- */
  .hero {
    position: relative;
    width: 100%;
    background: var(--paper);
    padding-bottom: 96px;
  }
  /* Botanical illustration as an editorial plate above the text */
  .hero-plate {
    position: relative;
    width: 100%;
    height: var(--plate-h, 460px);
    overflow: hidden;
    background: #d8d4c4;
    margin-bottom: 56px;
  }
  .hero-img {
    position: absolute; inset: 0;
    background-image: url("../assets/images/hero-botanical.png");
    background-size: cover;
    background-position: center var(--plate-focus, 35%);
    transform: scale(1.001); /* avoid sub-pixel seam */
  }
  /* a soft feather where the plate meets the paper */
  .hero-plate::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px;
    background: linear-gradient(180deg, rgba(250,247,239,0) 0%, rgba(250,247,239,0.55) 60%, rgba(250,247,239,1) 100%);
    pointer-events: none;
  }
  /* hairline frame across the plate top */
  .plate-meta {
    position: absolute;
    top: 22px; left: 32px; right: 32px;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--paper);
    font-family: var(--sans); font-weight: 500;
    font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase;
    text-shadow: 0 1px 14px rgba(0,0,0,0.35);
    z-index: 2;
  }
  .plate-meta .rule { flex: 1; height: 1px; background: rgba(250,247,239,0.55); margin: 0 18px; }

  /* Side-accent variant ---------------------------------------------- */
  .hero[data-layout="side"] { padding-bottom: 120px; }
  .hero[data-layout="side"] .hero-plate {
    position: absolute;
    top: 0; right: 0;
    width: 42%;
    height: 100%;
    min-height: 540px;
    margin-bottom: 0;
  }
  .hero[data-layout="side"] .hero-plate::after {
    left: 0; right: auto; top: 0; bottom: 0; height: auto; width: 130px;
    background: linear-gradient(90deg, rgba(250,247,239,1) 0%, rgba(250,247,239,0.6) 60%, rgba(250,247,239,0) 100%);
  }
  .hero[data-layout="side"] .plate-meta { display: none; }
  .hero[data-layout="side"] .hero-text { padding-right: 46%; padding-top: 96px; }

  /* Hidden variant --------------------------------------------------- */
  .hero[data-layout="hidden"] .hero-plate { display: none; }
  .hero[data-layout="hidden"] .hero-text { padding-top: 120px; }

  /* Text block (now on cream paper — always legible) */
  .hero-text {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 16px;
    color: var(--sage-deep); margin-bottom: 32px;
  }
  .hero-eyebrow::before,
  .hero-eyebrow::after {
    content: ""; width: 44px; height: 1px; background: currentColor; opacity: 0.6;
  }
  .hero-title {
    font-family: var(--serif);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(60px, 10vw, 144px);
    line-height: 0.88;
    color: var(--charcoal);
    margin: 0 0 32px;
    letter-spacing: -0.015em;
    text-wrap: balance;
  }
  .hero-title .light {
    font-weight: 300; font-style: normal; display: block;
    font-size: 0.18em; letter-spacing: 0.42em; text-transform: uppercase;
    color: var(--sage-deep); margin-bottom: 24px;
  }
  .hero-sub {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(20px, 2.4vw, 28px);
    color: var(--ink);
    max-width: 580px;
    line-height: 1.4;
    margin: 0;
  }
  .hero-dates {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid rgba(43,37,32,0.2);
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    font-family: var(--sans); font-weight: 500;
    font-size: 12px; letter-spacing: 0.36em; text-transform: uppercase;
    color: var(--charcoal);
  }
  .hero-dates .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent, var(--blush-deep)); }
  .hero-dates .place { color: var(--sage-deep); margin-left: auto; }

  @media (max-width: 820px) {
    .hero[data-layout="side"] .hero-plate { position: relative; width: 100%; height: 360px; margin-bottom: 48px; }
    .hero[data-layout="side"] .hero-text { padding-right: 32px; padding-top: 0; }
  }

  /* ---------- intro band ---------- */
  .intro {
    padding: 80px 32px 40px;
    text-align: center;
  }
  .intro-inner { max-width: 720px; margin: 0 auto; }
  .intro p {
    font-family: var(--serif); font-style: italic; font-weight: 300;
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.5;
    color: var(--ink);
    margin: 18px 0 0;
    text-wrap: pretty;
  }
  .ornament {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; margin: 0 auto; color: var(--sage);
  }
  .ornament .line { width: 80px; height: 1px; background: currentColor; opacity: 0.5; }
  .ornament .leaf {
    width: 18px; height: 18px;
    display: inline-block;
  }

  /* ---------- main itinerary spine ---------- */
  .spine {
    max-width: 1180px;
    margin: 40px auto 0;
    padding: 0 32px;
  }

  .day {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    padding: 80px 0;
    border-top: 1px solid rgba(90,125,110,0.18);
    position: relative;
  }
  .day:first-child { border-top: none; }

  .day-meta {
    position: relative; align-self: start;
    height: max-content;
  }
  .day-num {
    font-family: var(--sans); font-weight: 500; font-size: 11px;
    letter-spacing: 0.36em; text-transform: uppercase;
    color: var(--sage); margin-bottom: 18px;
  }
  .day-name {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: clamp(52px, 5.6vw, 78px);
    line-height: 0.95;
    color: var(--charcoal);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
    padding-right: 12px;
  }
  .day-date {
    font-family: var(--sans); font-weight: 500; font-size: 11px;
    letter-spacing: 0.36em; text-transform: uppercase;
    color: var(--ink);
    padding-top: 14px;
    border-top: 1px solid rgba(43,37,32,0.25);
    display: inline-block;
    padding-right: 24px;
  }

  .events { display: flex; flex-direction: column; gap: 40px; }
  .event {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .event-time {
    font-family: var(--sans); font-weight: 500; font-size: 11px;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--sage);
    display: flex; align-items: center; gap: 14px;
  }
  .event-time .pip { width: 6px; height: 6px; background: var(--sage); border-radius: 50%; }
  .event-name {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: clamp(34px, 4.2vw, 50px);
    line-height: 1.02;
    color: var(--charcoal);
    margin: 6px 0 4px;
    letter-spacing: -0.005em;
  }
  .event-venue {
    font-family: var(--serif); font-weight: 400;
    font-size: 22px;
    color: var(--ink);
    margin: 0 0 10px;
  }
  .event-desc {
    font-family: var(--sans); font-weight: 400; font-size: 15.5px;
    line-height: 1.7; color: var(--ink);
    max-width: 56ch;
    margin: 0;
  }
  .event-meta {
    display: flex; flex-wrap: wrap; gap: 24px 32px;
    margin-top: 14px;
  }
  .event-meta .item {
    display: flex; flex-direction: column; gap: 4px;
  }
  .event-meta .item .k {
    font-family: var(--sans); font-weight: 500; font-size: 10px;
    letter-spacing: 0.3em; text-transform: uppercase; color: var(--sage);
  }
  .event-meta .item .v {
    font-family: var(--sans); font-weight: 400; font-size: 14px;
    color: var(--ink);
  }

  .dresscode {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px;
    border: 1px solid var(--sage);
    color: var(--sage-deep);
    font-family: var(--sans); font-weight: 500; font-size: 10.5px;
    letter-spacing: 0.32em; text-transform: uppercase;
    border-radius: 999px;
    background: rgba(212,181,196,0.18);
    align-self: flex-start;
  }
  .dresscode.optional { border-color: var(--blush-deep); color: var(--blush-deep); background: rgba(212,181,196,0.22); }

  /* Wedding Day spotlight */
  .day.spotlight {
    display: block;
    background:
      linear-gradient(180deg, rgba(212,181,196,0.18), rgba(212,181,196,0)) ,
      var(--cream);
    margin: 80px -32px;
    padding: 96px 32px;
    border-top: 1px solid rgba(90,125,110,0.18);
    border-bottom: 1px solid rgba(90,125,110,0.18);
  }
  .day.spotlight .day-name { color: var(--sage-deep); }
  .day.spotlight .event-name { color: var(--sage-deep); }

  .schedule {
    margin-top: 18px;
    display: flex; flex-direction: column;
    border-top: 1px solid rgba(43,37,32,0.18);
    max-width: 520px;
  }
  .schedule .row {
    display: grid; grid-template-columns: 160px 1fr;
    padding: 14px 0;
    border-bottom: 1px solid rgba(43,37,32,0.12);
  }
  .schedule .row .when {
    font-family: var(--sans); font-weight: 500; font-size: 11px;
    letter-spacing: 0.3em; text-transform: uppercase; color: var(--sage);
  }
  .schedule .row .what {
    font-family: var(--serif); font-style: italic; font-size: 19px;
    color: var(--charcoal); line-height: 1;
  }

  /* ---------- monday quiet day ---------- */
  .day.quiet .event-name { font-size: clamp(30px, 3.6vw, 44px); }

  /* ---------- appendix ---------- */
  .appendix {
    margin-top: 40px;
    padding: 120px 32px 100px;
    background: var(--charcoal);
    color: var(--cream);
    position: relative;
    overflow: hidden;
  }
  .appendix-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }
  .appendix-head {
    display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(245,241,232,0.18);
    margin-bottom: 64px;
  }
  .appendix .eyebrow {
    font-family: var(--sans); font-weight: 500; font-size: 11px;
    letter-spacing: 0.36em; text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 22px;
  }
  .appendix h2 {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: clamp(56px, 7.5vw, 104px);
    line-height: 0.9;
    margin: 0; color: var(--cream);
    letter-spacing: -0.015em;
  }
  .appendix h2 em { color: var(--blush); font-style: italic; }
  .appendix-lede {
    font-family: var(--serif); font-style: italic; font-weight: 300;
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.55;
    color: rgba(245,241,232,0.78);
    max-width: 360px;
    margin: 0;
  }

  .guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 48px;
  }
  .guide-cat .cat-head {
    display: flex; align-items: baseline; gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(212,181,196,0.35);
    margin-bottom: 18px;
  }
  .guide-cat .cat-head .num {
    font-family: var(--serif); font-style: italic; font-size: 24px;
    color: var(--blush); line-height: 1;
  }
  .guide-cat .cat-head .lbl {
    font-family: var(--sans); font-weight: 500; font-size: 11px;
    letter-spacing: 0.32em; text-transform: uppercase; color: var(--blush);
  }
  .place { padding: 16px 0; border-bottom: 1px dashed rgba(245,241,232,0.14); }
  .place:last-child { border-bottom: none; }
  .place .name {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: 26px; line-height: 1.1;
    color: var(--cream); margin: 0 0 6px;
  }
  .place .note {
    font-family: var(--sans); font-weight: 300; font-size: 13.5px;
    line-height: 1.55;
    color: rgba(245,241,232,0.62);
    margin: 0;
  }
  .place .note .tag {
    color: var(--chartreuse);
    margin-right: 8px;
    font-weight: 500; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  }
  .appendix a {
    color: var(--link-on-dark);
    border-bottom-color: color-mix(in srgb, var(--link-on-dark) 38%, transparent);
  }
  .appendix a:hover {
    color: var(--cream);
    border-bottom-color: color-mix(in srgb, var(--cream) 35%, transparent);
  }

  @media (max-width: 920px) {
    .guide-grid { grid-template-columns: 1fr 1fr; gap: 48px 36px; }
  }
  @media (max-width: 640px) {
    .guide-grid { grid-template-columns: 1fr; }
    .appendix-head { grid-template-columns: 1fr; }
  }

  /* ---------- closing ---------- */
  .closing {
    padding: 120px 32px 80px;
    text-align: center;
    background: var(--paper);
  }
  .closing-inner { max-width: 880px; margin: 0 auto; }
  .closing .swirl { color: var(--blush-deep); }
  .closing h3 {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: clamp(40px, 5.2vw, 70px);
    line-height: 1.05;
    color: var(--charcoal);
    margin: 28px 0 0;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  .closing .sig {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    font-size: 28px;
    color: var(--blush-deep);
    margin-top: 40px;
  }

  /* ---------- footer ---------- */
  footer {
    padding: 28px 32px 40px;
    text-align: center;
    color: rgba(58,51,44,0.55);
    font-family: var(--sans); font-weight: 400; font-size: 11px;
    letter-spacing: 0.3em; text-transform: uppercase;
    background: var(--paper);
  }
  footer .dot { color: var(--blush-deep); }

  /* ---------- reception-only page ---------- */
  .page-reception {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .page-reception .hero {
    padding-bottom: 40px;
    flex-shrink: 0;
  }
  .page-reception .hero-plate {
    height: clamp(220px, 32vh, 320px);
    margin-bottom: 40px;
  }
  .page-reception .hero-title {
    font-size: clamp(52px, 9vw, 112px);
    margin-bottom: 20px;
  }
  .page-reception .hero-sub {
    font-size: clamp(18px, 2vw, 24px);
    max-width: 480px;
  }
  .page-reception .hero-dates {
    margin-top: 28px;
    padding-top: 20px;
  }
  .page-reception .reception-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px 48px;
    width: 100%;
  }
  .page-reception .reception-card {
    width: 100%;
    max-width: 1180px;
    margin: 0;
    display: block;
  }
  .page-reception .day.spotlight {
    margin: 0;
    padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 64px);
    border-top: none;
    border-bottom: none;
  }
  .page-reception .reception-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: start;
  }
  .page-reception .day-meta {
    position: static;
  }
  .page-reception footer {
    margin-top: auto;
    flex-shrink: 0;
  }
  @media (max-width: 820px) {
    .page-reception .reception-grid {
      grid-template-columns: 1fr;
      gap: 32px;
    }
    .page-reception .hero-plate {
      height: clamp(200px, 28vh, 260px);
    }
    .page-reception .day.spotlight {
      padding: 40px 28px;
    }
  }

  /* ---------- responsive ---------- */
  @media (max-width: 820px) {
    .day { grid-template-columns: 1fr; gap: 28px; padding: 64px 0; }
    .day-meta { position: static; }
    .day-name { font-size: clamp(48px, 12vw, 72px); }
    .event-name { font-size: clamp(30px, 8vw, 42px); }
    .day.spotlight { margin: 64px -32px; padding: 72px 28px; }
    .schedule .row { grid-template-columns: 1fr; gap: 4px; }
  }

  /* small SVG leaf for ornaments */
  .leaf-svg { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }

  /* ---------- no animations/transitions anywhere ---------- */
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }

  /* ---------- print / PDF export ---------- */
  @page {
    size: Letter;
    margin: 0.5in;
  }
  @media print {
    :root {
      print-color-adjust: exact;
      -webkit-print-color-adjust: exact;
    }
    html, body { background: var(--paper); }
    body { font-size: 11pt; line-height: 1.55; }

    /* Hide chrome *//* Each major section starts a fresh page */
    .hero { page-break-after: always; break-after: page; padding-bottom: 0; }
    .intro { page-break-after: always; break-after: page; padding: 32px 0; }
    .day  { page-break-inside: avoid; break-inside: avoid; padding: 24px 0; border-top: 1px solid rgba(90,125,110,0.3); }
    .day.spotlight { page-break-before: always; break-before: page; margin: 0; padding: 32px 0; background: var(--cream); }
    .appendix { page-break-before: always; break-before: page; padding: 32px 0; }
    .closing { page-break-before: always; break-before: page; padding: 60px 0 24px; }
    footer { padding: 12px 0; }

    /* Compact hero for first page */
    .hero-plate { height: 3.2in; margin-bottom: 24px; }
    .hero-title { font-size: 56pt; line-height: 0.9; margin-bottom: 18px; }
    .hero-title .light { font-size: 10pt; margin-bottom: 14px; }
    .hero-sub { font-size: 14pt; max-width: 5in; }
    .hero-dates { margin-top: 22px; padding-top: 16px; font-size: 9pt; }

    /* Day spine */
    .spine { margin: 0; padding: 0; max-width: 100%; }
    .day { grid-template-columns: 2in 1fr; gap: 36px; }
    .day-name { font-size: 30pt; line-height: 0.95; margin-bottom: 8px; padding-right: 8px; }
    .day-num, .day-date { font-size: 8pt; }
    .event-name { font-size: 22pt; line-height: 1; margin: 2px 0; }
    .event-venue { font-size: 13pt; }
    .event-desc { font-size: 11pt; line-height: 1.5; max-width: none; }
    .event-time { font-size: 8.5pt; }
    .events { gap: 22px; }

    /* Schedule on wedding day */
    .schedule .row { padding: 8px 0; }
    .schedule .row .when { font-size: 8.5pt; }
    .schedule .row .what { font-size: 13pt; }

    /* Appendix — drop the dark theme for paper */
    .appendix {
      background: var(--paper) !important;
      color: var(--ink) !important;
    }
    .appendix h2 { color: var(--charcoal) !important; font-size: 44pt; }
    .appendix h2 em { color: var(--blush-deep) !important; }
    .appendix .eyebrow { color: var(--sage) !important; }
    .appendix-head { padding-bottom: 24px; margin-bottom: 28px; border-bottom-color: rgba(43,37,32,0.18); }
    .appendix-lede { color: var(--ink) !important; max-width: 3in; font-size: 11pt; }
    .guide-cat .cat-head { border-bottom-color: rgba(90,125,110,0.4); }
    .guide-cat .cat-head .num { color: var(--blush-deep) !important; }
    .guide-cat .cat-head .lbl { color: var(--sage) !important; }
    .place { padding: 8px 0; border-bottom-color: rgba(43,37,32,0.12) !important; page-break-inside: avoid; break-inside: avoid; }
    .place .name { color: var(--charcoal) !important; font-size: 14pt; }
    .place .note { color: var(--ink) !important; font-size: 10pt; }
    .place .note .tag { color: var(--sage-deep) !important; }
    .guide-grid { gap: 28px 24px; }

    /* Closing */
    .closing h3 { font-size: 32pt; }
    .closing .sig { font-size: 16pt; }

    /* Tighten links — no underlines in print */
    a { border-bottom: none !important; color: inherit; }
  }

  @media (max-width: 820px) {
    .spotlight-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  }

  .hero-title, .day-name, .event-name, .place .name, .appendix h2, .closing h3, .schedule .row .what {
    font-style: var(--heading-style, italic);
  }
