:root {
    --tea-bg: #f4efe6;
    --tea-paper: #fffaf2;
    --tea-paper-2: #ece0cf;
    --tea-ink: #201814;
    --tea-muted: #7b6f65;
    --tea-line: rgba(32, 24, 20, .12);
    --tea-brown: #5b3928;
    --tea-orange: #d77832;
    --tea-red: #7e2f25;
    --tea-green: #344b35;
    --tea-cream: #fbf5ea;
    --tea-shadow: 0 22px 55px rgba(32, 24, 20, .08);
    --tea-radius: 22px;
    --tea-serif: Georgia, 'Times New Roman', serif;
    --tea-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--tea-bg);
    color: var(--tea-ink);
    font-family: var(--tea-sans);
    font-size: 16px;
    line-height: 1.62;
    text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-color: rgba(215, 120, 50, .45); text-underline-offset: 4px; }
a:hover { color: var(--tea-orange); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }
.container--narrow { width: min(860px, calc(100% - 40px)); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .55em; line-height: 1.08; font-family: var(--tea-serif); font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(42px, 6.4vw, 86px); }
h2 { font-size: clamp(30px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2.2vw, 32px); }
p { margin: 0 0 1rem; }
.eyebrow { color: var(--tea-orange); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; margin-bottom: 12px; }

.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 46px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--tea-ink);
    background: var(--tea-ink); color: #fffaf2 !important; text-decoration: none; font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover, .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--tea-orange); border-color: var(--tea-orange); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(215,120,50,.18); color: #fff !important; }
.button--ghost { background: transparent; color: var(--tea-ink) !important; border-color: var(--tea-line); }
.button--ghost:hover { background: var(--tea-ink); border-color: var(--tea-ink); color: #fff !important; }

.site-header--workshop { position: sticky; top: 0; z-index: 100; background: rgba(244,239,230,.94); backdrop-filter: blur(18px); border-bottom: 1px solid var(--tea-line); }
.site-topbar { background: #2b2119; color: rgba(255,250,242,.76); font-size: 13px; }
.site-topbar__inner { min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.site-topbar__left, .site-topbar__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-topbar__links a { color: rgba(255,250,242,.78); text-decoration: none; }
.site-topbar__links a:hover { color: #fff; }
.site-header__inner { display: flex; align-items: center; min-height: 78px; gap: 22px; }
.site-header__inner--workshop { min-height: 92px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; letter-spacing: -.025em; }
.site-brand__mark { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--tea-orange); color: #fffaf2; font-family: var(--tea-serif); font-size: 28px; box-shadow: 0 10px 28px rgba(215,120,50,.2); }
.site-brand__text { font-size: 19px; max-width: 190px; line-height: 1.1; }
.header-contact { margin-left: auto; display: grid; gap: 2px; text-align: right; }
.header-contact__phone { font-weight: 900; text-decoration: none; font-size: 16px; color: var(--tea-ink); }
.header-contact__callback { font-size: 13px; color: var(--tea-orange); text-decoration: none; font-weight: 800; }
.primary-nav { flex: 1; }
.primary-nav--workshop { flex: 1 1 100%; order: 10; width: 100%; border-top: 1px solid var(--tea-line); }
.primary-nav__list { display: flex; align-items: center; justify-content: center; gap: 26px; list-style: none; padding: 14px 0; margin: 0; }
.primary-nav a { text-decoration: none; color: var(--tea-muted); font-weight: 800; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--tea-orange); }
.site-header__actions { display: flex; align-items: center; gap: 9px; }
.header-icon-link, .header-cart { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tea-line); border-radius: 999px; background: var(--tea-paper); text-decoration: none; font-weight: 900; }
.header-icon-link { width: 42px; font-size: 19px; }
.header-cart { gap: 8px; padding: 9px 14px; }
.header-cart span { display: inline-flex; min-width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--tea-orange); color: #fff; font-size: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--tea-line); background: var(--tea-paper); border-radius: 50%; padding: 12px; }
.nav-toggle span:not(.screen-reader-text) { display: block; height: 2px; background: var(--tea-ink); margin: 4px 0; }

.hero { position: relative; overflow: hidden; padding: clamp(54px, 7vw, 88px) 0; background: linear-gradient(180deg, #fbf5ea 0%, #f1e6d6 100%); }
.hero::after { content: '茶'; position: absolute; right: -45px; bottom: -160px; color: rgba(215,120,50,.08); font-family: var(--tea-serif); font-size: min(36vw, 520px); line-height: 1; pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: stretch; position: relative; z-index: 1; }
.hero__copy { padding: clamp(28px, 5vw, 58px); border-radius: 34px; background: rgba(255,250,242,.72); border: 1px solid rgba(32,24,20,.1); box-shadow: var(--tea-shadow); }
.hero__copy p { font-size: clamp(18px, 1.5vw, 21px); color: var(--tea-muted); max-width: 680px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero__visual { min-height: 460px; border-radius: 34px; background: linear-gradient(135deg, rgba(32,24,20,.94), rgba(91,57,40,.88)), radial-gradient(circle at 78% 28%, rgba(215,120,50,.42), transparent 38%); position: relative; overflow: hidden; box-shadow: var(--tea-shadow); }
.hero__visual::before { content: ''; position: absolute; inset: 28px; border: 1px solid rgba(255,250,242,.16); border-radius: 26px; }
.hero__visual::after { content: '普\A岩\A白'; white-space: pre; position: absolute; top: 30px; right: 48px; color: rgba(255,250,242,.10); font-size: 96px; line-height: .95; font-family: var(--tea-serif); }
.hero__card { position: absolute; left: 30px; right: 30px; bottom: 30px; border-radius: 24px; padding: 24px; color: #fff; background: rgba(255,250,242,.1); border: 1px solid rgba(255,250,242,.16); backdrop-filter: blur(12px); }
.hero__card h3 { margin-bottom: 8px; }
.hero__card p { color: rgba(255,250,242,.76); margin-bottom: 0; }

.section { padding: clamp(58px, 7vw, 96px) 0; }
.section--paper { background: var(--tea-paper); }
.section--cream { background: #fbf5ea; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 30px; }
.section__head p { color: var(--tea-muted); max-width: 560px; }
.grid-3, .post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.workshop-promos { display: grid; grid-template-columns: 1.25fr .88fr .88fr; gap: 20px; margin-top: 26px; }
.workshop-promo { min-height: 210px; padding: 28px; border-radius: 26px; background: linear-gradient(135deg, #fffaf2, #eadcca); border: 1px solid var(--tea-line); box-shadow: 0 16px 40px rgba(32,24,20,.055); position: relative; overflow: hidden; text-decoration: none; }
.workshop-promo::after { content: attr(data-symbol); position: absolute; right: 16px; bottom: -18px; font-family: var(--tea-serif); font-size: 140px; line-height: 1; color: rgba(215,120,50,.13); }
.workshop-promo--dark { background: linear-gradient(135deg, var(--tea-ink), var(--tea-green)); color: #fff; }
.workshop-promo--dark p { color: rgba(255,250,242,.76); }
.workshop-promo h3 { max-width: 78%; }
.workshop-promo p { max-width: 68%; color: var(--tea-muted); }

.benefit-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -22px; position: relative; z-index: 2; }
.benefit-item { background: var(--tea-paper); border: 1px solid var(--tea-line); border-radius: 22px; padding: 24px; box-shadow: 0 12px 30px rgba(32,24,20,.055); }
.benefit-item h3 { font-family: var(--tea-sans); font-size: 19px; letter-spacing: -.02em; margin-bottom: 4px; font-weight: 900; }
.benefit-item p { margin: 0; color: var(--tea-muted); }
.benefit-item__icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; border-radius: 50%; background: rgba(215,120,50,.12); color: var(--tea-orange); font-weight: 900; }

.catalog-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tea-card { min-height: 220px; padding: 22px; border: 1px solid var(--tea-line); border-radius: 24px; background: var(--tea-paper); box-shadow: 0 10px 30px rgba(32,24,20,.045); display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; text-decoration: none; }
.tea-card::before { content: attr(data-symbol); position: absolute; top: 8px; right: 16px; font-family: var(--tea-serif); color: rgba(215,120,50,.18); font-size: 82px; line-height: 1; }
.tea-card h3 { font-family: var(--tea-sans); font-size: 20px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 6px; }
.tea-card p { margin-bottom: 0; color: var(--tea-muted); font-size: 14px; }
.tea-card__price { display: inline-flex; margin-top: 12px; color: var(--tea-orange); font-weight: 900; }

.feature-card { padding: 28px; border: 1px solid var(--tea-line); border-radius: 24px; background: #fffaf2; box-shadow: 0 12px 32px rgba(32,24,20,.04); }
.feature-card__number { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: var(--tea-orange); color: #fff; font-weight: 900; margin-bottom: 18px; }
.blog-card { min-height: 250px; border-radius: 24px; padding: 24px; background: var(--tea-paper); border: 1px solid var(--tea-line); text-decoration: none; box-shadow: 0 12px 32px rgba(32,24,20,.045); display: flex; flex-direction: column; justify-content: space-between; }
.blog-card__date { color: var(--tea-orange); font-size: 13px; font-weight: 900; }
.blog-card p { color: var(--tea-muted); }
.product-section-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.product-section-tabs span { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: var(--tea-paper); border: 1px solid var(--tea-line); font-weight: 900; }
.banner { padding: clamp(38px, 5vw, 68px); background: linear-gradient(135deg, var(--tea-ink), var(--tea-green)); border-radius: 32px; color: #fff; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; overflow: hidden; position: relative; }
.banner::after { content: '礼'; position: absolute; right: 22px; bottom: -80px; color: rgba(255,250,242,.08); font-family: var(--tea-serif); font-size: 260px; }
.banner p { color: rgba(255,255,255,.76); }
.banner .button { background: #fffaf2; color: var(--tea-ink) !important; border-color: #fffaf2; justify-self: start; position: relative; z-index: 1; }

.archive-header, .single-hero, .shop-hero { padding: clamp(54px, 8vw, 96px) 0 38px; background: linear-gradient(180deg, #fbf5ea, #f1e6d6); }
.content-section { padding: 60px 0; }
.content-section--shop { padding-top: 34px; }
.post-card { border-radius: var(--tea-radius); overflow: hidden; border: 1px solid var(--tea-line); background: var(--tea-paper); }
.post-card__image { min-height: 220px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #dfc7a8, #f7f1e7); text-decoration: none; }
.post-card__image span { font-family: var(--tea-serif); font-size: 96px; color: rgba(32,24,20,.18); }
.post-card__body { padding: 24px; }
.post-card__body h2 { font-size: 28px; }
.post-card__body h2 a { text-decoration: none; }
.single-featured-image img { border-radius: 34px; box-shadow: var(--tea-shadow); }
.single-content { padding: 52px 0; }
.single-content h2 { margin-top: 1.2em; }
.single-content table { width: 100%; border-collapse: collapse; background: var(--tea-paper); border-radius: 18px; overflow: hidden; }
.single-content th, .single-content td { padding: 14px 16px; border-bottom: 1px solid var(--tea-line); text-align: left; }

.woocommerce ul.products { display: grid; gap: 18px; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { border: 1px solid var(--tea-line); border-radius: 22px; background: var(--tea-paper); padding: 14px 14px 20px !important; box-shadow: 0 10px 28px rgba(32,24,20,.04); overflow: hidden; }
.woocommerce ul.products li.product a img { border-radius: 18px; background: #eadbc4; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--tea-sans); font-size: 18px; line-height: 1.25; color: var(--tea-ink); font-weight: 900; letter-spacing: -.02em; }
.woocommerce div.product .product_title { font-size: clamp(34px, 5vw, 64px); }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: var(--tea-orange); font-weight: 900; }
.woocommerce div.product form.cart { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.woocommerce .quantity .qty { min-height: 46px; border: 1px solid var(--tea-line); border-radius: 999px; padding: 0 10px; background: var(--tea-paper); }
.woocommerce .woocommerce-tabs ul.tabs li { border-radius: 999px !important; background: var(--tea-paper) !important; border-color: var(--tea-line) !important; }
.woocommerce .woocommerce-tabs ul.tabs::before { border-color: var(--tea-line); }
.imperial-loop-note { color: var(--tea-muted); font-size: 13px; margin: 0 0 8px; }
.tea-passport { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tea-passport__item { padding: 16px 18px; border-radius: 18px; background: var(--tea-paper); border: 1px solid var(--tea-line); }
.tea-passport__label { display: block; color: var(--tea-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 5px; }
.tea-passport__value { font-weight: 800; }
.language-switcher { display: inline-flex; gap: 5px; align-items: center; }
.language-switcher a, .language-switcher span { padding: 6px 8px; border-radius: 999px; border: 1px solid var(--tea-line); background: var(--tea-paper); text-decoration: none; font-size: 12px; font-weight: 900; }

.site-footer--workshop { padding: 0 0 28px; background: #1d1712; color: rgba(255,250,242,.76); }
.footer-guide { padding: 48px 0; background: linear-gradient(135deg, #6a321f, #2b2119); color: #fff; }
.footer-guide__inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.footer-guide p { color: rgba(255,250,242,.78); max-width: 680px; }
.footer-guide .button { background: #fffaf2; color: var(--tea-ink) !important; border-color: #fffaf2; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 42px; padding-top: 64px; }
.site-footer h2 { color: #fff; font-size: 22px; letter-spacing: -.02em; }
.site-brand--footer { margin-bottom: 18px; color: #fff; }
.site-brand--footer .site-brand__mark { box-shadow: none; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-menu a { text-decoration: none; color: rgba(255,250,242,.72); }
.footer-menu a:hover { color: #fff; }
.footer-muted { color: rgba(255,250,242,.5); }
.site-footer__bottom { border-top: 1px solid rgba(255,250,242,.12); margin-top: 42px; padding-top: 22px; }

@media (max-width: 1080px) {
    .site-topbar__inner { align-items: flex-start; flex-direction: column; padding: 8px 0; }
    .header-contact { display: none; }
    .primary-nav--workshop { order: 0; border-top: 0; width: auto; flex: 1; }
    .primary-nav__list { gap: 16px; }
    .hero__grid, .banner, .site-footer__grid, .footer-guide__inner { grid-template-columns: 1fr; }
    .workshop-promos { grid-template-columns: 1fr; }
    .benefit-strip, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
    .site-header__inner { flex-wrap: wrap; }
    .nav-toggle { display: inline-block; margin-left: auto; }
    .primary-nav, .primary-nav--workshop { display: none; order: 10; width: 100%; flex: 1 1 100%; border-top: 1px solid var(--tea-line); }
    .primary-nav.is-open { display: block; }
    .primary-nav__list { align-items: stretch; flex-direction: column; padding: 16px 0 22px; }
    .site-header__actions { margin-left: 0; width: 100%; justify-content: flex-start; }
    .hero__grid, .grid-3, .post-grid { grid-template-columns: 1fr; }
    .hero__visual { min-height: 340px; }
    .site-topbar__links { display: none; }
}
@media (max-width: 560px) {
    .container, .container--narrow { width: min(100% - 28px, 1220px); }
    .hero { padding-top: 34px; }
    .hero__copy { padding: 24px; border-radius: 26px; }
    .hero__visual { min-height: 280px; border-radius: 26px; }
    .hero__card { left: 18px; right: 18px; bottom: 18px; padding: 18px; }
    .benefit-strip, .grid-4, .catalog-grid, .tea-passport { grid-template-columns: 1fr; }
    .section__head { display: block; }
    .site-header__actions .language-switcher { display: none; }
}


/* Fix for installations where Twenty Twenty-Four stayed active. */
body.wp-theme-twentytwentyfour.home .wp-site-blocks > header.wp-block-template-part,
body.wp-theme-twentytwentyfour.home .wp-site-blocks > footer.wp-block-template-part { display: none !important; }
body.wp-theme-twentytwentyfour.home .wp-site-blocks > main,
body.wp-theme-twentytwentyfour.home .wp-block-post-content,
body.wp-theme-twentytwentyfour.home .entry-content { margin-block-start: 0 !important; padding: 0 !important; }
body.wp-theme-twentytwentyfour.home .wp-block-post-title,
body.wp-theme-twentytwentyfour.home h1.wp-block-post-title { display: none !important; }
body.wp-theme-twentytwentyfour.home .imperial-standalone-header,
body.wp-theme-twentytwentyfour.home .imperial-standalone-footer { display: block; }
body.imperial-tea-site .imperial-standalone-header,
body.imperial-tea-site .imperial-standalone-footer { display: none !important; }
body.wp-theme-twentytwentyfour.home { background: var(--tea-bg); }
body.wp-theme-twentytwentyfour.home .elementor-section,
body.wp-theme-twentytwentyfour.home .elementor-container { width: 100%; max-width: none; }
.imperial-shortcode-home, .imperial-shortcode-section, .benefit-strip, .section, .site-header, .site-footer { font-family: var(--tea-sans); }
