:root {
    --ink: #141011;
    --ink-raised: #1c1617;
    --ink-deep: #0f0c0d;
    --paper: #eee5da;
    --muted: #b5a99d;
    --faint: #938679;
    --line: rgba(238, 229, 218, 0.12);
    --line-strong: rgba(238, 229, 218, 0.22);
    --gold: #c9a46b;
    --gold-soft: rgba(201, 164, 107, 0.14);
    --wine: #8e3a4b;
    --serif: 'Noto Serif TC', 'Songti TC', serif;
    --sans: 'Noto Sans TC', -apple-system, 'PingFang TC', sans-serif;
    --wrap: 1180px;
    --gutter: clamp(20px, 5vw, 56px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-page,
.brand-page *,
.brand-page *::before,
.brand-page *::after {
    box-sizing: border-box;
}

body.brand-page {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body.brand-page::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.35;
    background-image: url('../images/grain.png');
}

.brand-page a {
    color: inherit;
    text-decoration: none;
}

.brand-page img {
    max-width: 100%;
}

.brand-page h1,
.brand-page h2,
.brand-page h3,
.brand-page blockquote {
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-break: strict;
}

.brand-page :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.serif {
    font-family: var(--serif);
}

.gold {
    color: var(--gold);
}

.kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.kicker::before {
    content: '';
    width: 36px;
    height: 1px;
    background: var(--gold);
}

.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 30px;
    border: 1px solid var(--gold);
    border-radius: 2px;
    background: transparent;
    color: var(--gold);
    font: inherit;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn-line:hover,
.btn-line:focus-visible {
    background: var(--gold);
    color: var(--ink);
}

.btn-line[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.link-arrow::after {
    content: '→';
    transition: transform 0.3s var(--ease);
}

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

.link-arrow:hover::after {
    transform: translateX(4px);
}

.brand-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.brand-nav.scrolled,
.brand-nav.solid {
    background: rgba(20, 16, 17, 0.94);
    border-color: var(--line);
}

.brand-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}

.brand-name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: 0.02em;
}

.brand-sub {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    padding-left: 12px;
    border-left: 1px solid var(--line-strong);
}

.brand-links {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 0.95rem;
}

.brand-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    transition: color 0.3s var(--ease);
}

.brand-links a:hover,
.brand-links a[aria-current="page"] {
    color: var(--paper);
}

.brand-links .nav-login {
    color: var(--paper);
}

.brand-links .btn-line {
    min-height: 42px;
    padding: 0 20px;
    font-size: 0.9rem;
    color: var(--gold);
}

.brand-links .btn-line:hover {
    color: var(--ink);
}

.brand-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--paper);
    cursor: pointer;
}

.brand-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    margin: 6px auto;
    background: currentColor;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.brand-footer {
    padding: 72px 0 40px;
    border-top: 1px solid var(--line);
    background: var(--ink-deep);
    color: var(--paper);
    font-size: 0.95rem;
}

.brand-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
    gap: 40px 48px;
}

.brand-footer .brand-name {
    display: block;
    margin-bottom: 14px;
}

.brand-footer p {
    margin: 0;
    color: var(--muted);
    max-width: 30em;
}

.brand-footer .brand-footer-title {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: var(--faint);
    letter-spacing: 0.12em;
    font-weight: 500;
}

.brand-footer-col a {
    display: flex;
    align-items: center;
    min-height: 40px;
    color: var(--muted);
    transition: color 0.3s var(--ease);
}

.brand-footer-col a:hover {
    color: var(--paper);
}

.brand-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-size: 0.85rem;
}

.page-head {
    padding: 150px 0 clamp(48px, 7vw, 88px);
    border-bottom: 1px solid var(--line);
}

.page-head h1 {
    margin: 22px 0 18px;
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    line-height: 1.2;
}

.page-head p {
    margin: 0;
    max-width: 36em;
    color: var(--muted);
    font-size: 1.05rem;
}

.crumbs {
    font-size: 0.85rem;
    color: var(--faint);
}

.crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--faint);
}

.crumbs a:hover {
    color: var(--paper);
}

.block {
    padding: clamp(72px, 9vw, 128px) 0;
}

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

.block-title {
    margin: 0 0 clamp(32px, 4vw, 56px);
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.3;
}

.rule-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line-strong);
}

.rule-list > li {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

@media (max-width: 820px) {
    .brand-toggle {
        display: block;
    }

    .brand-links {
        position: fixed;
        inset: 76px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter) 28px;
        background: rgba(20, 16, 17, 0.98);
        border-bottom: 1px solid var(--line);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
    }

    .brand-nav.open .brand-links {
        opacity: 1;
        transform: none;
        visibility: visible;
    }

    .brand-nav.open {
        background: rgba(20, 16, 17, 0.98);
    }

    .brand-nav.open::after {
        content: '';
        position: fixed;
        inset: 76px 0 0 0;
        background: rgba(15, 12, 13, 0.7);
        z-index: -1;
    }

    .brand-links a {
        min-height: 52px;
        border-bottom: 1px solid var(--line);
        color: var(--paper);
    }

    .brand-links .btn-line {
        margin-top: 18px;
        justify-content: center;
        min-height: 52px;
    }

    .brand-nav.open .brand-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .brand-nav.open .brand-toggle span:nth-child(2) {
        opacity: 0;
    }

    .brand-nav.open .brand-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .brand-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-footer-grid > :first-child {
        grid-column: 1 / -1;
    }

    .page-head {
        padding-top: 120px;
    }
}

@media (max-width: 560px) {
    .brand-sub {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-page * {
        transition: none !important;
        animation: none !important;
    }
}
