:root {
    --shell: #F2ECE2;      /* warm cream page */
    --paper: #FBF8F2;      /* card paper */
    --charcoal: #2A2826;   /* text */
    --soft: #625B53;       /* secondary text */
    --gold: #9C7F4F;       /* muted gold, text-safe */
    --gold-line: #CDBB98;  /* hairlines and frames */
    --sand: #E8DFD0;       /* quiet panels */
    --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
    --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
    --measure: 36rem;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0;
    background: var(--shell);
    color: var(--charcoal);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
  a:hover { text-decoration-color: var(--gold); }
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
  .wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

  /* ---------- Hero: an invitation card whose star is the booking deadline ---------- */
  .hero { padding: 1.5rem 0 2.5rem; }
  .card {
    background: var(--paper);
    border: 1px solid var(--gold-line);
    outline: 1px solid var(--gold-line);
    outline-offset: -10px;
    padding: 3rem 1.75rem 2.5rem;
    text-align: center;
  }
  .names {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.4rem, 9vw, 3.6rem);
    line-height: 1.05;
    margin: 0;
    letter-spacing: -0.01em;
  }
  .names .amp { display: block; font-style: italic; font-size: 0.6em; color: var(--gold); margin: 0.15em 0; }
  .when-where { margin: 1.1rem 0 0; color: var(--soft); font-size: 1rem; }
  .when-where strong { display: block; color: var(--charcoal); font-weight: 500; }
  .rule { width: 3.5rem; height: 1px; background: var(--gold); margin: 2rem auto; border: 0; transform-origin: center; }
  .deadline-lead { margin: 0; font-size: 1rem; color: var(--soft); }
  .deadline {
    font-family: var(--serif);
    font-weight: 400;
    margin: 0.35rem 0 0;
    line-height: 0.95;
    font-size: clamp(3.4rem, 15vw, 6.25rem);
    font-variation-settings: "opsz" 96;
    letter-spacing: -0.02em;
  }
  .deadline-year { display: block; font-size: 0.32em; letter-spacing: 0.02em; color: var(--gold); margin-top: 0.5rem; font-style: italic; }
  .countdown { margin: 1.1rem 0 0; font-size: 0.95rem; color: var(--soft); }
  .countdown b { color: var(--charcoal); font-weight: 600; }
  .actions { margin-top: 1.75rem; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
  .btn {
    display: inline-block;
    background: var(--charcoal);
    color: var(--paper);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.95rem 1.6rem;
    border-radius: 2px;
    border: 1px solid var(--charcoal);
    transition: background-color .2s ease;
  }
  .btn:hover { background: #3d3a37; }
  .text-link { font-size: 0.95rem; }
  .code-line { margin: 1.25rem 0 0; font-size: 0.9rem; color: var(--soft); }
  .code-line span { color: var(--charcoal); font-weight: 500; letter-spacing: 0.03em; }

  @media (prefers-reduced-motion: no-preference) {
    .deadline { animation: rise .9s cubic-bezier(.2,.7,.2,1) .15s both; }
    .rule { animation: draw .8s ease-out both; }
    @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
    @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }

  /* ---------- Contents ---------- */
  .contents { position: sticky; top: 0; z-index: 5; background: var(--shell); border-bottom: 1px solid var(--gold-line); }
  .contents ul { list-style: none; margin: 0; padding: 0.7rem 1.25rem; display: flex; gap: 1.25rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; max-width: 46rem; margin: 0 auto; }
  .contents ul::-webkit-scrollbar { display: none; }
  .contents a { font-size: 0.9rem; text-decoration: none; color: var(--soft); padding: 0.25rem 0; border-bottom: 1px solid transparent; }
  .contents a:hover, .contents a[aria-current="true"] { color: var(--charcoal); border-bottom-color: var(--gold); }

  /* ---------- Sections ---------- */
  main section { padding: 3.25rem 0 0.5rem; scroll-margin-top: 3.5rem; }
  h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.9rem, 6vw, 2.4rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
  }
  h3 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; margin: 0 0 0.25rem; }
  p { margin: 0 0 1rem; max-width: var(--measure); }
  .intro { color: var(--soft); }
  .welcome { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; max-width: 34rem; }
  .sign { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.15rem; }

  /* why book */
  .reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
  .reasons li { padding-left: 1.25rem; border-left: 1px solid var(--gold); max-width: var(--measure); }
  .reasons p { margin: 0; color: var(--soft); }

  /* costs */
  .tiers { display: grid; gap: 1rem; margin: 1.5rem 0 0.75rem; }
  @media (min-width: 720px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
  .tier { background: var(--paper); border: 1px solid var(--gold-line); padding: 1.4rem 1.25rem 1.25rem; }
  .tier.featured { border-color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
  .tier h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 0.1rem; }
  .tier .room { color: var(--soft); font-size: 0.95rem; margin: 0 0 1rem; }
  .tier .total { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; margin: 0 0 1rem; }
  .tier .total small { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--soft); margin-top: 0.3rem; }
  .tier dl { margin: 0; font-size: 0.92rem; }
  .tier dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-top: 1px solid var(--sand); }
  .tier dt { color: var(--soft); }
  .tier dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .basis { font-size: 0.9rem; color: var(--soft); }
  .save-list { padding-left: 1.2rem; max-width: var(--measure); }
  .save-list li { margin-bottom: 0.4rem; }

  /* steps: a real sequence */
  .steps { list-style: none; padding: 0; margin: 1.25rem 0 0; counter-reset: step; max-width: var(--measure); }
  .steps li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3rem; }
  .steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: -0.1rem;
    width: 2rem; height: 2rem; border-radius: 50%;
    border: 1px solid var(--gold); color: var(--gold);
    font-family: var(--serif); font-size: 1.05rem;
    display: grid; place-items: center;
  }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 1rem; top: 2.1rem; bottom: 0.2rem; width: 1px; background: var(--gold-line); }
  .steps p { margin: 0; color: var(--soft); }

  /* weekend timeline */
  .day { margin-top: 1.75rem; }
  .day-name { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 0.6rem; }
  .day-name span { color: var(--gold); font-style: italic; }
  .event { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--gold-line); }
  .event:last-child { border-bottom: 1px solid var(--gold-line); }
  .event time { font-size: 0.92rem; color: var(--soft); padding-top: 0.1rem; }
  .event p { margin: 0; color: var(--soft); font-size: 0.97rem; }
  .dress { display: inline-block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--gold); }
  .wedding-day .day-name { font-size: 1.6rem; }
  .dress-guide { margin-top: 2rem; background: var(--sand); padding: 1.4rem 1.25rem; }
  .dress-guide h3 { margin-bottom: 0.75rem; }
  .dress-guide dl { margin: 0; }
  .dress-guide dt { font-weight: 600; margin-top: 0.75rem; }
  .dress-guide dt:first-child { margin-top: 0; }
  .dress-guide dd { margin: 0.15rem 0 0; color: var(--soft); max-width: var(--measure); }

  /* info blocks */
  .facts { display: grid; gap: 1.4rem; margin-top: 1.25rem; }
  .facts > div { max-width: var(--measure); }
  .facts p { margin: 0; color: var(--soft); }
  .plain-list { padding-left: 1.2rem; max-width: var(--measure); color: var(--soft); }
  .plain-list li { margin-bottom: 0.45rem; }
  .pack { columns: 2 14rem; column-gap: 2rem; list-style: none; padding: 0; margin: 1rem 0 0; }
  .pack li { break-inside: avoid; padding: 0.5rem 0 0.5rem 1.6rem; position: relative; border-bottom: 1px solid var(--sand); }
  .pack li::before { content: ""; position: absolute; left: 0; top: 0.85rem; width: 0.8rem; height: 0.8rem; border: 1px solid var(--gold); }

  /* faq */
  .faq { margin-top: 1rem; border-top: 1px solid var(--gold-line); }
  .faq details { border-bottom: 1px solid var(--gold-line); }
  .faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 500; position: relative; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-family: var(--serif); font-size: 1.4rem; color: var(--gold); transition: transform .2s ease; }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq details p { color: var(--soft); padding-bottom: 0.5rem; }

  /* travel details band */
  .band { background: var(--charcoal); color: var(--paper); margin-top: 3.5rem; padding: 3rem 0; }
  .band h2 { color: var(--paper); }
  .band p { color: #D9D1C4; }
  .band .btn { background: var(--paper); color: var(--charcoal); border-color: var(--paper); }
  .band .btn:hover { background: var(--sand); }

  /* contacts */
  .contacts { display: grid; gap: 1rem; margin-top: 1.25rem; }
  @media (min-width: 640px) { .contacts { grid-template-columns: 1fr 1fr; } }
  .contact { background: var(--paper); border: 1px solid var(--gold-line); padding: 1.25rem; }
  .contact .role { color: var(--gold); font-size: 0.9rem; margin: 0 0 0.35rem; }
  .contact .who { font-weight: 600; margin: 0 0 0.35rem; }
  .contact p { margin: 0; }

  footer { padding: 3rem 0 6.5rem; color: var(--soft); font-size: 0.88rem; }
  footer .made { font-family: var(--serif); font-size: 1.05rem; color: var(--charcoal); margin-bottom: 0.4rem; }
  footer p { max-width: 40rem; }
  .demo-note { background: var(--sand); text-align: center; font-size: 0.85rem; color: var(--soft); padding: 0.55rem 1rem; margin: 0; max-width: none; }

  /* sticky booking bar (mobile) */
  .bookbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: var(--paper); border-top: 1px solid var(--gold-line);
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    transform: translateY(110%); transition: transform .25s ease;
  }
  .bookbar.show { transform: none; }
  .bookbar p { margin: 0; font-size: 0.9rem; color: var(--soft); line-height: 1.3; }
  .bookbar p b { display: block; color: var(--charcoal); font-weight: 600; }
  .bookbar .btn { padding: 0.7rem 1.1rem; font-size: 0.92rem; white-space: nowrap; }
  @media (min-width: 900px) { .bookbar { display: none; } }
  @media (prefers-reduced-motion: reduce) { .bookbar { transition: none; } }

/* ---------- Additions for the shared engine ---------- */
.trip-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 8.5vw, 3.4rem); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
.trip-sub { display: block; font-style: italic; color: var(--gold); font-size: 0.5em; margin-top: 0.45em; letter-spacing: 0; }
.progress { margin: 1.4rem auto 0; max-width: 22rem; }
.progress-track { height: 4px; background: var(--sand); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold); }
.progress p { margin: 0.55rem auto 0; font-size: 0.9rem; color: var(--soft); max-width: none; }
.ports { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.ports li { font-family: var(--serif); font-size: 1.25rem; }
.note { font-size: 0.9rem; color: var(--soft); margin-top: 0.75rem; }
