
:root{--paper:#f7f5ee;--card:#fffef9;--ink:#203e32;--muted:#697568;--line:#d9dfd3;--soft:#e9eedf;--gold:#8d6c2e;--danger:#963c33;--radius:20px;--motion:160ms}*{box-sizing:border-box}html{color-scheme:light;scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 'Segoe UI',Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}a,button{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:active,.button:active{transform:translateY(1px)}h1,h2,h3,p{margin-top:0}h1{font:400 clamp(34px,4vw,54px)/1.12 Georgia,serif;letter-spacing:-1.5px;margin-bottom:16px}h2{font-size:22px;font-weight:500}h3{font:400 25px/1.25 Georgia,serif;margin:0}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.symbols{position:absolute;width:0;height:0;overflow:hidden}.skip{position:fixed;left:16px;top:-70px;background:var(--card);padding:12px;z-index:20}.skip:focus{top:12px}.sidebar{position:fixed;inset:0 auto 0 0;width:242px;padding:40px 26px;border-right:1px solid var(--line);background:#eff1e7;display:flex;flex-direction:column}.brand{display:flex;gap:12px;font:23px/1.1 Georgia,serif;align-items:center}.brand-icon{width:42px;height:50px;display:grid;place-items:center;border:1px solid #b7c1aa;border-radius:50%}.brand-note{display:block;font:9px/1.5 'Segoe UI',sans-serif;letter-spacing:1.5px;margin-top:12px;color:var(--muted)}.navigation{display:grid;gap:9px;margin-top:66px}.navigation a{min-height:52px;display:flex;gap:14px;align-items:center;padding:12px 16px;border-radius:12px;color:#4b6152;font-size:15px}.navigation a:hover{background:#e3e8d9}.navigation a[aria-current]{background:var(--ink);color:var(--card)}.navigation svg{width:21px;height:21px;flex-shrink:0}.badge{display:inline-block;margin-left:6px;font-size:11px}.sidebar-note{margin:auto 12px 0;font:italic 17px/1.7 Georgia,serif;color:var(--muted)}.workspace{margin-left:242px;padding:0 clamp(24px,4vw,64px)}.topline{height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:13px;gap:20px}.topline a{padding:12px 0}.top-caption{letter-spacing:2px;color:var(--muted);font-size:10px}.mobile-brand{display:none}main{max-width:1180px;margin:auto;padding:44px 0 60px;min-height:75vh;outline:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}.eyebrow{color:var(--gold);letter-spacing:2px;font-size:10px;font-weight:600;margin-bottom:16px}.muted{color:var(--muted);font-size:14px}.stamp{display:flex;align-items:center;justify-content:center;gap:12px;border:1px solid #c7d0bb;border-radius:50%;width:144px;height:104px;transform:rotate(-9deg);font:italic 16px/1.3 Georgia,serif;color:#708268;flex-shrink:0}.stamp svg{width:32px;height:32px}.filters{background:var(--card);padding:24px;border:1px solid var(--line);border-radius:var(--radius)}label{display:block;font-size:12px;font-weight:600;color:var(--muted)}input,select{display:block;width:100%;min-height:48px;border:1px solid #bac6b4;border-radius:9px;background:var(--card);color:var(--ink);padding:10px 13px;margin-top:7px;min-width:0}input[type=search]{background:var(--paper);border-color:var(--line);font-size:16px}.filter-row{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:16px;align-items:end;margin-top:16px}.checkbox{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:400;margin-top:12px}.checkbox input{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--ink)}.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;background:var(--ink);color:var(--card);border:1px solid var(--ink);border-radius:10px;font-size:14px;font-weight:600;transition:background var(--motion)}.button:hover{background:#345940}.button.secondary{background:transparent;color:var(--ink);border-color:#bac6b4}.button.secondary:hover{background:var(--soft)}.button.small{padding:10px 18px}.button.full{width:100%}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:34px 0 20px}.section-heading h2,.section-heading p{margin:0}.section-heading h2 span{font-size:13px;color:var(--muted);margin-left:8px}.tea-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.tea-card{padding:23px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);display:flex;flex-direction:column;min-height:250px;transition:border-color var(--motion)}.tea-card:hover{border-color:#96aa8d}.card-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:22px}.card-top svg{color:#819577}.category{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--gold)}.tea-title{display:block;padding-bottom:8px;overflow-wrap:anywhere}.tea-title:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}.origin{color:var(--muted);font-size:13px;margin-bottom:24px}.card-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto}.price{font-size:21px;font-weight:600}.unit{font-size:12px;color:var(--muted)}.availability{color:#43653c;font-size:12px;margin:7px 0 0;display:flex;gap:7px;align-items:center}.availability:before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%}.availability.unavailable{color:#77776d}.circle-link{width:44px;height:44px;display:grid;place-items:center;background:var(--soft);border-radius:50%;font-size:21px;flex-shrink:0}.empty{text-align:center;border:1px dashed #c5cdbc;border-radius:var(--radius);padding:52px 24px;margin:24px 0}.empty svg{width:40px;height:40px;margin-bottom:16px;color:var(--gold)}.empty h2{font:28px Georgia,serif}.empty p{color:var(--muted);max-width:450px;margin:0 auto 24px}.footer{border-top:1px solid var(--line);padding:24px 0;display:flex;justify-content:space-between;color:var(--muted);font-size:12px;gap:16px}.back{display:inline-block;min-height:44px;padding:8px 0;margin-bottom:22px;font-size:14px;color:var(--muted)}.product-layout,.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:36px;align-items:start}.product-story h1{overflow-wrap:anywhere}.product-story .availability{margin-bottom:32px}.prose{font-size:17px;line-height:1.8;max-width:62ch}.product-story h2{margin-top:32px}.panel{border:1px solid var(--line);border-radius:var(--radius);padding:28px;background:var(--card)}.purchase{position:sticky;top:24px}.big-price{font-size:34px}.quick-weights{display:flex;gap:8px;margin:12px 0}.quick-weights button{flex:1;border:1px solid var(--line);border-radius:8px;min-height:44px;background:var(--paper);color:var(--ink);font-size:13px}.text-link{display:block;min-height:44px;text-align:center;padding:12px 0 0;text-decoration:underline;text-underline-offset:4px;font-size:14px}.notice{padding:20px;background:var(--soft);border-radius:12px;margin:18px 0}.notice h2{font-size:21px}.notice p:last-child{margin:0}.notice.error,.errorlist,.error-text{color:var(--danger)}.errorlist{font-size:14px;padding-left:20px}.cart-row{border-bottom:1px solid var(--line);padding:24px 0}.cart-row:first-child{padding-top:0}.cart-row-head{display:flex;align-items:start;justify-content:space-between;gap:20px}.cart-row-head strong{white-space:nowrap}.cart-row h2{font:26px Georgia,serif;margin:8px 0}.quantity-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.quantity-form label{max-width:130px}.quantity-form input{margin:6px 0 0}.remove{border:0;background:none;text-decoration:underline;color:var(--muted);padding:12px;min-height:48px;font-size:13px}.total{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:8px 0 24px;font-size:18px}.total strong{font-size:28px}.checkout>p{font-size:14px;color:var(--muted)}.price-change{font-size:13px;color:var(--gold);background:#f5efdd;padding:10px;border-radius:8px}.order-summary{max-width:740px}.order-line,.order-list-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid var(--line)}.order-line small,.order-list-row small{display:block;color:var(--muted);font-size:13px}.order-summary .total{margin-top:26px}.contact-panel{max-width:560px;margin-top:32px}.contact-leaf{width:54px;height:54px;margin-bottom:24px;color:var(--gold)}.network-status{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);width:min(90%,520px);z-index:30;padding:18px 24px;border:1px solid #d9b3a7;border-radius:12px;background:#fff7ef;color:var(--danger)}[hidden]{display:none!important}.htmx-request button[type=submit]{opacity:.65;pointer-events:none}
@media(max-width:1180px){.tea-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:210px;padding:32px 18px}.workspace{margin-left:210px;padding:0 28px}.filter-row{grid-template-columns:1fr 1fr}.product-layout,.cart-layout{grid-template-columns:minmax(0,1fr) 300px;gap:24px}}
@media(max-width:850px){.sidebar{position:static;width:auto;padding:0;border:0}.brand,.sidebar-note{display:none}.navigation{position:fixed;z-index:10;bottom:0;left:0;right:0;margin:0;display:flex;justify-content:space-around;gap:0;background:var(--card);border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom))}.navigation a{flex:1;flex-direction:column;gap:5px;padding:8px 2px;min-height:58px;font-size:10px;border-radius:9px}.navigation a[aria-current]{background:var(--soft);color:var(--ink)}.navigation svg{width:20px;height:20px}.workspace{margin:0;padding:0 24px}.topline{height:74px}.mobile-brand{display:block;font:20px Georgia,serif}.top-caption{display:none}main{padding-top:30px}.footer{padding-bottom:100px}.product-layout,.cart-layout{grid-template-columns:1fr}.purchase{position:static}.network-status{bottom:90px}.page-heading{margin-bottom:24px}}
@media(max-width:520px){.workspace{padding:0 18px}.topline{font-size:11px;gap:14px}.mobile-brand{font-size:18px}.stamp{width:90px;height:80px;font-size:12px;gap:5px}.stamp svg{width:23px}.page-heading h1{font-size:38px}.page-heading .muted{max-width:220px}.eyebrow{letter-spacing:1.3px;font-size:9px}.filters{padding:16px}.filter-row{gap:12px}.filter-row label{font-size:11px}.filter-row select{font-size:13px;padding:10px 8px}.section-heading{align-items:start}.section-heading h2{font-size:20px}.section-heading p{max-width:120px;font-size:11px;text-align:right}.tea-grid{grid-template-columns:1fr}.tea-card{min-height:218px;padding:22px}.card-top{margin-bottom:14px}.tea-card h3{font-size:28px}.origin{margin-bottom:20px}.panel{padding:22px}.footer span{display:none}.cart-row h2{font-size:24px}.quantity-form{gap:8px}.quantity-form label{max-width:110px}.notice{padding:16px}.navigation a{font-size:9px}.badge{margin-left:3px}.button{font-size:14px}.prose{font-size:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}button:active,.button:active{transform:none}}

.mark-filters{border-top:1px solid var(--line);margin-top:4px}.mark-filters summary{cursor:pointer;padding:12px 0;font-size:13px;min-height:44px}.mark-filters>div{display:flex;flex-wrap:wrap;gap:8px 24px}.mark-filters .checkbox{margin:0}

:focus-visible{scroll-margin-block:100px}.category{font-size:11px}@media(max-width:520px){.navigation a{font-size:11px}.eyebrow{font-size:10px}}

.diary-form{max-width:720px}.diary-field{margin:22px 0}.diary-field textarea{display:block;width:100%;resize:vertical;min-height:120px;border:1px solid var(--line);border-radius:8px;padding:12px;font:inherit;color:var(--ink);background:var(--card)}.diary-field .muted{font-size:13px;margin-top:6px}.diary-field input[type=checkbox]{width:20px;height:20px;min-height:20px;margin:0 10px 0 0}.diary-field #id_codes label{display:flex;align-items:center;min-height:48px}.diary-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:20px 0}.diary-actions .back{margin:0}.diary-marks{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}.diary-marks span{background:var(--soft);padding:8px 14px;border-radius:24px}.diary-note{margin:24px 0 36px}.tasting-entry{margin:18px 0;max-width:820px}.tasting-entry h3,.diary-form h1{overflow-wrap:anywhere}.diary-note .prose,.tasting-entry .prose{overflow-wrap:anywhere;white-space:normal}.brewing-details{display:flex;gap:16px 30px;flex-wrap:wrap}.brewing-details div{max-width:100%;overflow-wrap:anywhere}.brewing-details dt{font-size:12px;color:var(--muted)}.brewing-details dd{margin:4px 0}.diary-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.diary-counters>div{padding:18px 10px;background:var(--soft);border-radius:12px}.diary-counters strong{display:block;font:32px Georgia,serif}.diary-counters span{font-size:13px;overflow-wrap:anywhere}.rating-chart{display:flex;gap:6px;align-items:end;max-width:700px;height:185px;padding:12px 0;margin:20px 0}.rating-chart>div{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px}.rating-chart i{display:block;width:100%;max-width:32px;background:#426448;border-radius:4px 4px 0 0}.rating-chart small{font-size:11px}.rating-table{border-collapse:collapse;max-width:500px;width:100%;margin:16px 0}.rating-table th,.rating-table td{text-align:left;padding:8px;border-bottom:1px solid var(--line)}details summary{min-height:44px;padding:12px 0;cursor:pointer}@media(max-width:520px){.diary-counters{gap:6px}.diary-counters span{font-size:11px}.rating-chart{gap:4px}}

.staff-history{margin-top:36px}.staff-history details{margin:14px 0}.staff-history-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.staff-history p,.staff-delivery p{overflow-wrap:anywhere}.staff-delivery{padding:18px 0;border-bottom:1px solid var(--line)}.staff-delivery p{margin:6px 0;font-size:14px}@media(max-width:650px){.staff-history-columns{grid-template-columns:1fr}.staff-history-columns h3{font-size:22px}}

.sale-row{border:1px solid var(--line);border-radius:12px;padding:20px;margin:24px 0;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sale-row legend{padding:0 8px;font-weight:600}.sale-row>div:first-of-type{grid-column:1/-1}.sale-row input[type=checkbox],.diary-field input[type=checkbox]{width:22px;height:22px;min-height:22px}.sale-row label{display:block;margin-bottom:6px}@media(max-width:600px){.sale-row{grid-template-columns:1fr;padding:16px}}

.order-summary{overflow-wrap:anywhere}

.catalog-editor textarea{display:block;width:100%;max-width:100%;min-height:100px;resize:vertical;font:inherit;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink)}.catalog-editor textarea:focus-visible{outline:3px solid var(--gold);outline-offset:4px}.catalog-editor label{display:block;margin-bottom:6px}.catalog-editor input[type=checkbox]{width:22px;height:22px;min-height:22px}.catalog-editor .helptext{display:block;font-size:13px;color:var(--muted)}

/* Local responsive tea photography: retain the whole image, including its edges. */
.tea-photo-link{display:block;margin:0 0 20px;border-radius:12px;overflow:hidden;background:#fff}.tea-photo{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}.product-photo{margin:0 0 28px;max-width:100%}.product-photo img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;background:#fff;border-radius:16px}.product-photo figcaption{color:var(--muted);font-size:12px;line-height:1.5;margin-top:9px}

/* Catalog, diary and staff usability pass. */
button,.button,input,select{min-height:44px}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}
.diary-actions,.filter-row,.quick-weights{gap:12px}.diary-actions{margin:20px 0;flex-wrap:wrap}.back{display:inline-block;margin:12px 0 20px}.text-link{display:inline-block;margin-top:16px}.catalog-editor p{margin:0 0 22px}.catalog-editor label{display:block;margin-bottom:8px}.helptext{display:block;margin-top:8px;line-height:1.5;color:var(--muted)}
.tea-photo-link,.product-photo img{aspect-ratio:4/3;background:white}.tea-photo,.product-photo img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}.product-photo img{max-height:none}.card-description{color:var(--muted);font-size:14px;line-height:1.6;min-height:3em}.tea-card .card-bottom{margin-top:20px}
.inline-marks{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.inline-marks button{padding:8px 12px;border-radius:20px;border:1px solid #d8ddce;background:#fcfaf4;color:#39452d;font-size:12px}.inline-marks button:hover,.inline-marks button[aria-pressed=true]{background:#405636;color:#fff;border-color:#405636}.inline-marks .mark-status{width:100%;font-size:12px;color:var(--muted)}.mark-status:empty{display:none}.personal-tea{margin:16px 0}.community-score{font-size:13px}
.quantity-control{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:10px;align-items:center;margin:12px 0}.quantity-control button{height:48px;border-radius:10px;border:1px solid #b9c4ac;background:#f3f3e9;font-size:25px;color:#30432c}.quantity-control input{text-align:center;margin:0;width:100%}
.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px}.admin-grid a{text-decoration:none;color:inherit}.admin-grid a:hover{border-color:#748b61}.editor-photo{display:block;width:240px;height:180px;object-fit:contain;background:white;margin:20px 0;border-radius:12px}
.diary-tea-summary{display:flex;gap:20px;align-items:center;margin:20px 0}.diary-tea-summary img{width:160px;height:120px;object-fit:contain;background:white;border-radius:12px}.diary-tea-summary p{flex:1;line-height:1.6;color:var(--muted)}
.rating-picker{border:0;padding:0;margin:0}.stars{display:flex;gap:4px;margin:10px 0}.stars button{font-size:38px;padding:0 4px;border:0;background:linear-gradient(90deg,#a67624 var(--star-fill,0%),#d9d8ca var(--star-fill,0%));background-clip:text;-webkit-background-clip:text;color:transparent}.stars button:hover{filter:brightness(.8)}.rating-picker input[type=range]{width:100%;accent-color:#526b40}.rating-picker .text-link{border:0;background:transparent;color:#405636;padding:0;text-decoration:underline}
[data-tea-picker]{position:relative}[data-tea-picker] [role=listbox]{position:absolute;z-index:5;top:78px;left:0;right:0;max-height:280px;overflow:auto;background:#fffdf6;border:1px solid #aab99c;border-radius:12px;box-shadow:0 8px 24px #24331c22}[role=listbox] button{display:block;text-align:left;width:100%;padding:12px;border:0;border-bottom:1px solid #ebece5;background:transparent;color:#263920;font-size:15px}[role=listbox] button:hover,[role=listbox] button.selected{background:#e7eddf}[data-native-picker][hidden]{display:none}
@media(max-width:800px){.navigation:has(.admin-nav){grid-template-columns:repeat(6,minmax(0,1fr))}.navigation .admin-nav span{font-size:9px}.navigation a{min-width:0}.diary-tea-summary{gap:12px;align-items:flex-start}.diary-tea-summary img{width:110px;height:90px}.diary-tea-summary p{font-size:13px;margin:0}.purchase{margin-top:20px}.filter-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.filter-row label{min-width:0}.stars button{font-size:36px}.tea-card{padding:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.product-intro{grid-column:1;grid-row:1;min-width:0}.product-story{grid-column:1;grid-row:2;min-width:0}.purchase{grid-column:2;grid-row:1 / span 2}.product-layout{row-gap:24px}.card-mark-details summary{font-size:13px;padding:8px 0;min-height:40px}.tea-card .personal-tea{margin:10px 0}.tea-card .personal-tea>p{margin-bottom:2px}.tea-card .card-description{margin:12px 0}.comparable-price{font-size:12px;margin:6px 0}.tea-card .full{margin-top:12px}.card-mark-details[open]{margin-bottom:14px}
@media(max-width:850px){.product-intro,.product-story,.purchase{grid-column:auto;grid-row:auto}.purchase{margin-top:0}.product-layout{display:flex;flex-direction:column}.product-layout>*{width:100%}.product-intro .product-photo{margin-bottom:16px}.product-intro .product-photo img{max-height:290px}.product-intro h1{font-size:34px}}

.marks-help{width:100%;font-size:11px;color:var(--muted);line-height:1.5}.staff-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.filters{margin-bottom:24px}

.product-intro h1{margin-bottom:20px}.product-intro .eyebrow{margin-bottom:10px}
