/**
 * Citrus Coast — OurDay theme
 *
 * slug: citrus-coast
 * Generated by tools/theme-import.php on 2026-08-09. Do not hand-edit: the design
 * project is the source of truth for presentation, and the next /theme-sync
 * will overwrite this file.
 *
 * Loads after assets/css/wedding.css. Override the --od-* tokens, then style the
 * .od-* classes freely.
 */

/**
 * OurDay theme — Citrus Coast
 *
 * High summer on the coast: sun-bleached linen, sea glass, coral and lemon.
 * Ornament is drawn in CSS and inline SVG — a half citrus slice under every
 * heading, scalloped awning edges, a low sun on the gate.
 *
 * Loads after the engine base stylesheet. Theme layer only.
 * Mobile first — no page-level min-width.
 */

/* Google Fonts is the only external origin the CSP allows. Declared here so the
 * stylesheet is self-sufficient — it does not depend on a <link> in the page. */
/* ── Tokens ──────────────────────────────────────────────────────────────── */

:root {
    --od-bg: #fffaf2;
    --od-surface: #eaf2ee;
    --od-ink: #24363a;
    --od-ink-muted: #64797d;
    --od-accent: #e2674a;
    --od-accent-ink: #fffaf2;
    --od-rule: #e4dcd0;

    /* Theme-only */
    --od-sea: #2f5d63;
    --od-glass: #a9c8c0;
    --od-lemon: #f2c14e;
    --od-coral-deep: #c04a30;
    --od-shell: #fae3d5;
    --od-deep: #1d3f45;   /* below the sea — the surround behind a boxed card */

    --od-font-display: 'Gilda Display', Georgia, 'Times New Roman', serif;
    --od-font-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Font-independent: `ch` resolves against each child's own font, which
     * strands a display heading far left of the body column it titles. */
    --od-measure: 32rem;
    --od-section-y: 3.5rem;
    --od-caps: 0.72rem;
    --od-radius: 4px;
    --od-scallop: 13px;
}

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

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

body {
    background-color: var(--od-bg);
    background-image:
        radial-gradient(75ch 50ch at 88% -10%, rgba(242, 193, 78, .3), transparent 68%),
        radial-gradient(60ch 45ch at -5% 12%, rgba(169, 200, 192, .28), transparent 70%);
    background-attachment: fixed;
    font-weight: 300;
    font-size: 1.02rem;
    line-height: 1.72;
}

h1, h2, h3 { font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.7rem, 13vw, 5rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 6vw, 2.4rem); }
h3 { font-family: var(--od-font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; }

a { color: var(--od-accent); text-underline-offset: 0.25em; text-decoration-thickness: 1px; text-decoration-color: var(--od-shell); }
a:hover { color: var(--od-coral-deep); text-decoration-color: currentColor; }

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

::selection { background: var(--od-lemon); color: var(--od-sea); }

/* The base centres every `.od-section > *` at --od-measure, so every direct
 * child shares one column. A child capped narrower than the measure cannot be
 * aligned with it by margin alone: `auto` centres the narrower box and indents
 * its left edge, `0` shoves it out to the section padding edge. Either way it
 * breaks the column. These blocks therefore keep the shared measure. */

/* Small caps eyebrow, shared. */
.od-hero__date, .od-gate__date, .od-stay__meta, .od-day__time, .od-contact__label, .od-nav__link {
    font-size: var(--od-caps);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* A half citrus slice sits under every section heading. */
.od-day__title, .od-venue__title, .od-stay__title, .od-details__title, .od-contact__title, .od-rsvp__title {
    position: relative;
    padding-bottom: 1.3rem;
    margin-bottom: 1.75rem;
    color: var(--od-sea);
}
.od-day__title::after, .od-venue__title::after, .od-stay__title::after,
.od-details__title::after, .od-contact__title::after, .od-rsvp__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 26px;
    height: 13px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 12a12 12 0 0 1 24 0z' fill='%23f2c14e'/%3E%3Cg stroke='%23fffaf2' stroke-width='.9' fill='none'%3E%3Cpath d='M12 12V0.4'/%3E%3Cpath d='M12 12 3.6 3.6'/%3E%3Cpath d='M12 12 20.4 3.6'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}

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

.od-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    gap: 0.5rem 1.25rem;
    padding: 0.85rem var(--od-gutter);
    background: rgba(255, 250, 242, .88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--od-rule);
}

.od-nav__brand { font-size: 1.35rem; color: var(--od-sea); }

.od-nav__links { gap: 0.5rem 1.15rem; }

.od-nav__link { color: var(--od-ink-muted); padding: 0.15rem 0; border-bottom: 1px solid transparent; }
.od-nav__link:hover { color: var(--od-accent); border-bottom-color: var(--od-lemon); }

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

.od-hero { padding-top: calc(var(--od-section-y) * 1.2); padding-bottom: calc(var(--od-section-y) * 1.1); }

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

.od-hero__names { color: var(--od-sea); margin-bottom: 1rem; }
.od-hero__amp {
    color: var(--od-accent);
    font-family: var(--od-font-body);
    font-size: 0.26em;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin: 0.45em 0;
}

.od-hero__venue { font-family: var(--od-font-display); font-size: 1.3rem; color: var(--od-ink-muted); }

/* One or two — the engine omits the wrapper entirely when there are none. */
.od-hero__photos { gap: 1.5rem; margin-top: 3rem; }

/* Sun discs. A square crop keeps a landscape snapshot and a portrait one the
 * same shape, so a pair never reads as ragged. */
.od-hero__photo {
    width: min(13rem, 40vw);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 20px 40px -26px rgba(36, 54, 58, .7);
    outline: 1px solid var(--od-glass);
    outline-offset: 6px;
}

/* A single portrait stands alone rather than sitting in half a pair. */
.od-hero__photo:only-child { width: min(16rem, 56vw); }

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

.od-welcome { padding-top: 0; }
.od-welcome__body {
    font-family: var(--od-font-display);
    font-size: clamp(1.35rem, 4.5vw, 1.85rem);
    line-height: 1.5;
    color: var(--od-sea);
    text-align: center;
    text-wrap: pretty;
    max-width: 34ch;
}
.od-welcome__body br { content: ""; display: block; margin-bottom: 0.35em; }

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

/* Slow swell — two offset sine rules, one 96px SVG tile, no request. */
.od-day {
    background-color: var(--od-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='40' viewBox='0 0 96 40'%3E%3Cg fill='none' stroke='%23a9c8c0' stroke-width='1' opacity='.35'%3E%3Cpath d='M0 12q12 -8 24 0t24 0 24 0 24 0'/%3E%3Cpath d='M0 32q12 -8 24 0t24 0 24 0 24 0'/%3E%3C/g%3E%3C/svg%3E");
}

.od-day__list { gap: 0; border-left: 1px solid var(--od-rule); }

.od-day__item {
    position: relative;
    padding: 0 0 2.25rem 1.5rem;
    border-bottom: 0;
}
.od-day__item:last-child { padding-bottom: 0; }
.od-day__item::before {
    content: "";
    position: absolute;
    left: -0.35rem;
    top: 0.45rem;
    width: 0.65rem;
    height: 0.65rem;
    background: var(--od-lemon);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(242, 193, 78, .25);
}

.od-day__time { color: var(--od-accent); margin-bottom: 0.5rem; }
.od-day__time-sep { margin: 0 0.15em; }

.od-day__name {
    font-family: var(--od-font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--od-sea);
    margin-bottom: 0.35rem;
}

.od-day__desc { text-wrap: pretty; }

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

.od-venue__name { font-size: 1.9rem; color: var(--od-sea); line-height: 1.2; margin-bottom: 0.6rem; }

.od-venue__address { gap: 0.1rem; }

.od-venue__notes { padding-left: 1rem; border-left: 2px solid var(--od-glass); }

.od-venue__links { gap: 0.75rem 1.75rem; }
.od-venue__link { font-size: 0.9rem; text-decoration: none; border-bottom: 1px solid var(--od-shell); padding-bottom: 0.15rem; }

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

.od-stay { background: linear-gradient(180deg, transparent, rgba(234, 242, 238, .8) 10%, rgba(234, 242, 238, .8) 90%, transparent); }

.od-stay__intro { margin-bottom: 2rem; text-wrap: pretty; }

.od-stay__list { gap: 1rem; }

.od-stay__item {
    padding: 1.5rem;
    background: rgba(255, 250, 242, .85);
    border: 1px solid var(--od-rule);
    border-radius: var(--od-radius);
}

.od-stay__name { font-family: var(--od-font-display); font-size: 1.45rem; font-weight: 400; color: var(--od-sea); margin-bottom: 0.5rem; }

.od-stay__meta { color: var(--od-ink-muted); gap: 0.35rem 1rem; margin-bottom: 0.75rem; }
.od-stay__type { color: var(--od-accent); }

.od-stay__desc { margin-bottom: 0.9rem; text-wrap: pretty; }

.od-stay__contact { gap: 0.4rem 1.5rem; }
.od-stay__link { text-decoration: none; border-bottom: 1px solid var(--od-shell); padding-bottom: 0.1rem; }
.od-stay__contact:empty { display: none; }

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

/* Faded beach awning: broad coral and lemon bands over shell, softened so the
 * text stays the loudest thing on the band. */
.od-details {
    background-color: var(--od-shell);
    background-image:
        linear-gradient(180deg, rgba(255, 250, 242, .55), rgba(255, 250, 242, .8)),
        repeating-linear-gradient(90deg,
            rgba(226, 103, 74, .3) 0 34px,
            transparent 34px 68px,
            rgba(242, 193, 78, .3) 68px 102px,
            transparent 102px 136px);
}

.od-details__block { margin-bottom: 2.5rem; }

.od-details__heading {
    font-family: var(--od-font-body);
    font-size: var(--od-caps);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--od-accent);
    margin-bottom: 0.6rem;
}

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

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

.od-contact__intro { margin-bottom: 1.5rem; text-wrap: pretty; }

.od-contact__list { gap: 0.9rem; }

.od-contact__item { align-items: baseline; gap: 0.35rem 0.9rem; }

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

.od-contact__link { font-size: 1.05rem; text-decoration: none; border-bottom: 1px solid var(--od-shell); overflow-wrap: anywhere; }

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

.od-rsvp { background: var(--od-surface); }

.od-rsvp__intro { text-wrap: pretty; }

.od-rsvp__loading {
    padding: 2.5rem 1rem;
    font-family: var(--od-font-display);
    font-size: 1.25rem;
    color: var(--od-ink-muted);
    background: rgba(255, 250, 242, .7);
    border: 1px solid var(--od-rule);
    border-radius: var(--od-radius);
}

.od-rsvp__done, .od-rsvp__closed {
    padding: 2rem 1.5rem;
    font-family: var(--od-font-display);
    font-size: 1.4rem;
    line-height: 1.45;
    color: var(--od-sea);
    background: var(--od-bg);
    border: 1px solid var(--od-accent);
    border-radius: var(--od-radius);
    text-wrap: pretty;
}
.od-rsvp__closed { color: var(--od-ink-muted); border-color: var(--od-rule); }

.od-rsvp__form { gap: 1.75rem; }

.od-rsvp__group { gap: 0.9rem; }

.od-rsvp__legend {
    font-family: var(--od-font-body);
    font-size: var(--od-caps);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--od-accent);
}

.od-rsvp__guest {
    padding: 1.25rem;
    background: rgba(255, 250, 242, .85);
    border: 1px solid var(--od-rule);
    border-radius: var(--od-radius);
}

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

.od-gate__input, .od-rsvp__input {
    background: var(--od-bg);
    border: 1px solid var(--od-rule);
    border-radius: var(--od-radius);
    padding: 0.8rem 0.9rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.od-gate__input:focus, .od-rsvp__input:focus {
    outline: none;
    border-color: var(--od-accent);
    box-shadow: 0 0 0 3px rgba(226, 103, 74, .18);
}
.od-gate__input::placeholder, .od-rsvp__input::placeholder { color: var(--od-glass); }

.od-rsvp__answer { gap: 0.6rem 1.25rem; }
.od-rsvp__choice { gap: 0.5rem; font-size: 0.95rem; }

.od-gate__submit, .od-rsvp__submit {
    padding: 0.95rem 2rem;
    font-family: var(--od-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--od-accent-ink);
    background: var(--od-accent);
    border-radius: 999px;
    transition: background-color .15s ease;
}
.od-gate__submit:hover, .od-rsvp__submit:hover { background: var(--od-coral-deep); }

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

.od-gate__error, .od-rsvp__error { color: var(--od-coral-deep); }

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

.od-footer {
    position: relative;
    margin-top: var(--od-scallop);
    background: var(--od-sea);
    color: rgba(255, 250, 242, .7);
    border-top: 0;
}

/* Scalloped awning edge, drawn as half-discs of the footer colour sitting on
 * the page above it. */
.od-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    /* Exactly the footer's margin-top: the gap spans [-13px, 0), so the band
     * must too. Anything shorter leaks a hairline at the top; anything taller
     * leaves a strip below the last row of teeth showing the band's own
     * background-color as a light line. */
    top: calc(var(--od-scallop) * -1);
    height: var(--od-scallop);

    /* The gaps between the teeth must show the SECTION ABOVE, not the page.
     * The footer is pushed down by its own margin, and this band fills that
     * gap — so without a colour here the transparent parts revealed the body:
     * cream at full width, which happened to look like an awning biting into
     * the page, and --od-deep when boxed, which read as a hard seam. RSVP is
     * always the last section, so --od-surface is always what sits above. */
    background-color: var(--od-surface);

    /* `round` rather than `repeat-x`: it scales the tile so a whole number fits
     * the width, instead of clipping the last scallop mid-tooth at the right
     * edge. Full-bleed hid that — the viewport rarely landed on a tile boundary
     * either, but it was never a fixed edge you could stare at. The boxed card
     * gives it two.
     *
     * Longhand, and `round no-repeat`: one-value `round` would also round the
     * vertical axis, which is not what repeat-x meant. */
    background-image: radial-gradient(circle at 50% 100%, var(--od-sea) 69%, transparent 70%);
    background-position: 0 0;
    /* 100%, not --od-scallop: ties the tile to the band's actual height so the
     * two can never disagree again, whatever --od-scallop becomes. */
    background-size: 26px 100%;
    background-repeat: round no-repeat;
}

.od-footer__names { font-size: 2rem; color: var(--od-bg); margin-bottom: 0.75rem; }

.od-footer__meta { font-size: var(--od-caps); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 2rem; }

.od-footer__legal { gap: 1.5rem; }
.od-footer__link { color: rgba(255, 250, 242, .7); text-decoration: none; border-bottom: 1px solid rgba(255, 250, 242, .3); }
.od-footer__link:hover { color: var(--od-bg); }

/* ── Gate ────────────────────────────────────────────────────────────────── */
/* No /uploads/ image may load here and no library photo says "summer" without
 * argument, so the light is made in CSS: a low sun over a sea-glass horizon. */

.od-gate {
    position: relative;
    isolation: isolate;
    background-color: var(--od-bg);
}

.od-gate::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        repeating-conic-gradient(from 182deg at 50% 78%,
            rgba(242, 193, 78, .22) 0 3deg, transparent 3deg 9deg),
        radial-gradient(28rem 28rem at 50% 78%, rgba(242, 193, 78, .55), transparent 62%),
        linear-gradient(180deg, rgba(169, 200, 192, .3) 0%, rgba(250, 227, 213, .5) 55%, var(--od-bg) 100%);
}

.od-gate__inner {
    max-width: 26rem;
    padding: 2.75rem 1.75rem 2.25rem;
    background: rgba(255, 250, 242, .92);
    backdrop-filter: blur(6px);
    border: 1px solid var(--od-rule);
    border-radius: var(--od-radius);
    box-shadow: 0 26px 60px -35px rgba(36, 54, 58, .5);
}

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

.od-gate__names { color: var(--od-sea); font-size: clamp(2.4rem, 11vw, 3.4rem); margin-bottom: 1.25rem; }
.od-gate__amp { color: var(--od-accent); font-family: var(--od-font-body); font-size: 0.26em; margin: 0.4em 0; }

.od-gate__welcome {
    font-family: var(--od-font-display);
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--od-ink-muted);
    text-wrap: pretty;
    margin-bottom: 2.25rem;
}

.od-gate__form { gap: 0.6rem; text-align: center; }

.od-gate__label { font-size: var(--od-caps); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--od-accent); margin-bottom: 0.25rem; }

/* The code is 6-20 characters: free width, never segmented. */
.od-gate__input { text-align: center; letter-spacing: 0.28em; font-size: 1.05rem; }

.od-gate__submit { margin-top: 0.4rem; }

.od-gate__note { margin-top: 2.25rem; font-size: 0.82rem; line-height: 1.55; color: var(--od-ink-muted); text-wrap: pretty; }

/* ── Variant: boxed ──────────────────────────────────────────────────────── */
/* The default is full-bleed: the swell tile, the awning band and the sea-green
 * footer run edge to edge, which is what gives the design its rhythm. Boxed
 * puts the whole site on a card instead, with the sea showing around it.
 *
 * Scoped to :not(.od--gate) throughout — the gate is already a centred card on
 * its own full-height wash, and boxing it would put a card inside a card.
 *
 * NB --od-box, not --od-shell: this theme already uses --od-shell for the sand
 * colour behind the awning band. */

:root {
    --od-box: 62rem;
    --od-box-top: 50px;   /* sea showing above the card at rest */
    --od-box-side: 2rem;  /* minimum sea either side, so the card never touches */
}

.od-variant--boxed:not(.od--gate) {
    /* Deeper than --od-sea on purpose. The footer IS --od-sea, so a surround of
     * the same colour dissolved the bottom of the card into the page and left
     * the drop shadow reading as a smudge under nothing. */
    background-color: var(--od-deep);
    /* The page-level sun and sea-glass pools move onto the card below, or they
     * would light the surround instead of the content. */
    background-image: none;
}

.od-variant--boxed:not(.od--gate) .od-nav,
.od-variant--boxed:not(.od--gate) .od-main,
.od-variant--boxed:not(.od--gate) .od-footer {
    max-width: var(--od-box);
    margin-inline: auto;
}

.od-variant--boxed:not(.od--gate) .od-main {
    background-color: var(--od-bg);
    background-image:
        radial-gradient(75ch 50ch at 88% -10%, rgba(242, 193, 78, .3), transparent 68%),
        radial-gradient(60ch 45ch at -5% 12%, rgba(169, 200, 192, .28), transparent 70%);
}

@media (min-width: 63rem) {

    /* Guarantees sea on the left and right too, so the frame is even on all
     * four sides rather than only above and below. min() keeps the card at its
     * natural width until the viewport gets close, then yields the gutter. */
    .od-variant--boxed:not(.od--gate) .od-nav,
    .od-variant--boxed:not(.od--gate) .od-main,
    .od-variant--boxed:not(.od--gate) .od-footer {
        max-width: min(var(--od-box), 100% - var(--od-box-side) * 2);
    }

    /* Lifts the card off the sea, in the same language as the gate card and the
     * hero photo discs.
     *
     * Split into side, top and bottom shadows on purpose. The card is three
     * separate elements stacked, not one wrapper, so a single all-round shadow
     * on each would draw a seam at every join — and the nav's would land ON the
     * content, since sticky z-index paints it above. The side pair has zero
     * vertical reach (offset + blur/2 < spread), so the joins stay invisible;
     * only the outer edges cast. */
    .od-variant--boxed:not(.od--gate) .od-nav,
    .od-variant--boxed:not(.od--gate) .od-main,
    .od-variant--boxed:not(.od--gate) .od-footer {
        box-shadow:
            -14px 0 28px -18px rgba(36, 54, 58, .55),
             14px 0 28px -18px rgba(36, 54, 58, .55);
    }

    .od-variant--boxed:not(.od--gate) .od-nav {
        border-radius: var(--od-radius) var(--od-radius) 0 0;
        /* Shows at rest only: the nav is sticky at top:0, so it closes the gap
         * once scrolled past. Holding it 50px down while pinned would leave a
         * strip the card's own content scrolls through, which reads as a fault. */
        margin-top: var(--od-box-top);
        box-shadow:
            -14px 0 28px -18px rgba(36, 54, 58, .55),
             14px 0 28px -18px rgba(36, 54, 58, .55),
              0 -12px 26px -16px rgba(36, 54, 58, .5);
    }

    /* The scalloped edge is drawn on the footer's own ::before, so it follows
     * the shell width automatically — no repositioning needed. */
    .od-variant--boxed:not(.od--gate) .od-footer {
        border-radius: 0 0 var(--od-radius) var(--od-radius);
        margin-bottom: 3rem;
        /* Deeper and tighter than the sides: the footer is a dark block on a
         * dark surround, so a wide soft shadow just muddies the boundary
         * instead of describing it. */
        box-shadow:
            -14px 0 28px -18px rgba(12, 28, 32, .6),
             14px 0 28px -18px rgba(12, 28, 32, .6),
              0 10px 22px -14px rgba(12, 28, 32, .75);
    }
}

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

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