@import url("home.css");
/* @import url("rwd.css"); */
/*全域參數*/
:root {
    --bg: #f6efe6;
    --bg-light: #f0e7dc;
    --text: #4c4036;
    --text-light: #776b60;
    --line: #cfc0b0;
    --white: #f8f5f1;
    --tea-dark: #8b6b4a;
    --paper: #fffbf7;
    
    --max-width: 1200px;
    --side-padding: 6vw;

    --serif: "Noto Serif TC", "Source Han Serif TC", "思源宋體", serif;
    --sans: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    /* line-height: 1.8; */
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    opacity: 0.65;
}

h1, h2 {
    font-family: var(--serif);
    font-weight: 600;
}


/* navbar */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background:  var(--white);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    border-bottom: 1px solid transparent;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.site-header.is-scrolled,
.site-header:has(.menu-toggle:checked) {
    background: var(--bg);
    border-bottom-color: var(--line);
}

.header-inner {
    width: min(var(--max-width), 100% - var(--side-padding) * 2);
    margin: 0 auto;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}

.wordmark {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.04em;
    line-height: 1.3;
    white-space: nowrap;
}

.menu-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.menu-button {
    display: none;
}

.main-nav {
    display: flex;
    gap: 32px;
    font-size: 14px;
    letter-spacing: 0.08em;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.site-footer {
    padding: 15px var(--side-padding);
    line-height: 30px;
}

.footer-inner {
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
    gap: 30px;
}

.footer-logo {
    font-family: var(--serif);
    font-size: 18px;
    letter-spacing: 0.08em;
}

.copyright {
    text-align: right;
    font-size: 11px;
    color: var(--text-light);
    
}

/* Footer social icons */

.footer-links {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: inherit;
    transition: opacity 0.25s ease;
}

.footer-links a:hover {
    opacity: 0.6;
}

.footer-links svg {
    width: 20px;
    height: 20px;
}


/* Back to top */

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(80, 70, 60, 0.25);
    border-radius: 50%;

    background: rgba(255, 252, 247, 0.8);
    color: #5c5148;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.back-to-top:hover {
    background: #5c5148;
    opacity: 0.8;
    color: #fff;
}

.back-to-top.show {
    opacity: 0.8;
    visibility: visible;
    transform: translateY(0);
}
/* Mobile：選單收折 + 單欄 */

@media (max-width: 700px) {
    .site-header {
        /* background: var(--bg); */
        border-bottom-color: var(--line);
    }
    
    .wordmark {
        font-size: 18px;
    }
    .header-inner {
        min-height: 48px;
    }

    .menu-button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 2;
    }

    .menu-button span:not(.visually-hidden) {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        flex-direction: column;
        gap: 0;
        background: var(--white);
        border-top: 1px solid var(--line);
        padding: 8px 0 16px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .main-nav a {
        padding: 14px var(--side-padding);
    }

    .menu-toggle:checked ~ .main-nav {
        display: flex;
    }

    .feature-section,
    .footer-inner {
        grid-template-columns: 1fr;
            }
    .footer-inner {
        gap:5px;
        .footer-logo { display: none;}
        .copyright {
            text-align: center;
        }
    }
    .feature-card {
        min-height: 280px;
        padding: 48px var(--side-padding);
    } 
}
/*@import url("product.css");
@import url("blog.css");*/