:root {
    font-family: "Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;
    line-height: 1.55;
    font-synthesis: none;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    --ink: #241d18;
    --accent: #973c25;
    --soft: #f5e5d9;
    --paper: #faf6ee;
    --line: #ddd1c1;
    --muted: #665e54;
    --deep: #35271d;
    --hero: #4a281c;
    --radius: 13px;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
}

body.lodging {
    --ink: #183a38;
    --accent: #216963;
    --soft: #e3eee8;
    --paper: #f4f6f0;
    --line: #cbd7ce;
    --muted: #566860;
    --deep: #183f42;
    --hero: #203d3a;
    --radius: 3px;
}

body.salon {
    --ink: #392a3b;
    --accent: #82475e;
    --soft: #f4e5ec;
    --paper: #faf5f7;
    --line: #e1d2dc;
    --muted: #72616d;
    --deep: #4c3045;
    --hero: #39283b;
    --radius: 18px;
}

button,a,input,select {
    font: inherit;
}

button,a {
    touch-action: manipulation;
}

button,input,select {
    color: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

input[type=checkbox] {
    accent-color: var(--accent);
    width: 1.1rem;
    height: 1.1rem;
    flex: none;
}

.top,.page,footer {
    max-width: 1360px;
    margin: auto;
    padding-inline: clamp(18px,5vw,80px);
}

.top {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,.top-right {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand strong {
    display: block;
    font: 700 22px/1.25 "Noto Serif TC","PMingLiU",serif;
    letter-spacing: .13em;
}

.brand small {
    display: block;
    font: 600 9px/1.5 system-ui;
    letter-spacing: .22em;
    margin-top: 4px;
}

.seal {
    width: 42px;
    height: 41px;
    background: var(--deep);
    color: white;
    display: grid;
    place-items: center;
    border-radius: 11px 11px 3px 3px;
    font: 600 15px serif;
    letter-spacing: .03em;
}

.salon .seal {
    border-radius: 50%;
    transform: rotate(-7deg);
}

.lodging .seal {
    border-radius: 22px 22px 2px 2px;
}

.top-right {
    font-size: 13px;
    color: var(--muted);
}

.demo {
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 4px 11px;
}

.hero {
    height: clamp(310px,32vw,440px);
    max-width: 1440px;
    margin: auto;
    position: relative;
    background: var(--hero);
    color: white;
    overflow: hidden;
    isolation: isolate;
}

.hero img {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg,var(--hero) 0%,var(--hero) 12%,transparent 88%),linear-gradient(0deg,#0002,transparent 55%);
}

.hero-copy {
    position: absolute;
    inset: 0;
    max-width: 1360px;
    margin: auto;
    padding: 30px clamp(18px,5vw,80px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero-copy p {
    margin: 0 0 8px;
    letter-spacing: .17em;
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    font: 600 clamp(40px,4.4vw,68px)/1.14 "Noto Serif TC","PMingLiU",Georgia,serif;
    letter-spacing: .04em;
    text-shadow: 0 2px 14px #0002;
}

.hero-copy>span {
    margin: 14px 0 19px;
    color: #fff9f1;
    font-size: 14px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    color: var(--ink);
    background: white;
    border-radius: 100px;
    text-decoration: none;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
}

.hero-cta i {
    font-size: 20px;
    line-height: 1;
    font-style: normal;
}

.lodging .hero-cta {
    border-radius: 2px;
}

.salon .hero {
    border-radius: 0 0 55px 0;
}

.page {
    padding-block: 32px 48px;
}

.workspace {
    display: grid;
    grid-template-columns: minmax(0,1.55fr) minmax(265px,.85fr);
    gap: 24px;
    scroll-margin-top: 16px;
    outline: none;
}

.main-column,.side-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    background: #fffdf9;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(16px,2.1vw,29px);
}

.lodging .panel {
    background: #fdfefa;
}

.salon .panel {
    background: #fffdfd;
}

.panel-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-heading h2 {
    margin: 0;
    font: 700 clamp(21px,2vw,27px)/1.35 "Noto Serif TC","PMingLiU",serif;
    letter-spacing: .04em;
}

.panel-heading>span,.minor,.empty {
    color: var(--muted);
    font-size: 13px;
}

.empty {
    margin: 8px 0;
}

.tabs {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 8px 0 18px;
}

.tabs button,.chip {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 14px;
}

.tabs [aria-pressed=true] {
    background: var(--deep);
    color: white;
    border-color: var(--deep);
}

.choice-grid,.slot-grid,.item-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.choice {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius)*.65);
    padding: 13px;
    text-align: left;
    display: grid;
    gap: 4px;
    align-content: start;
}

.choice strong {
    font-size: 16px;
}

.choice small,.card p {
    color: var(--muted);
    font-size: 13px;
}

.choice[aria-pressed=true] {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
    background: var(--soft);
}

.choice small,.choice strong {
    overflow-wrap: anywhere;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 3px;
    color: var(--accent);
    background: var(--soft);
    padding: 2px 7px;
    font-size: 12px;
    font-weight: 700;
}

.line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 9px 0;
    font-size: 14px;
}

.line>span {
    color: var(--muted);
}

.line strong {
    text-align: right;
}

.primary,.secondary {
    border: 1px solid var(--line);
    border-radius: calc(var(--radius)*.65);
    background: #fff;
    padding: 9px 14px;
    font-weight: 700;
}

.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    width: 100%;
    margin-top: 13px;
    min-height: 45px;
}

.secondary {
    font-size: 13px;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0 7px;
    font-size: 14px;
}

.record {
    border-top: 1px solid var(--line);
    padding: 12px 0;
}

.record:first-of-type {
    border-top: 0;
}

.record header,.card header,.card-controls,.split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.record p,.card p {
    margin: 4px 0 9px;
}

.record header,.card header {
    align-items: start;
}

.status-text {
    margin: 7px 0 13px;
    font-size: 14px;
    color: var(--muted);
}

.card {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius)*.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
}

.counter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    font-size: 20px;
    padding: 0;
}

.counter span {
    font-variant-numeric: tabular-nums;
    min-width: 1ch;
}

.field {
    display: grid;
    gap: 6px;
    margin: 12px 0;
}

.field strong {
    font-size: 14px;
}

select,input[type=date] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.slot-grid {
    grid-template-columns: repeat(auto-fill,minmax(68px,1fr));
}

.slot-grid button {
    text-align: center;
    padding: 8px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 5px;
}

.slot-grid [aria-pressed=true] {
    background: var(--deep);
    color: white;
}

.slot-grid button:disabled {
    text-decoration: line-through;
}

.info {
    background: var(--soft);
    padding: 12px 14px;
    border-radius: 5px;
    font-size: 14px;
}

.note {
    margin: 12px 0;
    color: var(--muted);
    font-size: 13px;
}

.side-column>.panel:first-child {
    border-top: 4px solid var(--accent);
}

footer {
    border-top: 1px solid var(--line);
    padding-block: 20px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

#notice {
    padding: 12px 15px;
    background: #e3f0df;
    border: 1px solid #b6c8ad;
    border-radius: 5px;
    color: #214c28;
    margin-bottom: 14px;
}

#notice.bad {
    background: #fff0ea;
    color: #7d2c1c;
    border-color: #e5bba6;
}

.skip {
    position: absolute;
    top: -100px;
    z-index: 9;
    background: white;
    padding: 10px;
}

.skip:focus {
    top: 0;
}

@media(max-width:800px) {
    .workspace {
        grid-template-columns: minmax(0,1fr) minmax(220px,.77fr);
        gap: 12px;
    }
    .page,.top,footer {
        padding-inline: 17px;
    }
    .panel {
        padding: 15px;
    }
    .hero-copy {
        padding-inline: 27px;
    }
    .main-column,.side-column {
        gap: 12px;
    }
}

@media(max-width:640px) {
    .top {
        height: 64px;
    }
    .top-right {
        gap: 5px;
        font-size: 11px;
    }
    .brand {
        gap: 8px;
    }
    .brand strong {
        font-size: 18px;
    }
    .seal {
        width: 35px;
        height: 35px;
    }
    .hero {
        height: 325px;
    }
    .hero img {
        width: 100%;
    }
    .hero::after {
        background: linear-gradient(90deg,#152020db,#1a181880 65%,#14141422);
    }
    .hero-copy {
        padding-inline: 22px;
    }
    .hero h1 {
        font-size: 44px;
    }
    .workspace {
        display: flex;
        flex-direction: column;
    }
    .page {
        padding: 18px 12px 25px;
    }
    .side-column {
        margin-top: 2px;
    }
    .item-grid {
        gap: 6px;
    }
    .card {
        padding: 10px;
    }
    .card-controls {
        flex-wrap: wrap;
    }
    .hero-copy>span {
        max-width: 270px;
    }
    .choice-grid {
        gap: 7px;
    }
    .counter {
        gap: 6px;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
}

input.search {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}
.contact-link {
    color: var(--accent);
    font-weight: 700;
    line-height: 1.5;
    padding: 9px 4px;
    text-underline-offset: 3px;
}
.contact-link:hover {
    color: var(--deep);
}
footer {
    align-items: center;
}
