:root {
    color-scheme: light;
    --paper: #f8f3e9;
    --white: #fffaf3;
    --ink: #25191c;
    --muted: #66585c;
    --red: #882642;
    --deep: #29151e;
    --line: #dfd0c9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 system-ui, sans-serif; }
a { color: var(--red); text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #bd5270; outline-offset: 3px;
}
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0 0 .5rem; font-family: Georgia, serif; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.35rem); line-height: 1.08; }
h2 { font-size: 2.05rem; line-height: 1.15; }
h3 { font-size: 1.33rem; line-height: 1.15; }
.wrap { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.head, .foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; }
.brand { color: inherit; display: inline-flex; align-items: center; gap: .55rem; font: bold 1.45rem Georgia, serif; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .5rem; color: white; background: var(--red); font: .85rem system-ui, sans-serif; }
.navlinks, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.navlinks a, .nav-button { color: var(--ink); font-weight: 650; font-size: .9rem; text-decoration: none; }
.navlinks a:hover, .nav-button:hover { text-decoration: underline; }
.nav-button { border: 0; background: none; font-family: inherit; cursor: pointer; padding: 0; }
.navlinks .cart-link { padding: .44rem .7rem; color: var(--red); border: 1px solid var(--line); border-radius: .5rem; }
.cart-link span { background: var(--red); color: white; min-width: 1.3rem; display: inline-grid; place-items: center; border-radius: 1rem; font-size: .75rem; margin-left: .12rem; }
.main { min-height: 70vh; padding-block: 2rem 4.2rem; }
.site-footer { background: var(--deep); color: #fae8e4; }
.foot { padding-block: 1.35rem; font-size: .9rem; }
.hero { isolation: isolate; overflow: hidden; position: relative; min-height: 335px; display: grid; align-items: center; padding: clamp(1.6rem, 6vw, 4.5rem); border-radius: 1.1rem; background: #351320; color: #fff2e4; }
.hero-copy { max-width: 560px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.25rem, 8vw, 6rem); letter-spacing: -.06em; }
.hero p:not(.eyebrow) { color: #f8dadc; max-width: 25rem; }
.hero .eyebrow { color: #ffc4a8; }
.hero-art { position: absolute; inset: 0; background: radial-gradient(ellipse at 95% 15%, #b9575f, transparent 46%), radial-gradient(ellipse at 80% 115%, #a54452, transparent 49%); }
.hero-art::before, .hero-art::after { position: absolute; content: ""; border: 1px solid #efb1a45f; border-radius: 50%; width: 24rem; height: 24rem; right: -1rem; top: 3%; box-shadow: inset 0 0 0 2.5rem #ffd9b422, inset 0 0 0 2.6rem #efb1a45f; }
.hero-art::after { right: -8rem; top: -70%; }
.eyebrow { font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: .45rem; }
.muted { color: var(--muted); }
.listings { margin-top: 2.25rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head p { margin: 0; }
.filters { display: grid; grid-template-columns: minmax(12rem, 2fr) minmax(10rem, 1fr) auto; align-items: end; gap: .75rem; padding: 1rem; border: 1px solid var(--line); background: var(--white); border-radius: .65rem; margin-bottom: 1.15rem; }
.button, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.55rem; padding: .5rem .85rem; border: 1px solid transparent; border-radius: .48rem; background: var(--red); color: white; font: 650 .9rem/1.3 system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.button:hover, .btn:hover { background: #6d1c36; color: white; }
.button.secondary { color: var(--red); border-color: var(--line); background: var(--white); }
.button.secondary:hover { background: #f2e2df; }
.button.light { color: var(--deep); background: #ffdbc2; }
.button.light:hover { background: #ffe7d6; }
.movie-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.movie-card, .panel, .table-shell, .empty { background: var(--white); border: 1px solid var(--line); border-radius: .8rem; }
.movie-card { overflow: hidden; }
.cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #3a1f30; }
.cover img, .detail-poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover img { transition: transform .2s; }
.cover:hover img { transform: scale(1.04); }
.movie-content { padding: 1rem; }
.movie-content h3 a { color: inherit; text-decoration: none; }
.movie-content h3 a:hover { text-decoration: underline; }
.movie-content .muted { font-size: .9rem; }
.card-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.details { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(1rem, 4vw, 3rem); align-items: start; }
.detail-poster { aspect-ratio: 4 / 3; border-radius: .8rem; }
.summary { white-space: pre-wrap; overflow-wrap: anywhere; }
.price { color: var(--red); font-size: 1.55rem; font-weight: 750; }
.back-link { display: inline-block; margin-bottom: 1rem; }
.panel, .empty, .notice { padding: 1.2rem; }
.notice { border: 1px solid #d3a1ac; border-radius: .6rem; background: #feece9; color: #641f36; }
.form-grid { display: grid; gap: 1rem; max-width: 720px; }
.form-grid > button { justify-self: start; }
.form-row, .checkout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
label { display: block; font-size: .92rem; font-weight: 650; }
input:not([type="checkbox"]):not([type="hidden"]), select, textarea { display: block; width: 100%; padding: .55rem .62rem; min-height: 2.55rem; border: 1px solid #baa9a4; border-radius: .48rem; background: #fffefd; color: var(--ink); font: inherit; }
textarea { resize: vertical; }
.validation, .text-danger { color: #a02035; }
.validation-summary-valid, .field-validation-valid { display: none; }
.thumb { display: block; width: 120px; border-radius: .4rem; }
.table-shell { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: middle; padding: .65rem .75rem; border-bottom: 1px solid var(--line); }
thead { background: #f2e5dd; }
td .actions { min-width: max-content; }
.quantity input:not([type="hidden"]) { width: 4.5rem; }
.cart-total { margin-top: 1rem; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 1rem; }
.cart-total p { margin: 0; }
.cart-total strong { color: var(--red); margin-left: .4rem; }
.order-summary p { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--line); padding-bottom: .55rem; }
.confirmation { width: fit-content; margin: 1.5rem auto; text-align: center; padding: clamp(1rem, 5vw, 3rem); }
.row, .form-floating { margin-bottom: .75rem; }
.form-floating label { margin-top: .2rem; }
.w-100 { width: 100%; }
@media (max-width: 820px) { .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 570px) {
    .wrap { width: calc(100% - 1.5rem); }
    .main { padding-top: 1rem; }
    .head { align-items: flex-start; flex-direction: column; gap: .55rem; }
    .navlinks { gap: .35rem .65rem; }
    .hero { min-height: 278px; }
    .hero-art::before { right: -10.5rem; }
    .hero-art::after { right: -18rem; }
    .movie-grid, .filters, .details, .checkout-grid, .form-row { grid-template-columns: 1fr; }
    .table-shell { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cover img { transition: none; }
}
