/* 莎貝絲名床｜共用設計與 RWD */
:root {
    --paper: #f8f5ef;
    --ink: #43392f;
    --muted: #6d6257;
    --gold: #947958;
    --line: #d9d0c3;
    --serif: 'Noto Serif TC', 'Songti TC', 'PMingLiU', 'Times New Roman', serif;
    --sans: 'Noto Sans TC', 'Microsoft JhengHei', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

[hidden] {
    display: none !important;
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

h1 {
    font-size: clamp(34px, 4vw, 56px);
    letter-spacing: .055em;
}

h2 {
    font-size: clamp(27px, 2.7vw, 40px);
    letter-spacing: .035em;
}

h3 {
    font-size: 21px;
}

p {
    margin: 15px 0;
    color: var(--muted);
}

::selection {
    background: #d6c3a6;
    color: #352d25;
}

:focus-visible {
    outline: 2px solid #aa7541;
    outline-offset: 5px;
}

.container {
    width: min(1240px, 88%);
    margin-inline: auto;
}

.section {
    padding-block: 100px;
}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .22em;
    margin: 0 0 18px;
    line-height: 1.8;
}

.lead {
    font-size: 19px;
    line-height: 1.9;
    color: var(--ink);
}

.small {
    font-size: 15px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 15px;
    top: -80px;
    background: white;
    padding: 14px;
    z-index: 100;
}

.skip-link:focus {
    top: 15px;
}

.site-header {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3.2%;
    gap: 22px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fbf9f4f7;
    border-bottom: 1px solid #e9e2d7;
    backdrop-filter: blur(12px);
}

.brand {
    flex: 0 0 186px;
}

.brand img {
    width: 186px;
    height: 62px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 24px);
}

.main-nav a {
    font-size: 15px;
    white-space: nowrap;
    position: relative;
    padding: 12px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    height: 1px;
    bottom: 4px;
    left: 0;
    width: 0;
    background: var(--gold);
    transition: width .25s;
}

.main-nav a:hover::after, .main-nav a[aria-current='page']::after {
    width: 100%;
}

.main-nav a[aria-current='page'] {
    color: var(--gold);
}

.header-contact {
    background: var(--ink);
    color: #fff;
    padding: 13px 17px;
    font-size: 15px;
    white-space: nowrap;
}

.header-contact span {
    margin-left: 14px;
}

.menu-toggle {
    display: none;
}

.button {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    border: 1px solid var(--ink);
    padding: 16px 25px;
    color: white;
    background: var(--ink);
    font-size: 15px;
    line-height: 1.5;
    transition: background .25s, color .25s;
}

.button:hover {
    background: #705a43;
    border-color: #705a43;
}

.button.light {
    background: #f8f4e9;
    color: #473a2e;
    border-color: #f8f4e9;
}

.button.light:hover {
    background: #e4d2b9;
}

.button.outline {
    background: transparent;
    color: #fff;
    border-color: #ffffff80;
}

.button.outline:hover {
    background: #fff2;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    border: 0;
    background: none;
    border-bottom: 1px solid #a88d6a;
    padding: 0 0 9px;
    font-size: 15px;
    color: var(--ink);
}

.text-link:hover {
    color: var(--gold);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 45px;
}

.section-heading > p {
    font-size: 15px;
    margin-bottom: 0;
}

.section-heading .text-link {
    white-space: nowrap;
}

.page-hero {
    background-image: linear-gradient(90deg, #2f241bbc, #2f241b20), var(--page-image);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 85px 0 78px;
    min-height: 365px;
}

.page-hero .eyebrow, .home-hero .eyebrow, .craft-band .eyebrow, .cta-band .eyebrow {
    color: #e1cbb1;
}

.page-hero p:not(.eyebrow) {
    color: #f1e9df;
    font-size: 15px;
    letter-spacing: .08em;
    margin-top: 18px;
}

.breadcrumb {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-block: 24px;
    font-size: 12px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb > span > span {
    margin-inline: 12px;
}

.cta-band {
    padding: 85px 0;
    color: #fff;
    background: linear-gradient(90deg, #352a21c9, #352a2140), url('../images/hero.jpg') center 65%/cover;
}

.cta-band h2 {
    font-size: clamp(32px, 3.2vw, 46px);
}

.cta-band p:not(.eyebrow) {
    color: #ede2d6;
    margin: 20px 0 30px;
}

.site-footer {
    background: #302a24;
    color: #ded4c7;
    padding: 60px 0 22px;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr .9fr 1.2fr;
    gap: 65px;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 29px;
    letter-spacing: .13em;
}

.footer-brand span {
    display: block;
    font-family: Georgia, serif;
    font-size: 12px;
    letter-spacing: .35em;
    margin-top: 4px;
}

.site-footer p {
    color: #afa498;
    font-size: 15px;
}

.site-footer small {
    color: #afa498;
    font-size: 12px;
}

.site-footer h2 {
    font-family: var(--sans);
    font-size: 15px;
    margin: 5px 0 22px;
    color: #eee4d8;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
}

.footer-phone {
    font: 27px Georgia, serif;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid #ffffff20;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #a89b8b;
    font-size: 12px;
}

.site-footer a:hover {
    color: #fff;
}

.floating-contact {
    position: fixed;
    right: 24px;
    bottom: 82px;
    background: #a58a68;
    color: #fff;
    width: 64px;
    height: 82px;
    padding: 12px 8px;
    z-index: 20;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: 0 3px 18px #30251c22;
}

.floating-contact span {
    display: block;
}

.back-top {
    position: fixed;
    bottom: 25px;
    right: 35px;
    width: 42px;
    height: 42px;
    background: #f5eee4;
    border: 1px solid #c3b49d;
    color: var(--ink);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    transition: opacity .25s;
}

.back-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.journal-grid, .product-grid, .three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-grid {
    row-gap: 48px;
}

.image-wrap {
    overflow: hidden;
    aspect-ratio: 1.4;
    background: #e9e1d5;
    position: relative;
}

.image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

a:hover .image-wrap img {
    transform: scale(1.035);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gold);
    font-size: 12px;
    margin: 19px 0 13px;
    letter-spacing: .1em;
}

.journal-card {
    display: block;
}

.journal-card h3 {
    font-size: 22px;
}

.journal-card p {
    font-size: 15px;
}

.journal-card .text-link {
    margin-top: 10px;
}

.product-card .image-wrap {
    aspect-ratio: 1.25;
    background: #eee9e2;
}

.product-card .image-wrap img {
    object-fit: contain;
}

.product-card .eyebrow {
    margin: 20px 0 7px;
    font-size: 12px;
}

.product-card h3 {
    font-size: 22px;
    margin-bottom: 17px;
}

.product-arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--paper);
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tabs button {
    padding: 10px 17px;
    font-size: 15px;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line);
}

.filter-tabs button[aria-pressed='true'] {
    color: #fff;
    border-color: var(--ink);
    background: var(--ink);
}

.editorial-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9%;
    align-items: center;
}

.editorial-split > img {
    width: 100%;
    height: 540px;
    object-fit: cover;
}

.editorial-split .lead {
    margin: 25px 0;
}

.quote-section {
    text-align: center;
    padding: 95px 0;
    background: linear-gradient(#eee5dbe8, #eee5dbe8), url('../images/texture.jpg') center/cover;
}

.detail-block {
    border-top: 1px solid var(--line);
    padding-top: 25px;
}

.detail-block > span {
    color: var(--gold);
    font-size: 12px;
}

.detail-block h3 {
    margin-top: 22px;
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    cursor: pointer;
    padding: 25px 45px 25px 0;
    font-family: var(--serif);
    font-size: 21px;
    position: relative;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 12px;
}

.faq-list details[open] summary::after {
    content: '−';
}

.faq-list details p {
    max-width: 850px;
    margin: 0 0 26px;
}

.image-note {
    font-size: 12px;
    text-align: right;
    margin-bottom: 0;
}

.reveal {
    transition: opacity .75s, transform .75s;
}

.reveal.will-reveal {
    opacity: 0;
    transform: translateY(25px);
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

@media (min-width: 1600px) {
    .main-nav a {
        font-size: 15px;
    }
}

@media (max-width: 1180px) {
    .site-header {
        gap: 15px;
        padding-inline: 4%;
    }
    .brand {
        flex-basis: 162px;
    }
    .brand img {
        width: 162px;
    }
    .header-contact {
        display: none;
    }
    .main-nav {
        gap: 17px;
    }
}

@media (max-width: 1280px) {
    .site-header {
        height: 78px;
    }
    .brand {
        flex-basis: 165px;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 7px;
        padding: 13px;
        width: 48px;
        height: 46px;
        justify-content: center;
        background: none;
        border: 1px solid var(--line);
    }
    .menu-toggle span {
        display: block;
        height: 1px;
        width: 20px;
        background: var(--ink);
        transition: transform .25s;
    }
    .menu-toggle[aria-expanded='true'] span:first-child {
        transform: translateY(4px) rotate(45deg);
    }
    .menu-toggle[aria-expanded='true'] span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }
    .main-nav {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        height: calc(100dvh - 78px);
        background: var(--paper);
        flex-direction: column;
        padding: 35px 8%;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        display: none;
    }
    .main-nav.is-open {
        display: flex;
    }
    .main-nav a {
        font-size: 18px;
        padding: 17px 0;
        border-bottom: 1px solid var(--line);
    }
    .main-nav a::after {
        display: none;
    }
    .section {
        padding-block: 75px;
    }
    .footer-grid {
        gap: 30px;
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid > div:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 15px;
    }
    .container {
        width: 88%;
    }
    .section {
        padding-block: 60px;
    }
    .section-heading {
        display: block;
        margin-bottom: 30px;
    }
    .section-heading > .text-link, .section-heading > p {
        margin-top: 22px;
    }
    .eyebrow {
        font-size: 12px;
        letter-spacing: .15em;
    }
    .page-hero {
        min-height: 320px;
        padding: 65px 0 55px;
    }
    .page-hero h1 {
        font-size: 33px;
    }
    .three-grid, .journal-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
    }
    .product-card h3 {
        font-size: 17px;
    }
    .product-card .text-link {
        font-size: 12px;
        gap: 12px;
    }
    .product-card .eyebrow {
        font-size: 12px;
        letter-spacing: 0;
    }
    .product-arrow {
        width: 28px;
        height: 28px;
        right: 8px;
        bottom: 8px;
    }
    .editorial-split {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .editorial-split > img {
        height: 390px;
    }
    .quote-section {
        padding: 65px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid > div:last-child {
        grid-column: auto;
    }
    .footer-bottom {
        flex-direction: column;
        margin-top: 35px;
        padding-right: 50px;
    }
    .floating-contact {
        right: 10px;
        bottom: 70px;
        width: 50px;
        height: 70px;
        font-size: 12px;
        padding: 8px;
    }
    .back-top {
        right: 15px;
        bottom: 20px;
        width: 38px;
        height: 38px;
    }
    .cta-band {
        padding: 65px 0;
    }
    .cta-band p:not(.eyebrow) {
        max-width: 270px;
    }
    .faq-list summary {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .reveal.will-reveal {
        opacity: 1;
        transform: none;
    }
    .craft-band {
        background-attachment: scroll;
    }
}

/* 閱讀層級與精緻預約元件 */
h1, h2, h3 {
    text-wrap: balance;
    line-break: strict;
}
p, dd, summary {
    text-wrap: pretty;
    line-break: strict;
}
.site-header {
    height: 128px;
    gap: 24px;
    padding-inline: 2.5%;
}
.brand {
    flex: 0 0 270px;
}
.brand img {
    width: 270px;
    height: 112px;
}
.main-nav {
    gap: 20px;
}
.main-nav a {
    font-size: 16px;
    font-weight: 500;
}
.header-contact {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    padding: 9px 10px 9px 22px;
    border: 1px solid #a58a65;
    border-radius: 999px;
    background: linear-gradient(135deg, #65513d, #3d3025);
    box-shadow: inset 0 1px 0 #ffffff30, 0 5px 16px #3f2e201a;
    font-size: 15px;
    font-weight: 600;
    transition: transform .25s, box-shadow .25s;
}
.header-contact span {
    margin: 0;
}
.booking-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff16;
    border: 1px solid #ffffff40;
    font-size: 21px;
    line-height: 1;
}
.header-contact:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 #ffffff30, 0 8px 24px #3f2e2033;
}
.button {
    min-height: 58px;
    border-radius: 999px;
    padding: 11px 12px 11px 26px;
    gap: 28px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 5px 18px #30251c16;
}
.button > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 19px;
    opacity: .85;
}
.button:hover > span {
    transform: rotate(8deg);
}
.floating-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: auto;
    height: auto;
    min-width: 196px;
    bottom: 28px;
    right: 28px;
    padding: 13px 14px 13px 25px;
    border: 1px solid #c8b595;
    border-radius: 999px;
    background: linear-gradient(135deg, #fffdf7f7, #f0e5d6f5);
    color: #59402c;
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 #fff, 0 8px 28px #38271929;
    text-align: left;
    transition: transform .25s, box-shadow .25s;
}
.floating-contact .booking-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.booking-caption {
    font-size: 12px;
    letter-spacing: .06em;
    color: #806c55;
}
.booking-copy strong {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .12em;
}
.floating-contact .booking-arrow {
    display: grid;
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    color: white;
    background: #72583d;
    border-color: #aa8f6b;
}
.floating-contact:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 1px 0 #fff, 0 12px 32px #38271940;
}
.back-top {
    right: 245px;
    bottom: 41px;
    border-radius: 50%;
    font-size: 20px;
}
.site-footer {
    padding-bottom: 120px;
    font-size: 15px;
}
.site-footer p, .site-footer h2 {
    font-size: 15px;
}
.site-footer small, .footer-bottom, .eyebrow, .small, .card-meta, .image-note {
    font-size: 13px;
}
.journal-card p, .section-heading > p, .collection-tile p, .page-hero p:not(.eyebrow) {
    font-size: 16px;
}
.text-link {
    font-size: 15px;
}
.product-card .eyebrow {
    font-size: 13px;
}
@media (min-width: 1600px) {
    .main-nav a {
        font-size: 17px;
    }
}
@media (max-width: 1280px) {
    .site-header {
        height: 104px;
        padding-inline: 5%;
    }
    .brand {
        flex-basis: 240px;
        margin-right: auto;
    }
    .brand img {
        width: 240px;
        height: 96px;
    }
    .header-contact {
        display: none;
    }
    .main-nav {
        top: 104px;
        height: calc(100dvh - 104px);
        gap: 0;
    }
    .main-nav a {
        font-size: 20px;
        padding-block: 18px;
    }
    .menu-toggle {
        flex: 0 0 48px;
        border-radius: 50%;
    }
}
@media (max-width: 760px) {
    body {
        font-size: 16px;
    }
    .container {
        width: 89%;
    }
    .site-header {
        height: 100px;
        gap: 12px;
        padding-inline: 4%;
    }
    .brand {
        flex: 0 1 232px;
        min-width: 0;
    }
    .brand img {
        width: 100%;
        height: 96px;
    }
    .main-nav {
        top: 100px;
        height: calc(100dvh - 100px);
    }
    h1 {
        font-size: 32px;
        letter-spacing: .02em;
    }
    h2 {
        font-size: 28px;
        letter-spacing: .015em;
    }
    h3 {
        font-size: 22px;
    }
    h1 br, h2 br, h3 br, .lead br, .section-heading > p br {
        display: none;
    }
    .page-hero h1 {
        font-size: 32px;
        max-width: 16em;
    }
    .page-hero p:not(.eyebrow) {
        letter-spacing: 0;
    }
    .cta-band h2 {
        font-size: 32px;
        max-width: 12em;
    }
    .cta-band p:not(.eyebrow) {
        max-width: 34em;
    }
    .eyebrow {
        font-size: 12px;
        letter-spacing: .08em;
    }
    .footer-bottom, .site-footer small, .small, .image-note {
        font-size: 13px;
    }
    .floating-contact {
        right: 14px;
        bottom: 14px;
        min-width: 166px;
        padding: 10px 11px 10px 19px;
        gap: 14px;
    }
    .booking-copy strong {
        font-size: 16px;
    }
    .booking-caption {
        font-size: 12px;
        letter-spacing: 0;
    }
    .floating-contact .booking-arrow {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }
    .back-top {
        right: auto;
        left: 16px;
        bottom: 24px;
    }
    .button {
        font-size: 15px;
        gap: 20px;
        padding-left: 23px;
    }
    .journal-card h3, .product-card h3 {
        font-size: 23px;
    }
    .product-card .text-link, .text-link {
        font-size: 15px;
    }
    .product-card .eyebrow {
        font-size: 13px;
    }
}
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }
}
