:root {
    color-scheme: light;
    --ink: #33300b;
    --muted: #706436;
    --line: #d7c37a;
    --paper: #f7efcd;
    --panel: #fff9df;
    --brand: #33300b;
    --brand-strong: #171604;
    --accent: #9d4f3b;
    --gold: #edd882;
    --ok: #efe5ae;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgba(247, 239, 205, .22), rgba(51, 48, 11, .10)),
        var(--paper);
    color: var(--ink);
    font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.shell {
    width: min(400px, 100%);
    margin: 0 auto;
    padding: 14px;
}

.hero,
.tenant-top,
.panel,
.flow,
.landing-band {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 16px;
}

.landing-hero {
    background: #f7efcd;
    border: 1px solid #bfa95e;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(51, 48, 11, .15);
    margin-bottom: 16px;
    overflow: hidden;
    padding: 12px;
    position: relative;
}

.landing-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    margin-top: 8px;
}

.portrait-divider {
    background: #33300b;
    border: 6px solid #33300b;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px #edd882, 0 8px 18px rgba(51, 48, 11, .12);
    min-height: 108px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.portrait-divider::before {
    background-image:
        linear-gradient(rgba(247, 239, 205, .18), rgba(247, 239, 205, .18)),
        url("vintage-collage-generated.png");
    background-size: 100% auto;
    content: "";
    filter: sepia(.25) contrast(.9) saturate(.8);
    inset: 0;
    opacity: .82;
    position: absolute;
}

.band-1::before {
    background-position: center 0%;
}

.band-2::before {
    background-position: center 33%;
}

.band-3::before {
    background-position: center 66%;
}

.band-4::before {
    background-position: center 100%;
}

.landing-band h2,
.date-group h3 {
    font-family: Georgia, "Times New Roman", serif;
}

.service-strip {
    display: grid;
    gap: 8px;
}

.service-strip > div {
    border-bottom: 1px solid rgba(51, 48, 11, .18);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.service-strip span,
.choice-summary,
.date-group h3 {
    color: var(--muted);
    font-size: .92rem;
}

.hero {
    min-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-home {
    background: #f7efcd;
    border-color: #bfa95e;
    box-shadow: 0 10px 28px rgba(51, 48, 11, .15);
    justify-content: flex-start;
}

.app-home h1 {
    font-family: Georgia, "Times New Roman", serif;
}

.app-home .portrait-divider {
    min-height: 104px;
}

.home-actions {
    display: grid;
    gap: 12px;
    margin: 22px 0 18px;
}

.home-actions .button {
    width: 100%;
}

.site-credit {
    color: var(--muted);
    margin: 0;
    text-align: center;
}

.site-credit a {
    color: #8b1f18;
    font-weight: 900;
}

.home-card {
    background: rgba(255, 249, 223, .74);
    border: 1px solid rgba(191, 169, 94, .85);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(51, 48, 11, .12);
    margin-top: 18px;
    padding: 16px;
}

.home-card h2 {
    font-family: Georgia, "Times New Roman", serif;
}

.home-card .compact-list {
    margin: 14px 0;
}

.home-card .item {
    background: rgba(247, 239, 205, .62);
}

.home-card-note {
    color: var(--muted);
    font-size: .94rem;
    margin: 0;
}

.setup-note {
    border: 1px solid rgba(191, 169, 94, .85);
    border-radius: 8px;
    padding: 12px;
}

.setup-note summary {
    cursor: pointer;
    font-weight: 800;
}

.ad-banner {
    background: rgba(255, 249, 223, .72);
    border: 1px solid rgba(191, 169, 94, .7);
    border-radius: 8px;
    box-shadow: 0 5px 12px rgba(51, 48, 11, .08);
    margin: 16px 0 0;
    padding: 9px 12px;
    text-align: center;
}

.ad-banner a {
    color: #706436;
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}

.ad-banner a:hover {
    color: #8b1f18;
    text-decoration: underline;
}

h1,
h2 {
    line-height: 1.1;
    margin: 0 0 10px;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.35rem;
}

.eyebrow {
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.actions,
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.inline-form {
    margin: 0;
}

.link-button,
.small-link {
    background: transparent;
    border: 0;
    color: #8b1f18;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    margin-top: 8px;
    padding: 0;
    text-align: center;
    text-decoration: underline;
}

.small-link {
    display: block;
    width: 100%;
}

.link-button.danger {
    color: #8b1f18;
    font-weight: 700;
}

.public-share {
    display: grid;
    gap: 6px;
}

.public-share-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.public-share-actions a {
    overflow-wrap: anywhere;
}

.copy-public-link {
    font-weight: 800;
    margin-top: 0;
    white-space: nowrap;
}

.button,
.chip {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    box-shadow: 0 7px 14px rgba(51, 48, 11, .18);
    text-decoration: none;
    transition: box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.button:hover,
.chip:hover,
.time-button:hover,
.booking-nav a:hover,
.top-nav a:hover {
    box-shadow: 0 9px 18px rgba(51, 48, 11, .24);
    transform: translateY(-1px);
}

.button.primary,
.chip.selected {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
}

.button.primary:hover {
    background: var(--brand-strong);
}

.full {
    width: 100%;
}

.grid-list,
.time-list,
.compact-list,
.time-buttons {
    display: grid;
    gap: 10px;
}

.grid-list {
    grid-template-columns: 1fr;
}

.item,
.time-card,
.compact-list > div,
.edit-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: inherit;
    display: grid;
    gap: 4px;
    padding: 14px;
    text-decoration: none;
}

.edit-card {
    background: rgba(255, 249, 223, .64);
}

.time-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chip-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.select-chip {
    cursor: pointer;
    display: block;
}

.select-chip input,
.chip-radios input {
    clip: rect(0 0 0 0);
    height: 1px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.select-chip span {
    align-items: center;
    background: #fff9df;
    border: 1px solid #bfa95e;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(51, 48, 11, .14);
    display: flex;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 10px 8px;
    text-align: center;
    transition: box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.select-chip:hover span {
    box-shadow: 0 9px 18px rgba(51, 48, 11, .24);
    transform: translateY(-1px);
}

.select-chip input:checked + span,
.time-button:has(input:checked) {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff9df;
}

.time-button {
    background: #fff9df;
    border: 1px solid #bfa95e;
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 800;
    min-height: 42px;
    padding: 10px 8px;
    box-shadow: 0 6px 12px rgba(51, 48, 11, .14);
    text-align: center;
    text-decoration: none;
    transition: box-shadow .16s ease, transform .16s ease, background .16s ease;
    width: 100%;
}

.time-button.selected {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff9df;
}

.date-groups {
    display: grid;
    gap: 18px;
}

.date-group {
    border-top: 1px solid rgba(51, 48, 11, .18);
    padding-top: 12px;
}

.date-group:first-child {
    border-top: 0;
    padding-top: 0;
}

.date-group h3 {
    font-size: 1rem;
    margin: 0 0 10px;
}

.time-buttons form {
    margin: 0;
}

.item.selected {
    border-color: var(--brand);
    box-shadow: inset 4px 0 0 var(--brand);
}

.item span,
.time-card span,
.compact-list span,
.summary dt {
    color: var(--muted);
    font-size: .92rem;
}

.step {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.step span {
    align-items: center;
    background: var(--ink);
    border-radius: 999px;
    color: white;
    display: inline-flex;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.step h2 {
    margin: 0;
}

.notice {
    background: #fff5df;
    border: 1px solid #ead49b;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.success {
    background: var(--ok);
}

.summary {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.summary div {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    padding-bottom: 10px;
}

.summary dt,
.summary dd {
    margin: 0;
}

.summary dd {
    font-weight: 800;
}

label,
.stack {
    display: grid;
    gap: 8px;
}

input,
select {
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.time-card {
    grid-template-columns: 1fr;
}

.top-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.booking-nav {
    display: flex;
    margin-bottom: 10px;
}

.booking-nav a {
    background: #33300b;
    border-radius: 8px;
    box-shadow: 0 7px 14px rgba(51, 48, 11, .18);
    color: #fff9df;
    font-weight: 800;
    min-height: 40px;
    padding: 8px 12px;
    text-decoration: none;
    transition: box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.booking-nav a::before {
    content: "< ";
}

.vertical {
    display: grid;
}

.top-nav a {
    background: var(--ink);
    border-radius: 8px;
    box-shadow: 0 7px 14px rgba(51, 48, 11, .18);
    color: white;
    padding: 9px 12px;
    text-decoration: none;
    transition: box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.two-columns {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

fieldset {
    border: 1px solid var(--line);
    border-radius: 8px;
}

.check {
    align-items: center;
    display: flex;
    gap: 8px;
}

.check input {
    min-height: auto;
    width: auto;
}

.hidden {
    display: none !important;
}
