/*
Theme Name: China Fieldnotes
Description: Chinese digital guide storefront.
Version: 1.1.2
Requires PHP: 8.0
*/
:root{--paper:#f7f5eb;--ink:#20291f;--sub:#50594d;--green:#263e31;--rust:#a7422a;--line:#d5d7c8;--white:#fffdf6}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 system-ui,sans-serif}
a{color:inherit;text-underline-offset:.22em}
a:hover{color:var(--rust)}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--rust);outline-offset:4px}
.wrap{width:min(1600px,calc(100% - 48px));margin-inline:auto}
.site-head,.site-foot{border-block-end:1px solid var(--line)}
.nav,.nav nav,.brand,.guide-tail,.section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.nav{min-height:76px;flex-wrap:wrap;padding-block:12px}
.nav a,.guide h3 a{text-decoration:none}
.nav nav{flex-wrap:wrap;font-size:.9rem}
.brand{font-weight:800;gap:.6rem}
.mark{background:var(--green);color:white;padding:.25rem .55rem;border-radius:.45rem}
.cart-link{border:1px solid var(--line);padding:.35rem .8rem;border-radius:2rem}
.eyebrow{color:var(--rust);font-size:.76rem;letter-spacing:.14em;font-weight:800;text-transform:uppercase}
h1,h2,h3{line-height:1.05;margin:0;font-family:Georgia,serif}
.pill,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--green);color:white;border-radius:6px;text-decoration:none;padding:.8em 1.1em;font-weight:700}
.pill{display:inline-flex;gap:1rem}
.pill:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:#385746;color:white}
.library{padding-block:55px 76px}
.section-head{align-items:end;margin-bottom:24px;flex-wrap:wrap}
.section-head h2{font-size:clamp(2.3rem,5vw,3.6rem);letter-spacing:-.04em}
.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.guide{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:13px;background:var(--white);overflow:hidden}
.cover{display:grid;place-items:center;aspect-ratio:1.9;overflow:hidden;font:4rem Georgia,serif;text-decoration:none}
.cover img{width:100%;height:100%;object-fit:cover}
.cover-0{background:#e4ae8f;color:#652e20}.cover-1{background:#d9dfbf;color:#324b31}.cover-2{background:#ddd4a4;color:#524427}
.guide-copy{padding:18px;display:flex;flex-direction:column;flex:1}
.guide-copy h3{font-size:1.65rem}.guide-copy p{color:var(--sub)}.guide-copy .eyebrow{color:var(--rust)}
.guide-tail{padding-top:12px;border-top:1px solid var(--line);margin-top:auto;font-size:.88rem}
.site-foot{border-block-start:1px solid var(--line);padding:32px 0;color:var(--sub)}
.content-page{padding-block:45px 70px;min-height:60vh}.content-page h1{margin-bottom:22px}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea{border:1px solid var(--line);padding:10px;background:var(--white)}
.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:16px;top:16px;background:var(--white);z-index:10;padding:.6rem}
@media(max-width:760px){.guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.wrap{width:calc(100% - 32px)}.guide-grid{grid-template-columns:1fr}.nav{gap:.6rem}.nav nav{gap:.7rem}}


.storefront-banner{margin-top:28px;padding:clamp(20px,4vw,40px);background:var(--green);color:white;border-radius:14px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.storefront-banner .eyebrow{color:#f0c69d;margin-top:0}
.storefront-banner h1,.content-page h1{font:800 clamp(1.8rem,4vw,2.6rem)/1.2 system-ui,sans-serif}
.storefront-banner p:last-child{margin-bottom:0}
.storefront-banner .pill{background:var(--white);color:var(--green)}
.library{padding-top:30px}
.section-head h2{font:800 clamp(1.45rem,3vw,2rem)/1.25 system-ui,sans-serif;letter-spacing:0}
.guide-copy h3{font:750 1.25rem/1.35 system-ui,sans-serif}
.guide-tail strong,.guide-tail .amount,.woocommerce .price .amount{color:var(--rust);font-weight:800;font-size:1.2rem}
.guide-tail a{background:var(--green);color:white;padding:.55em .8em;border-radius:6px;text-decoration:none}
.content-page > article{background:var(--white);border:1px solid var(--line);padding:clamp(16px,4vw,36px);border-radius:14px}
.woocommerce ul.products li.product{border:1px solid var(--line);border-radius:12px;background:var(--white);padding:14px}
.woocommerce ul.products li.product a img{border-radius:8px;aspect-ratio:4/3;object-fit:contain;background:var(--paper)}
.woocommerce div.product .woocommerce-product-gallery img{border-radius:12px}
.woocommerce div.product .summary,.woocommerce div.product .woocommerce-tabs,.woocommerce .cart-collaterals .cart_totals,.woocommerce #payment{background:var(--white);border:1px solid var(--line);padding:clamp(14px,3vw,25px);border-radius:12px}
.woocommerce table.shop_table{background:var(--white);border-color:var(--line);border-radius:10px}
.woocommerce form.login,.woocommerce form.register,.woocommerce form.checkout_coupon{border-color:var(--line);background:var(--white);border-radius:10px}
.woocommerce-MyAccount-navigation ul{margin:0 0 20px;padding:0;list-style:none;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.woocommerce-MyAccount-navigation a{display:block;padding:.65rem 1rem;text-decoration:none}
.woocommerce-MyAccount-navigation .is-active a{background:var(--green);color:white}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,.wc-block-components-button:not(.is-link){background:var(--green);color:white;border-radius:6px}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover{background:#385746;color:white}
.wc-block-cart,.wc-block-checkout{background:var(--white);border-radius:12px}
