/* After the wedding: the slim bar (every page) and the photos-first home page.
   Uses the site's own colours and fonts (see styles.css). */

/* One gutter and one content width (the site's --content-width) for the bar and every part of the home page, so their edges line up. */
:root { --gut: 1rem; }

/* ===== Slim bar ===== */
.sbar {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.55rem max(var(--gut), calc((100% - var(--content-width)) / 2 + var(--gut)));
    background: rgba(245, 240, 230, 0.96);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(43, 39, 36, 0.14);
}
.sbar-logo {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    color: var(--color-text-primary);
}
.sbar-logo i { font-style: normal; color: var(--color-vermillion); margin: 0 0.12em; }
.sbar-links { display: flex; align-items: center; gap: 0.1rem; margin-right: auto; margin-left: 0.8rem; }
.sbar-links > a {
    padding: 0.55rem 0.55rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-text-primary);
    border-radius: 2px;
}
.sbar-links > a.sbar-pri { background: var(--color-vermillion); color: #fff; }
.sbar-links > a.sbar-pri:hover { background: #cf4a29; color: #fff; }
.sbar-links > a.active:not(.sbar-pri) { box-shadow: inset 0 -2px 0 var(--color-text-primary); }
.sbar-langs { display: flex; gap: 0; }
.sbar .lang-btn {
    display: inline-flex;
    padding: 0.4rem 0.4rem;
    min-width: 34px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
    opacity: 0.55;
    transform: none;
    background: none;
}
.sbar .lang-btn:hover { background: none; transform: none; opacity: 1; }
.sbar .lang-btn.active { opacity: 1; background: none; color: var(--color-text-primary); box-shadow: inset 0 -2px 0 var(--color-vermillion); }
@media (max-width: 420px) {
    .sbar { padding-inline: 0.6rem; }
    .sbar-links { margin-left: 0.3rem; }
    .sbar-links > a { padding-inline: 0.4rem; letter-spacing: 0.06em; font-size: 0.68rem; }
    .sbar .lang-btn { min-width: 28px; padding-inline: 0.25rem; }
}

/* ===== Home ===== */
.home-main { max-width: var(--content-width); margin: 0 auto; padding: 0 0 2rem; }
.hb { position: relative; overflow: hidden; text-align: center; padding: 1rem 0 1.6rem; container-type: inline-size; }
.hb-art { position: relative; height: 130px; display: grid; place-items: center; }
@media (min-width: 832px) { .hb-art { margin-inline: var(--gut); } } /* the bands line up with the cards and the album */
.hb-bands { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); }
.hb-bands i { display: block; height: 5.5px; background: var(--c); transform: scaleX(0); animation: hb-grow 1.4s cubic-bezier(0.2, 0.75, 0.2, 1) forwards; animation-delay: calc(0.5s + var(--n) * 0.08s); }
.hb-bands i:nth-child(odd) { transform-origin: left; }
.hb-bands i:nth-child(even) { transform-origin: right; }
@keyframes hb-grow { to { transform: scaleX(1); } }
.hb-bloom { position: relative; z-index: 2; width: 150px; height: 150px; display: block; }
.hb-bloom .pt { transform: scale(0); transform-box: view-box; transform-origin: 0 0; animation: hb-bloom 0.95s cubic-bezier(0.2, 0.75, 0.2, 1) forwards; animation-delay: var(--d); }
@keyframes hb-bloom { to { transform: scale(1); } }
.hb-bloom .ring { transform-box: view-box; transform-origin: 100px 100px; animation: hb-spin 120s linear infinite; }
.hb-bloom .ring.rev { animation-direction: reverse; animation-duration: 90s; }
@keyframes hb-spin { to { transform: rotate(360deg); } }
.hb-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.9rem, 8.5cqw, 2.8rem); line-height: 1.1; margin-top: 0.7rem; }
.hb-date { margin-top: 0.5rem; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-text-secondary); }
.hb-since { margin-top: 1rem; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-text-light); }
.hb-count { display: flex; justify-content: center; gap: 0.9rem; margin-top: 0.3rem; }
.hb-count div { min-width: 3rem; }
.hb-count b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 1.55rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hb-count small { display: block; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-secondary); }
.hb-count b.tick { animation: hb-tick 0.45s cubic-bezier(0.2, 0.75, 0.2, 1); }
@keyframes hb-tick { from { opacity: 0.25; transform: translateY(-18%); } }
.hb-rise { opacity: 0; transform: translateY(14px); animation: hb-rise 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) forwards; animation-delay: var(--d, 1.5s); }
@keyframes hb-rise { to { opacity: 1; transform: none; } }

/* Two doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0.2rem var(--gut) 1.4rem; }
.door { position: relative; display: block; min-height: 150px; padding: 1rem; border: 1px solid var(--color-text-primary); overflow: hidden; transition: transform 0.35s cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 0.35s; color: var(--color-text-primary); }
.door:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.6); color: var(--color-text-primary); }
.door-eyebrow { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.door h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; line-height: 1.12; margin-top: 0.2rem; }
.door-go { position: absolute; right: 0.9rem; bottom: 0.85rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-text-primary); color: var(--color-cream); transition: transform 0.35s cubic-bezier(0.2, 0.75, 0.2, 1); }
.door:hover .door-go { transform: translateX(3px); }
.door-go svg, .hm-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.door-look { background: #fbf8f2; }
.door-add { background: var(--color-vermillion); border-color: var(--color-vermillion); color: #fff; }
.door-add:hover { color: #fff; }
.door-add .door-go { background: #fff; color: var(--color-vermillion); }
@media (min-width: 700px) {
    .doors { gap: 14px; }
    .door { min-height: 190px; padding: 1.4rem; }
    .door h2 { font-size: 1.8rem; }
}

/* Album */
.alb { scroll-margin-top: 52px; }
.alb-sort { position: sticky; top: 53px; z-index: 150; background: var(--color-cream); }
.alb-sort::after { content: ""; position: absolute; left: var(--gut); right: var(--gut); bottom: 0; border-bottom: 1px solid rgba(43, 39, 36, 0.14); }
.alb-chips { display: flex; align-items: center; gap: 0.5rem; overflow-x: auto; padding: 0.65rem var(--gut) 0.75rem; scrollbar-width: none; }
.alb-chips::-webkit-scrollbar { display: none; }
.alb-chips button { flex: none; min-height: 44px; padding: 0.4rem 0.95rem; border: 1px solid rgba(43, 39, 36, 0.2); border-radius: 99px; font-size: 0.88rem; background: #fbf8f2; color: var(--color-text-primary); transition: 0.2s; }
.alb-chips button[aria-pressed="true"] { background: var(--color-text-primary); color: var(--color-cream); border-color: var(--color-text-primary); }
.alb-chips small { opacity: 0.65; margin-left: 0.25rem; }
.alb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.2rem var(--gut) 0.7rem; }
.alb-head h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; }
.alb-head span, .alb-head button { font-size: 0.84rem; color: var(--color-text-secondary); }
.alb-head button { text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.alb-grid { padding: 0 var(--gut); }
.alb-status { padding: 1.2rem var(--gut); text-align: center; color: var(--color-text-secondary); }
.home-official { margin: 1.6rem var(--gut) 0; padding: 1.1rem; background: #fbf8f2; border: 1px solid rgba(43, 39, 36, 0.2); color: var(--color-text-primary); text-align: left; }
.home-official .door-eyebrow { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.home-official h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.3rem; line-height: 1.15; margin: 0.2rem 0 0.35rem; }
.home-official p { font-size: 0.88rem; color: var(--color-text-secondary); }

@media (prefers-reduced-motion: reduce) {
    .hb-bloom .pt, .hb-bands i, .hb-rise { opacity: 1; transform: none; animation: none; }
    .hb-bloom .ring, .alb-scan .shot::after { animation: none; }
}

/* The old nav styles (underline, gradient line) must not leak into the slim bar */
.sbar .nav-link { border-bottom: 0; }
.sbar .nav-link::after { display: none; }
.sbar .nav-link:hover { color: var(--color-text-primary); }
.sbar .sbar-links > a.sbar-pri:hover { color: #fff; }
/* the floating back-to-top button: plain ink instead of the old purple-pink gradient */
.back-to-top-floating { background: var(--color-text-primary); }

.alb-status:empty { display: none; }

/* the footer line lines up with the content, like everything above it */
.site-footer .footer-copyright { max-width: calc(var(--content-width) - 2 * var(--gut)); margin-inline: auto; }

/* ===== Add your photos: a sheet on top of the home page ===== */
.add-sheet { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: none; max-height: 92vh; background: var(--color-cream); color: var(--color-text-primary); border-top: 1px solid var(--color-text-primary); overflow: hidden; }
.add-sheet[open] { display: flex; flex-direction: column; animation: add-up 0.35s cubic-bezier(0.2, 0.75, 0.2, 1); }
.add-sheet::backdrop { background: rgba(31, 28, 26, 0.55); }
@keyframes add-up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 700px) {
    .add-sheet { margin: auto; width: 520px; max-height: 86vh; border: 1px solid var(--color-text-primary); }
}
.add-head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem var(--gut) 0.4rem; }
.add-head h2 { font-family: var(--font-serif); font-weight: 500; font-size: 1.45rem; }
.add-x { width: 44px; height: 44px; font-size: 1.1rem; color: var(--color-text-primary); }
#add-body { padding: 0.4rem var(--gut) calc(var(--gut) + env(safe-area-inset-bottom)); overflow-y: auto; }
.add-intro { margin-bottom: 0.9rem; color: var(--color-text-secondary); font-size: 0.95rem; }
.add-gate label { display: block; margin: 0.7rem 0 0.25rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; }
.add-gate input { width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; font: inherit; font-size: 1rem; background: #fbf8f2; border: 1px solid rgba(43, 39, 36, 0.3); border-radius: 0; color: inherit; }
.add-error { min-height: 1.2rem; margin: 0.6rem 0 0; color: #b3341a; font-size: 0.88rem; }
.add-btn { display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 52px; padding: 0.8rem 1.4rem; width: 100%; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; border: 1.5px solid var(--color-vermillion); background: var(--color-vermillion); color: #fff; margin-top: 0.8rem; }
.add-btn:disabled { opacity: 0.45; }
.add-btn.line { background: none; border-color: var(--color-text-primary); color: var(--color-text-primary); }
.add-choose { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; width: 100%; min-height: 190px; margin-top: 0.4rem; border: 1.5px dashed var(--color-text-primary); background: #fbf8f2; font-family: var(--font-serif); font-size: 1.3rem; color: var(--color-text-primary); }
.add-choose-plus { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-vermillion); color: #fff; }
.add-choose-plus .hm-ico { width: 26px; height: 26px; }
.add-hint { margin-top: 0.7rem; text-align: center; font-size: 0.84rem; color: var(--color-text-light); }
.add-as { margin-top: 0.3rem; text-align: center; font-size: 0.86rem; color: var(--color-text-secondary); }
.add-link { color: var(--color-text-primary); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 0.3rem; font-size: inherit; }
.add-count { margin: 0 0 0.6rem; font-size: 0.86rem; color: var(--color-text-secondary); }
.add-grid { max-height: 46vh; overflow-y: auto; }
.add-bar { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.add-sending { padding-top: 1rem; text-align: center; }
.add-progress, .add-done { font-family: var(--font-serif); font-size: 1.25rem; }
.add-meter { height: 4px; margin: 1rem 0 0.2rem; background: rgba(43, 39, 36, 0.14); }
.add-meter span { display: block; height: 100%; background: var(--color-vermillion); transition: width 0.3s; }
.alb-chips .alb-find-chip { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0.4rem 0.95rem; border: 1px solid var(--color-vermillion); border-radius: 99px; font-size: 0.88rem; color: var(--color-vermillion); background: #fbf8f2; }
.alb-chips .alb-find-chip:hover { background: var(--color-vermillion); color: #fff; }
.find-body { padding: 0 var(--gut) calc(var(--gut) + env(safe-area-inset-bottom)); overflow-y: auto; }
.find-body .photos-findme { display: block; margin: 0; padding: 0; border: 0; background: none; }
.find-body .photos-findme[hidden] { display: none; }
.find-body .photos-findme-actions { display: grid; gap: 0; }
.find-body .photos-findme-actions .submit-btn, .find-body .photos-findme-actions .wiz-secondary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 0.8rem; padding: 0.8rem 1.4rem; border-radius: 0; font-family: var(--font-sans); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; box-shadow: none; }
.find-body .photos-findme-actions .submit-btn { background: var(--color-vermillion); border: 1.5px solid var(--color-vermillion); color: #fff; }
.find-body .photos-findme-actions .wiz-secondary { background: none; border: 1.5px solid var(--color-text-primary); color: var(--color-text-primary); }

/* a moment for one photo that has no date (the Add sheet) */
.add-help { margin: 0 0 0.6rem; font-size: 0.86rem; color: var(--color-text-secondary); }
.add-help[hidden] { display: none; }
.wiz-tile .add-where, .wiz-tile .wiz-where { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; width: 100%; max-width: none; min-height: 30px; padding: 0.2rem 0.3rem; font: inherit; font-size: 0.72rem; color: var(--color-text-primary); background: rgba(251, 248, 242, 0.96); border: 0; border-top: 1px solid rgba(43, 39, 36, 0.25); border-radius: 0; }

/* ===== Links become quiet buttons (same square, uppercase style as the other buttons) ===== */
.add-link, .home-main .photos-link, .add-sheet .photos-link, .find-sheet .photos-link, .alb-head button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.4rem 1rem;
    font-family: var(--font-sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--color-text-primary); text-decoration: none; background: none; border: 1.5px solid var(--color-text-primary); border-radius: 0;
    transition: background 0.2s, color 0.2s;
}
.add-link:hover, .home-main .photos-link:hover, .add-sheet .photos-link:hover, .find-sheet .photos-link:hover, .alb-head button:hover { background: var(--color-text-primary); color: var(--color-cream); }
.add-as { display: flex; align-items: center; justify-content: center; gap: 0.7rem; flex-wrap: wrap; }
.add-link { min-height: 36px; padding: 0.2rem 0.8rem; }
