/* ============================================================
   RYALED UP | IVORY FLORAL WEDDING THEME
   Cream paper, sage leaves, blush and burgundy watercolor flowers.
   Upload Ryaled-Up-wedding-floral-background-landscape.webp and
   Ryaled-Up-wedding-floral-background-portrait.webp to the content folder.
   The original logo layout, animations and responsive rules remain.
============================================================ */
html { background-color: #fbf7ef; }
html body { background-color: transparent; color: #513c35; }

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: #fbf7ef;
    background-image: url("content/Ryaled-Up-wedding-floral-background-landscape.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* A phone or tablet held upright gets the tall version of the same
   artwork. Everything else - a computer monitor, or a phone or tablet
   on its side - keeps the wide one above. */
@media (orientation: portrait) {
    body::before { background-image: url("content/Ryaled-Up-wedding-floral-background-portrait.webp"); }
}
body::after { content: none; }

/* Existing pages were designed for a dark background. Make their
   light-colored text readable against the new ivory background. */
@media screen {
    html body .text-white,
    html body .text-gray-100,
    html body .text-gray-200,
    html body .text-slate-100,
    html body .text-slate-200,
    html body .text-pink-100,
    html body .text-pink-200,
    html body .text-rose-100,
    html body .text-rose-200 { color: #513c35; }
}

@media print {
    html, html body { background-color: #fff; }
    body::before { display: none; }
}


/* ============================================================
   THE TITLE CARD
   ------------------------------------------------------------
   One picture, Dog.png, on screen the instant the page opens,
   with a glint of light round its edge three seconds later. The
   timing is in Ryaled-Up-title-slides.js; how the flash
   looks is further down this file.

   It was two pictures until 2026-08-30, the second fading up over
   the first, which is why the script is still named for a slide
   show. Everything that positioned that overlay has gone.
============================================================ */
#cr-title-slides {
    position: relative;

    /* Half the width it used to fill, and centred in what is left.
       The pictures inside are w-full, so they follow this box rather
       than the section around it - which means one number here sizes
       the title card at every screen width instead of a different
       rule per breakpoint. */
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

/* The title section fills the first screen, top to bottom, and the
   picture sits in the middle of it - photos or no photos, the dog is
   what the page opens on and the gallery starts below. The negative
   margin cancels the padding of the two wrappers above it (py-2 and
   py-8, then md:py-1 and md:py-12 from 768px), so it is the screen and
   not the wrapper that the picture is centred in. */
#cr-title-section {
    min-height: 100vh;
    min-height: 100svh;
    margin-top: -2.5rem;
    display: flex;
    flex-direction: column;     /* the pictures, and the Add Photos button under them */
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) {
    #cr-title-section { margin-top: -3.25rem; }
}

/* Half that again on the gallery, where the pictures are the point and
   the title card is only a header. Set with a class on the wrapper
   rather than by page, so the two sizes live side by side here and
   neither has to know about the other. */
#cr-title-slides.cr-title-small {
    /* Half as large again as the steph50.com size (25% to 37.5%) where
       the screen is tall enough, and never smaller than it. The names,
       the pictures and the Add Photos button have to fit the screen
       together: the names add 0.096 of the width on top, and the button
       with its gap and a little room top and bottom takes 6.25rem, so
       the width may not pass (screen height - 6.25rem) / 1.096. The
       same three lines are used at every size below, with that size's
       own two numbers. The first line is for browsers without max(). */
    width: 25%;
    width: max(25%, min(37.5%, calc((100vh - 6.25rem) / 1.096)));
    width: max(25%, min(37.5%, calc((100svh - 6.25rem) / 1.096)));
}

/* The three pictures take turns. The first stays where it is and sets
   the size; the other two sit exactly over it. Only the one carrying
   cr-title-on is seen, and the change from one to the next is a
   cross-fade. The timing is in Ryaled-Up-title-slides.js. */
#cr-title-slides img {
    opacity: 0;
    transition: opacity .9s ease;
}
#cr-title-slides img + img {
    position: absolute;
    top: 0;
    left: 0;
}
#cr-title-slides img.cr-title-on { opacity: 1; }

/* The pictures' own box, which the two laid over the first are placed
   against. */
#cr-title-slides .cr-title-pics { position: relative; }

/* "Alana and Sonny", curved over the top of the ring. The curve itself is
   drawn on the page; this is only how the letters look. Sizes are in the
   pictures' own units, 1254 across, so the names grow and shrink with the
   pictures at every screen width. */
#cr-title-slides .cr-title-name {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1254 / 120;
    overflow: visible;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 110px;
    letter-spacing: 6px;
    fill: #9a7424;
}

/* The gold ring is not drawn the same size, or in quite the same place,
   inside the three squares. Measured on the files themselves, each ring
   is a touch wider than it is tall:
       Walk.png  1194.0 wide x 1179.5 high
       Dog.png   1224.4 wide x 1214.1 high
       Kiss.png  1232.1 wide x 1218.7 high
   and the centres wander by a few pixels. Dog.png is left as it is and
   the other two are stretched and nudged until their rings sit exactly
   on its ring. The slide show (.layer) uses the same three pictures and
   the same two corrections. Measure again and change these if either
   picture is made again. */
#cr-title-slides img.cr-title-walk,
.layer img.cr-title-walk { transform: translate(-0.693%, -0.209%) scale(1.0255, 1.0293); }
#cr-title-slides img.cr-title-kiss,
.layer img.cr-title-kiss { transform: translate(-0.456%, -0.226%) scale(0.9938, 0.9962); }

/* A PHONE, WHERE ALMOST EVERYONE WILL SEE THIS
   ------------------------------------------------------------
   A percentage of a laptop is a comfortable size; the same
   percentage of a phone held in one hand is a stamp. So a phone
   gets its own two sizes, and which one depends on how it is being
   held.

   Both selectors are answered in each case, so it does not matter
   which size the page asked for: on a phone there is one sensible
   answer and this is it. */

/* HELD UPRIGHT. Width is the scarce thing and height is not, so the
   card takes nearly all of it.

   101%, not 92%, because ten per cent more than 92 is more than the
   box it sits in. The section around it carries a rem of padding each
   side, and the half a per cent of negative margin lets the card use a
   sliver of that rather than pushing the page sideways. The result is
   the ten per cent, and nothing overflows. */
@media (max-width: 767px) and (orientation: portrait) {
    #cr-title-slides,
    #cr-title-slides.cr-title-small {
        width: 101%;
        margin-left: -0.5%;
        margin-right: -0.5%;
    }
}

/* A TABLET, HELD UPRIGHT. Wider than a phone, so the card does not
   need to take nearly the whole screen - but the laptop size is lost
   on it. Grown by steps from the laptop size, and now nearly the whole
   width: 25% to 37.5% to 56.25% to 61.9% to 92.85%.

   min-width keeps phones out of it, and portrait keeps every laptop
   and desktop out, since those are landscape. A phone on its side is
   caught by the rule below, which is more specific about height. */
@media (min-width: 768px) and (orientation: portrait) {
    #cr-title-slides.cr-title-small {
        width: 92.85%;
        width: max(92.85%, min(100%, calc((100vh - 6.25rem) / 1.096)));
        width: max(92.85%, min(100%, calc((100svh - 6.25rem) / 1.096)));
    }
}

/* TURNED ON ITS SIDE. Now the opposite is true: plenty of width and
   almost no height. A card at the portrait size would be taller than
   the screen and push the photographs off the bottom, so it is half
   that.

   Matched on HEIGHT rather than width. A phone on its side is as
   wide as a small tablet - an iPhone Pro Max is over 900px - so a
   max-width test either misses it or catches tablets with it. Short
   is what actually distinguishes it. */
@media (orientation: landscape) and (max-height: 500px) {
    #cr-title-slides,
    #cr-title-slides.cr-title-small {
        width: 36.8%;
        width: max(36.8%, min(55.2%, calc((100vh - 6.25rem) / 1.096)));
        width: max(36.8%, min(55.2%, calc((100svh - 6.25rem) / 1.096)));
    }
}

/* A TABLET ON ITS SIDE. Half again on the laptop size and then a fifth
   more: 25% to 37.5% to 45%. Smaller than the same tablet held upright,
   which is right - on its side there is less height to spare.

   The hard part is telling a tablet on its side from a laptop, since
   both are wide, tall and landscape. pointer: coarse is what separates
   them - a finger rather than a mouse. min-height keeps the phones out,
   because they are caught by the rule above and want the smaller size. */
@media (orientation: landscape) and (min-height: 501px) and (pointer: coarse) {
    #cr-title-slides.cr-title-small {
        width: 45%;
        width: max(45%, min(67.5%, calc((100vh - 6.25rem) / 1.096)));
        width: max(45%, min(67.5%, calc((100svh - 6.25rem) / 1.096)));
    }
}

/* ============================================================
   THE CARD BEHIND THE CONTENT - HIDDEN, NOT DELETED
   ------------------------------------------------------------
   Every screen used to sit on a navy card with a pale outline and
   a drop shadow. Against the background that reads as a
   window cut out of the old site, so the fill, the outline and the
   shadow are switched off and the content sits straight on the
   background.

   Nothing is removed from any page. Each page still declares its
   own card exactly as it did; this file is linked LAST in every
   head, so these three lines come after and win. Delete this whole
   block and every card comes back, everywhere, untouched.

   Two selectors because the site builds its card two ways:
     .panel            the sign-in and the admin screens
     .bg-[#2a0715]     the participant screens, a Tailwind class
                       (escaped here - the brackets and the hash
                       are not ordinary characters in a selector)

   Screen only. Reports are printed on a white page that sets its
   own panel back to white, and that must not be overridden.
============================================================ */
@media screen {
    .panel,
    .bg-\[\#2a0715\],

    /* The photo upload page wraps everything in .wrap and paints it -
       the same card by another name. */
    .wrap {
        background: transparent;
        border: 0;
        box-shadow: none;
    }
}


/* ============================================================
   THE HEADINGS
   ------------------------------------------------------------
   The participant screens colour their headings with Tailwind's
   text-yellow-100 and text-yellow-200 - a pale lemon that belonged
   to an older navy and gold. Against the site colours it
   reads as washed out.

   Retuned to the gold of the title card's ring and lettering, which
   is warmer and sits properly beside the pink.

   Done here rather than by changing the class on thirty-odd tags:
   this file is linked last in every head, so a plain class selector
   is enough to win, and one line changes every heading on the site.
   Delete this block and the lemon comes back.
============================================================ */
.text-yellow-100 { color: #79532e; }
.text-yellow-200 { color: #88623b; }


/* ============================================================
   THE TAILWIND BLUES
   ------------------------------------------------------------
   The pages still name a dozen of Tailwind's blue and sky shades
   as classes rather than as colours - text-blue-100 on paragraphs,
   text-blue-900 on the gold buttons, border-sky-400 on the rules
   between sections. They are the last of an older navy
   and they cannot be reached by changing a hex value, because there
   is no hex value in the page to change.

   Each is answered here with its place in the new scheme: the pale
   blues become the same soft pink as everything else secondary, the
   dark blues become the wine that replaced the navy, and the edges
   become a faint pink line.

   This file is linked last in every head, so a plain class selector
   is enough to win. Delete this block and the blues come back.
============================================================ */
.text-blue-100,
.text-blue-200,
.text-indigo-100  { color: #694b49; }

.text-blue-900,
.text-blue-950    { color: #2a0715; }

.bg-blue-800      { background-color: #5a1038; }
.bg-blue-900,
.bg-sky-900       { background-color: #2a0715; }

.border-sky-200   { border-color: #c7ad9c; }
.border-sky-400,
.border-indigo-300,
.border-indigo-400 { border-color: rgba(242, 168, 205, .45); }


/* ============================================================
   THE SPARKLE, ONCE LOGO2 HAS ARRIVED
   ------------------------------------------------------------
   A single flare of gold and pink light around the edge of the
   second title card, a moment after it has finished fading up.

   drop-shadow and not box-shadow: box-shadow would draw a
   rectangle round the image, and the picture is a circle on a
   transparent square. drop-shadow follows what is actually
   painted, so the light hugs the ring.

   Two shadows stacked - a tight warm one and a wide pink one -
   so it reads as a glint rather than a halo.
============================================================ */
@keyframes cr-title-sparkle {
    0% {
        filter: drop-shadow(0 0 0    rgba(255, 225, 170, 0))
                drop-shadow(0 0 0    rgba(255, 120, 190, 0));
    }
    30% {
        filter: drop-shadow(0 0 14px rgba(255, 235, 190, 0.95))
                drop-shadow(0 0 38px rgba(255, 110, 185, 0.80));
    }
    55% {
        filter: drop-shadow(0 0 8px  rgba(255, 235, 190, 0.55))
                drop-shadow(0 0 22px rgba(255, 110, 185, 0.45));
    }
    100% {
        filter: drop-shadow(0 0 0    rgba(255, 225, 170, 0))
                drop-shadow(0 0 0    rgba(255, 120, 190, 0));
    }
}

/* Not tied to the title card any more: the slide show puts the logo up
   before the QR code and wants the same glint on it, so anything given
   this class gets the flash. */
.cr-sparkle {
    animation: cr-title-sparkle 1100ms ease-out 1;
}

/* Somebody who has asked for less movement gets the picture and
   not the flash. */
@media (prefers-reduced-motion: reduce) {
    .cr-sparkle { animation: none; }
}

/* Wedding gallery empty-message text */
body {
    color: #6B2737;
}

.text-pink-100,
.text-pink-200,
.text-pink-300 {
    color: #6B2737 !important;
}

/* Wedding gallery - No photos message */
#cr-empty {
    color: #6B2737 !important;
    opacity: 1 !important;
}