/**
 * Luxury Marble — OurDay theme
 *
 * slug: luxury-marble
 * Generated by tools/theme-import.php on 2026-09-23. Do not hand-edit — any
 * re-import overwrites this file. Edit dist/incoming/luxury-marble/theme.css and re-import
 * instead; that is the source of truth once the design has been deleted from
 * Claude Design, which is the normal end of a theme's life there.
 *
 * Loads after assets/css/wedding.css. Override the --od-* tokens, then style the
 * .od-* classes freely.
 */

/* ── Tokens ──────────────────────────────────────────────────────────────── */

:root {
    --od-bg: #ffffff;
    --od-surface: #fdf9ef;
    --od-ink: #241f1a;
    --od-ink-muted: #6f6960;
    --od-accent: #c9a227;
    --od-accent-ink: #ffffff;
    --od-rule: rgba(201, 162, 39, 0.28);

    /* Theme-only: the gilded gradient used for ornament, never for a flat
     * accent fill — the couple's own accent colour stays the single source
     * of truth for that, injected after this file. */
    --lm-gold-soft: #e8cd6e;
    --lm-gold-deep: #9d7a12;
    --lm-hairline: rgba(201, 162, 39, 0.22);
    --lm-hairline-strong: rgba(201, 162, 39, 0.45);

    /* The two gradients the source's divider is built from, verbatim. */
    --lm-rule-line: linear-gradient(90deg, rgba(201, 162, 39, .12), #d4af37 45%, #b8901f 55%, rgba(201, 162, 39, .12));
    --lm-rule-diamond: linear-gradient(135deg, #f0d87e, #c9a227 45%, #a97f10);

    --od-font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --od-font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Narrower than the design's raw pixel widths on purpose — od-section > *
     * centres every direct child at this measure, and prose (welcome, gate,
     * contact) reads better narrow than the wide grid sections below. */
    --od-measure: 36rem;
    --od-gutter: 1.5rem;
    --od-section-y: 4.5rem;
}

@media (min-width: 48rem) {
    :root { --od-section-y: 7rem; }
}

/* The grid / card sections get the design's wider column; --od-measure above
 * stays narrow for the sections that are pure prose. */
.od-day > *, .od-venue > *, .od-stay > *, .od-details > * { max-width: 50rem; }
.od-rsvp > * { max-width: 36rem; }

/* ── Page ────────────────────────────────────────────────────────────────── */

body {
    background: var(--od-bg);
    font-weight: 300;
    font-size: 1.02rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lm-gold-soft); color: var(--od-ink); }

a { text-decoration: none; }
a:hover { color: var(--lm-gold-deep); }

:focus-visible { outline: 2px solid var(--od-accent); outline-offset: 3px; }

h1, h2, h3 { font-weight: 300; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 5vw, 2.75rem); }

/* Small-caps gold label, shared by every eyebrow-style piece of text: nav
 * links, dates, meta rows. Mirrors the letter-spaced uppercase caps that runs
 * through the whole original design. */
.od-nav__link, .od-hero__date, .od-gate__date, .od-day__time,
.od-stay__type, .od-contact__label, .od-details__heading,
.od-rsvp__legend, .od-rsvp__label, .od-gate__label {
    font-family: var(--od-font-body);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* The divider, copied from the source: a flex row of two gradient hairlines
 * either side of a rotated square. Under the hero names it is three real
 * spans (see views/hero.php), at the source's larger size. */
.lm-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 38px 0 0;
}

.lm-rule__line { width: 70px; height: 1px; background: var(--lm-rule-line); }

.lm-rule__diamond {
    width: 8px;
    height: 8px;
    background: var(--lm-rule-diamond);
    transform: rotate(45deg);
}

/* ::before carries the two lines, ::after the diamond stacked back on top of
 * them — a rotated box cannot also hold the lines as backgrounds, because the
 * rotation would take them with it and a background never paints outside its
 * own box. Widths and gaps are the source's: 44px lines, 14px gap, 6px
 * diamond, the smaller of its two divider sizes. */
.od-day__title::before, .od-stay__title::before, .od-details__title::before,
.od-contact__title::before, .od-rsvp__title::before {
    content: "";
    display: block;
    width: 116px;              /* 44 + 14 + 6 + 14 + 44 */
    height: 6px;
    margin: 24px auto 0;
    background:
        var(--lm-rule-line) left center / 44px 1px no-repeat,
        var(--lm-rule-line) right center / 44px 1px no-repeat;
}

.od-day__title::after, .od-stay__title::after, .od-details__title::after,
.od-contact__title::after, .od-rsvp__title::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    margin: -6px auto 0;       /* back up onto the line row */
    background: var(--lm-rule-diamond);
    transform: rotate(45deg);
}

.od-day__title, .od-stay__title, .od-details__title,
.od-contact__title, .od-rsvp__title {
    text-align: center;
    font-size: clamp(2rem, 5.5vw, 2.9rem);
    margin-bottom: 2.25rem;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */

.od-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    justify-content: center;
    gap: 0.6rem 2.2rem;
    padding: 0.9rem var(--od-gutter);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--lm-hairline);
}

/* Nested as a <li> inside .od-nav__links (see themes/luxury-marble/views/nav.php)
 * so it can sit between two link groups — .od-nav__brand and the link list are
 * siblings in the default markup, which can only be reordered as whole blocks,
 * never interleaved, from CSS alone. */
.od-nav__brand-item { margin-inline: 0.5rem; }

.od-nav__brand {
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, var(--lm-gold-soft), var(--od-accent) 40%, var(--lm-gold-deep) 70%, var(--lm-gold-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Only the ampersand is italic in the source — the initials stay upright. */
.od-nav__amp { font-style: italic; padding: 0 0.15em; }

.od-nav__links { justify-content: center; gap: 0.6rem 1.6rem; }
.od-nav__link { font-size: 0.72rem; color: var(--od-ink-muted); }
.od-nav__link:hover { color: var(--od-accent); }

.od-nav__toggle-bar { background: var(--od-ink); }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.od-hero {
    position: relative;
    min-height: calc(100svh - 3.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--od-surface);
    background-image: url("/themes/luxury-marble/assets/marble.png");
    background-size: cover;
    background-position: center;
}

.od-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.15) 46%, rgba(253, 252, 249, 0.4) 100%);
}

.od-hero::after {
    content: "";
    position: absolute;
    inset: 26px;
    border: 1px solid var(--lm-hairline-strong);
    pointer-events: none;
}

.od-hero > * { position: relative; }

/* Visual order follows the source (names, then date, then venue); DOM order
 * stays as the engine emits it (date, names, venue) for reading order, so
 * this is `order` only, not a markup change. Every hero child needs an
 * explicit value — anything left at the default (0) would jump ahead of the
 * items placed at 2 and 3. */
.od-hero__date { order: 3; color: var(--od-ink-muted); margin-top: 1.75rem; }

.od-hero__names {
    order: 1;
    font-size: clamp(3.25rem, 11vw, 7.5rem);
    line-height: 0.96;
    color: var(--od-ink);

    /* The box the names are measured against, and it must be the one that
       actually constrains them. Not .od-hero, which is 1392px wide at 1440px
       while wedding.css caps this element at --od-measure (36rem = 576px) — a
       query on the hero made the size below never bind.

       width: 100% is load-bearing. As a centred flex item this is otherwise
       shrink-to-fit, so its width would come from the text and asking it how
       wide the text may be would be circular. Filling to the cap gives the
       query a definite answer; the text stays centred because the hero already
       centres it. */
    container-type: inline-size;
    width: 100%;
}

/* The divider between the names and the date below — real markup in
 * views/hero.php, styled by .lm-rule above. */
.od-hero .lm-rule { order: 2; }

/* Never wider than the hero allows. A cap, not a replacement: the size on
   .od-hero__names still decides, and this only pulls a name down when it would
   not otherwise fit, so short names are unchanged.

   1em is that inherited size, and .od-hero__names is deliberately left alone —
   .od-hero__amp below is 0.4em of it, so rewriting that rule would resize the
   joining word too.

   0.62 is the advance per character for Cormorant Garamond in mixed case.
   Measured on this theme: Wim 0.652, Emma 0.624, Bastien 0.411,
   Jean-Baptiste 0.400.

   Calibrated on LONG names rather than the widest one, because this only ever
   binds for long names — a short name is nowhere near the cap whatever its
   letters. In this face the two run opposite ways: the widest per-character
   values belong to short names, which have room to spare, while the long names
   that actually need capping are the narrowest.

   It describes the typeface, not the engine, which is why it lives here and
   why Archivo's 0.84 cannot be reused.

   This theme also overrides views/hero.php, so it only receives --od-name-len
   because that override was updated too. Without both halves it would keep
   splitting Jean-Baptiste across two lines at 1440px. */
.od-hero__name {
    font-size: min(1em, calc(100cqi / (var(--od-name-len, 8) * 0.62)));
}

.od-hero__amp { font-style: italic; font-size: 0.4em; color: var(--od-accent); margin: 0.15em 0; }

.od-hero__venue {
    order: 4;
    font-family: var(--od-font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--od-ink-muted);
    margin-top: 1.5rem;
}

.od-hero__photos { order: 5; margin-top: 3rem; gap: 1.25rem; }
.od-hero__photo {
    width: min(10rem, 34vw);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    outline: 1px solid var(--lm-hairline-strong);
    outline-offset: 6px;
}

/* ── Welcome ─────────────────────────────────────────────────────────────── */

.od-welcome__body {
    font-family: var(--od-font-display);
    font-style: italic;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    line-height: 1.6;
    color: var(--od-ink-muted);
    text-align: center;
    text-wrap: pretty;
}

/* ── The day ─────────────────────────────────────────────────────────────── */

.od-day {
    background-color: var(--od-surface);
    background-image: url("/themes/luxury-marble/assets/paper-light.png");
    background-size: 600px;
}

.od-day__list { gap: 0; }
.od-day__item {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: clamp(1rem, 4vw, 2.5rem);
    align-items: baseline;
    padding: 1.6rem 0;
    border-top: 1px solid var(--lm-hairline-strong);
    border-bottom: 0;
}
.od-day__item:last-child { border-bottom: 1px solid var(--lm-hairline-strong); }

.od-day__time {
    font-family: var(--od-font-display);
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
    font-size: 1.55rem;
    color: var(--od-accent);
}
.od-day__time-sep { margin: 0 0.15em; color: var(--od-ink-muted); }

.od-day__name { font-size: 1.5rem; margin-bottom: 0.4rem; }
.od-day__desc { color: var(--od-ink-muted); text-wrap: pretty; }

/* ── Venue ───────────────────────────────────────────────────────────────── */

/* The one section with two real text nodes in its heading, so it is the one
 * place the design's "small gold eyebrow above a big serif heading" pattern
 * can be rebuilt honestly rather than faked with generated content. */
.od-venue__title {
    display: block;
    font-family: var(--od-font-body);
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--od-accent);
    margin-bottom: 1rem;
}

.od-venue__name {
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 1.4rem;
}

.od-venue__address {
    padding: 1.4rem 0;
    border-top: 1px solid var(--lm-hairline-strong);
    border-bottom: 1px solid var(--lm-hairline-strong);
    color: var(--od-ink-muted);
    font-family: var(--od-font-display);
    font-size: 1.15rem;
}

.od-venue__notes { color: var(--od-ink-muted); text-wrap: pretty; }

.od-venue__links { gap: 1.5rem; margin-top: 1.5rem; }
.od-venue__link {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.9rem 1.9rem;
    border: 1px solid var(--od-accent);
    color: var(--od-ink);
}
.od-venue__link:hover { background: var(--od-accent); color: var(--od-accent-ink); }

/* Offset frame held off the photograph, the same language as the hero's
 * double border. */
.od-venue__figure { position: relative; padding: 0; border: 0; }
.od-venue__figure::before {
    content: "";
    position: absolute;
    inset: -14px;
    border: 1px solid var(--lm-hairline-strong);
    pointer-events: none;
}
.od-venue__photo { box-shadow: none; }

/* Most venues have none — this must look finished on its own. A hairline
 * divider stands in for the frame the photo would otherwise supply. */
.od-venue--no-photo .od-venue__body { text-align: left; }

/* ── Stay ────────────────────────────────────────────────────────────────── */

.od-stay {
    background-color: var(--od-surface);
    background-image: url("/themes/luxury-marble/assets/paper-light.png");
    background-size: 600px;
}

.od-stay__intro { text-align: center; color: var(--od-ink-muted); margin-bottom: 2.5rem; text-wrap: pretty; }

.od-stay__list { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.75rem; }

.od-stay__item {
    background: var(--od-bg);
    border: 1px solid var(--lm-hairline-strong);
    border-radius: 0;
    padding: 2.1rem 1.9rem 1.9rem;
}
.od-stay__item:hover { border-color: var(--od-accent); }

.od-stay__name { font-size: 1.55rem; margin-bottom: 0.6rem; }

.od-stay__meta { color: var(--od-ink-muted); margin-bottom: 0.9rem; }
.od-stay__type { color: var(--od-accent); font-size: 0.7rem; }
.od-stay__distance { font-family: var(--od-font-body); font-size: 0.8rem; color: var(--od-ink-muted); }

.od-stay__desc { color: var(--od-ink-muted); margin-bottom: 1.1rem; text-wrap: pretty; }

.od-stay__contact { gap: 0.5rem 1.4rem; }
.od-stay__link {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--od-accent);
}
.od-stay__link:hover { color: var(--lm-gold-deep); }

/* ── Details ─────────────────────────────────────────────────────────────── */

.od-details__block {
    text-align: center;
    padding: 2.6rem 1.9rem;
    background: var(--od-bg);
    border: 1px solid var(--lm-hairline-strong);
    margin-bottom: 1.75rem;
}
.od-details__block:last-child { margin-bottom: 0; }

.od-details__heading {
    display: block;
    color: var(--od-accent);
    font-size: 0.75rem;
    margin-bottom: 1.1rem;
}

.od-details__body { color: var(--od-ink-muted); text-wrap: pretty; }

@media (min-width: 48rem) {
    .od-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem; }
    .od-details__block { max-width: none; margin: 0; }
}

/* ── Contact ─────────────────────────────────────────────────────────────── */

.od-contact {
    background-color: var(--od-surface);
    background-image: url("/themes/luxury-marble/assets/paper-light.png");
    background-size: 600px;
}

.od-contact__intro { text-align: center; color: var(--od-ink-muted); margin-bottom: 2rem; text-wrap: pretty; }

.od-contact__list { justify-content: center; text-align: center; gap: 0.75rem; }
.od-contact__item { justify-content: center; gap: 0.6rem; }
.od-contact__label { color: var(--od-ink-muted); font-size: 0.72rem; }
.od-contact__link { font-size: 1.05rem; font-family: var(--od-font-display); color: var(--od-ink); }
.od-contact__link:hover { color: var(--od-accent); }

/* ── RSVP ────────────────────────────────────────────────────────────────── */

.od-rsvp {
    background-color: var(--od-surface);
    background-image: url("/themes/luxury-marble/assets/paper-light.png");
    background-size: 600px;
}

.od-rsvp__intro { text-align: center; color: var(--od-ink-muted); margin-bottom: 2rem; text-wrap: pretty; }

.od-rsvp__loading, .od-rsvp__done, .od-rsvp__closed {
    padding: 3rem 1.75rem;
    font-family: var(--od-font-display);
    font-size: 1.3rem;
    color: var(--od-ink-muted);
    background: var(--od-bg);
    border: 1px solid var(--lm-hairline-strong);
    text-align: center;
}
.od-rsvp__done { color: var(--od-ink); }

.od-rsvp__form {
    background: var(--od-bg);
    border: 1px solid var(--lm-hairline-strong);
    padding: clamp(1.75rem, 5vw, 2.75rem);
    gap: 1.75rem;
}

.od-rsvp__legend { color: var(--od-accent); font-size: 0.75rem; margin-bottom: 0.5rem; }

.od-rsvp__guest { background: var(--od-surface); border: 1px solid var(--lm-hairline); border-radius: 0; }

.od-rsvp__label { color: var(--od-ink-muted); font-size: 0.68rem; }

.od-rsvp__input {
    border: 0;
    border-bottom: 1px solid var(--lm-hairline-strong);
    border-radius: 0;
    background: transparent;
    padding: 0.7rem 0.1rem;
    font-size: 1rem;
}
.od-rsvp__input:focus { outline: none; border-color: var(--od-accent); }
textarea.od-rsvp__input { border: 1px solid var(--lm-hairline-strong); padding: 0.8rem; }

/* Two boxed choices sit side by side even on a phone: the padding is what
   decides whether "Présent(e)" and "Absent(e)" fit on one line there. */
.od-rsvp__answer { gap: 0.5rem; }
.od-rsvp__choice {
    border: 1px solid var(--lm-hairline-strong);
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
}
@media (max-width: 480px) {
    .od-rsvp__choice { padding: 0.5rem 0.6rem; font-size: 0.8rem; }
}
.od-rsvp__choice input { accent-color: var(--od-accent); }

.od-rsvp__submit {
    justify-self: center;
    margin-top: 0.5rem;
    padding: 1rem 3rem;
    font-family: var(--od-font-body);
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--od-ink);
    background: transparent;
    border: 1px solid var(--od-accent);
    border-radius: 0;
}
.od-rsvp__submit:hover { background: var(--od-accent); color: var(--od-accent-ink); }

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

/* ── Footer ──────────────────────────────────────────────────────────────── */

/* The original design's closing "Get in Touch" block was built as a marble
 * footer, but its content — an email address — is real od-contact data that
 * has to render earlier in the fixed section order. This is the section that
 * inherits its visual treatment: the marble ground, the gold rule and the
 * gradient wordmark, closing the page exactly as the design intended. */
.od-footer {
    position: relative;
    padding: calc(var(--od-section-y) * 1.1) var(--od-gutter) 3.5rem;
    background-color: var(--od-surface);
    background-image: url("/themes/luxury-marble/assets/marble.png");
    background-size: cover;
    background-position: center bottom;
    border-top: 0;
    color: var(--od-ink-muted);
}
.od-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.74);
}
.od-footer > * { position: relative; }

.od-footer__names {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--lm-gold-soft), var(--od-accent) 40%, var(--lm-gold-deep) 70%, var(--lm-gold-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.od-footer__meta { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }

.od-footer__legal { margin-top: 1.5rem; }
.od-footer__link { color: var(--od-ink-muted); }
.od-footer__link:hover { color: var(--od-accent); }

/* ── Gate ────────────────────────────────────────────────────────────────── */
/* No /uploads/ image may load here, so the marble ground and the frame both
 * come from theme assets — same treatment as the hero. */

.od-gate {
    position: relative;
    background-color: var(--od-surface);
    background-image: url("/themes/luxury-marble/assets/marble.png");
    background-size: cover;
    background-position: center;
}
.od-gate::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 46%, rgba(253, 252, 249, 0.45) 100%);
}
.od-gate::after {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid var(--lm-hairline-strong);
    pointer-events: none;
}
.od-gate__inner { position: relative; }

.od-gate__date { color: var(--od-ink-muted); margin-bottom: 1.5rem; }

.od-gate__names { font-size: clamp(2.6rem, 11vw, 4rem); margin-bottom: 1.25rem; }
.od-gate__amp { font-style: italic; font-size: 0.4em; color: var(--od-accent); }

.od-gate__welcome {
    font-family: var(--od-font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--od-ink-muted);
    text-wrap: pretty;
}

.od-gate__form { gap: 1rem; text-align: center; }
.od-gate__label { color: var(--od-accent); font-size: 0.7rem; }

.od-gate__input {
    text-align: center;
    border: 0;
    border-bottom: 1px solid var(--lm-hairline-strong);
    border-radius: 0;
    background: transparent;
    font-size: 1.05rem;
}
.od-gate__input:focus { outline: none; border-color: var(--od-accent); }

.od-gate__submit {
    margin-top: 0.5rem;
    padding: 1rem 2.5rem;
    font-family: var(--od-font-body);
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--od-ink);
    background: transparent;
    border: 1px solid var(--od-accent);
    border-radius: 0;
}
.od-gate__submit:hover { background: var(--od-accent); color: var(--od-accent-ink); }

.od-gate__note { color: var(--od-ink-muted); font-size: 0.82rem; text-wrap: pretty; }

/* ── Motion ──────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/**
 * Assets needed — deliberately not created by this pass:
 *
 *   www/public/themes/luxury-marble/assets/marble.png        (large, covers the
 *     hero, the gate and the footer — a pale, veined marble slab)
 *   www/public/themes/luxury-marble/assets/paper-light.png    (small, tiles at
 *     600px — a faint warm paper texture behind the day/stay/contact/rsvp
 *     sections)
 *
 * Until both exist those sections fall back to --od-surface, a flat warm
 * ivory, so nothing breaks — they just sit flatter than the design intends.
 * Drop the files in directly: tools/build-photos.php generates the shared
 * /assets/img/backgrounds/ library from originals in tools/photos/, and theme
 * assets are not part of it. A changed one needs a new filename, since
 * cache-busting does not reach inside a theme folder.
 */
