:root {
    color-scheme: light;
    font-family: var(--ds-font-family), system-ui, sans-serif;
    background: #f7f4eb;
    color: #20362e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #f7f4eb;
}

.site-header {
    background: #173d30;
    color: #fffaf0;
    border-bottom: 4px solid #bd433c;
}

.header-inner {
    max-width: 76rem;
    min-height: 5.5rem;
    padding: 1rem 2rem;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #e8c996;
    border-radius: 50%;
    color: #f4d8a6;
    font-size: 1.6rem;
}

.brand-title, .brand-subtitle { display: block; }
.brand-title { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.brand-subtitle { margin-top: .2rem; color: #e6d9c0; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.header-link { color: #fffaf0; font-size: .95rem; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.header-link span { margin-left: .2rem; }

.page-shell {
    width: min(100% - 3rem, 72rem);
    margin: 0 auto;
    padding: 4rem 0 5rem;
    flex: 1;
}

.page-shell.narrow { max-width: 48rem; }
.hero.ds-card {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    min-height: 32rem;
    padding: 0;
    background: #fffdf7;
    border: 1px solid #ded8c9;
    border-radius: 1.2rem;
    box-shadow: 0 1rem 3rem #173d3012;
}

.hero-copy { align-self: center; padding: clamp(2rem, 5vw, 4.5rem); }
.eyebrow {
    margin: 0 0 1rem;
    color: #a42e2e;
    font-size: .77rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.eyebrow span { font-size: 1rem; margin-right: .25rem; }
.hero-title.ds-heading, .page-title.ds-heading {
    color: #173d30;
    font-family: Georgia, serif;
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.05;
}
.hero-title.ds-heading { font-size: clamp(2.6rem, 5vw, 4.5rem); }
.hero-lead { max-width: 29rem; margin: 1.5rem 0 2rem; color: #41564b; font-size: 1.1rem; line-height: 1.65; }
.primary-action.ds-button { min-height: 3.5rem; padding-inline: 1.5rem; }
.primary-action span { margin-left: .75rem; }
.hero-note { margin: 1rem 0 0; color: #58675e; font-size: .85rem; }

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    min-height: 24rem;
    margin: 0;
    background: #e3eadc;
    background-image: radial-gradient(circle at 20% 20%, #f5f3df 0 2px, transparent 3px), radial-gradient(circle at 80% 75%, #f5f3df 0 3px, transparent 4px);
    background-size: 5rem 5rem, 7rem 7rem;
}
.ticket {
    width: min(65%, 17rem);
    min-width: 12rem;
    padding: 1.2rem 1.5rem;
    color: #fff7e6;
    background: #a83232;
    border: 1px solid #8d2929;
    border-radius: .75rem;
    box-shadow: .6rem .8rem 0 #173d3022, 0 1.5rem 2.5rem #173d3026;
    transform: rotate(7deg);
    text-align: center;
}
.ticket-top, .ticket-bottom { font-size: .65rem; font-weight: 700; letter-spacing: .12em; }
.ticket-top { display: flex; justify-content: space-between; gap: .3rem; padding-bottom: 1rem; border-bottom: 1px dashed #f3d9bd; }
.ticket-icon { margin: 1rem 0 .4rem; color: #f3d09d; font-size: 3.5rem; line-height: 1; }
.ticket-title { font: 700 2rem/1.1 Georgia, serif; }
.ticket-bottom { display: flex; justify-content: space-between; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed #f3d9bd; }
.art-sparkle { position: absolute; color: #a83232; }
.art-sparkle-one { top: 17%; left: 18%; font-size: 2.5rem; }
.art-sparkle-two { right: 12%; bottom: 17%; color: #315d49; font-size: 3rem; }
.home-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.5rem .3rem; }
.home-bottom p { margin: 0; color: #52665a; font-size: .95rem; }
.home-bottom p span { color: #a83232; margin-right: .4rem; }

.back-link { display: inline-block; margin-bottom: 2.5rem; }
.page-intro { margin-bottom: 2rem; }
.page-title.ds-heading { font-size: clamp(2.3rem, 5vw, 3.5rem); }
.page-intro > p:last-child:not(.eyebrow) { max-width: 38rem; margin: 1rem 0 0; color: #41564b; font-size: 1.05rem; line-height: 1.6; }
.content-card.ds-card { padding: clamp(1.25rem, 4vw, 2rem); background: #fffdf7; border-color: #ded8c9; border-radius: 1rem; box-shadow: 0 .5rem 2rem #173d300a; }
.content-card > :first-child { margin-top: 0; }
.content-card > :last-child { margin-bottom: 0; }
.step-label { margin: 0 0 1rem; font-weight: 700; }
.qr-frame { display: inline-block; padding: 1rem; background: #fff; border: 1px solid #ded8c9; border-radius: .75rem; }
.qr-frame:has(#qr[hidden]) { display: none; }
#presentation:has(#qr[hidden]) .step-label,
#presentation:has(#open-wallet[hidden]) .wallet-option { display: none; }
#qr { display: block; width: min(100%, 20rem); height: auto; }
.wallet-option { margin: 1.25rem 0; }
.waiting-status { display: flex; align-items: center; gap: .7rem; color: #40594c; font-weight: 600; }
.waiting-status::before { content: ""; width: .65rem; height: .65rem; flex: none; border-radius: 50%; background: #458263; }
.credential + .credential { margin-top: 1rem; }
.credential .ds-alert { margin: 1rem 0; }
.credential-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; margin: 1.5rem 0; }
.credential-details dt { color: #52665a; font-size: .85rem; font-weight: 700; }
.credential-details dd { margin: .25rem 0 0; overflow-wrap: anywhere; }
.confirmation { font-weight: 650; color: #245c3e; }
.confirmation span { margin-right: .3rem; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.table-wrap { overflow-x: auto; }
.ds-table { width: 100%; }
.ds-table th, .ds-table td { text-align: left; overflow-wrap: anywhere; }
.empty-state { color: #52665a; }
.site-footer { padding: 1.5rem; color: #52665a; text-align: center; font-size: .85rem; }
.site-footer span { color: #a83232; margin: 0 .4rem; }

a:focus-visible, button:focus-visible, .table-wrap:focus-visible {
    outline: 3px solid #2369c4;
    outline-offset: 3px;
}

@media (max-width: 42rem) {
    .header-inner { min-height: 4.75rem; padding: .8rem 1.25rem; }
    .page-shell { width: min(100% - 2rem, 72rem); padding: 2.5rem 0 3rem; }
    .hero.ds-card { grid-template-columns: 1fr; }
    .hero-copy { padding: 2.25rem 1.5rem; }
    .hero-art { min-height: 19rem; }
    .ticket { width: 12rem; }
    .home-bottom { align-items: flex-start; flex-direction: column; }
    .back-link { margin-bottom: 2rem; }
}
