:root {
  --ink: #17201b;
  --forest: #193629;
  --cream: #f4efdf;
  --paper: #fbfaf5;
  --orange: #e66f42;
  --lime: #c9d879;
  --line: rgba(23, 32, 27, .18);
  --muted: #667068;
  --shadow: 0 24px 70px rgba(18, 31, 24, .16);
  --max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
body.is-locked { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.announcement { min-height: 31px; padding: 6px 4vw; display: flex; justify-content: space-between; gap: 20px; color: var(--cream); background: var(--forest); font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.site-header { position: sticky; z-index: 20; top: 0; min-height: 78px; padding: 0 4vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); background: rgba(251, 250, 245, .93); backdrop-filter: blur(14px); }
.wordmark { width: fit-content; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; line-height: .95; letter-spacing: .08em; text-transform: uppercase; }
.wordmark-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--cream); background: var(--forest); border-radius: 50%; font-size: 12px; letter-spacing: -.04em; }
.desktop-nav { display: flex; gap: 34px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.desktop-nav a, footer nav a { position: relative; }
.desktop-nav a::after, footer nav a::after { position: absolute; right: 0; bottom: -4px; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.desktop-nav a:hover::after, footer nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 24px; }
.text-button, .cart-button, .filter, .auth-tabs button, .workspace-tabs button { padding: 0; border: 0; background: none; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.cart-button { display: flex; align-items: center; gap: 9px; }
.cart-button span { min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; color: var(--cream); background: var(--forest); border-radius: 50%; font-size: 10px; }

.hero { min-height: calc(100vh - 109px); max-width: var(--max); margin: auto; padding: 4vw; display: grid; grid-template-columns: .95fr 1.05fr; gap: 5vw; align-items: center; }
.hero-copy { padding: 50px 0; }
.eyebrow { margin: 0 0 24px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
h1, h2, .manifesto-copy { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.055em; line-height: .91; }
h1 { max-width: 750px; font-size: clamp(68px, 9.2vw, 148px); }
h2 { font-size: clamp(46px, 5.7vw, 88px); }
.hero-intro { max-width: 510px; margin: 36px 0 34px; color: #4d574f; font-size: clamp(16px, 1.45vw, 21px); }
.primary-link { padding-bottom: 7px; display: inline-flex; gap: 26px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.primary-link span { transition: transform .2s; }
.primary-link:hover span { transform: translateX(5px); }

.hero-art { position: relative; min-height: 650px; overflow: hidden; background: var(--forest); isolation: isolate; }
.hero-art::before { position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: linear-gradient(30deg, transparent 48%, rgba(255,255,255,.08) 49%, rgba(255,255,255,.08) 51%, transparent 52%); background-size: 40px 40px; content: ""; }
.art-card { position: absolute; width: 41%; aspect-ratio: .72; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); font-family: Georgia, serif; font-size: clamp(31px, 3vw, 54px); line-height: .87; text-transform: uppercase; }
.art-card b { font: 800 12px Arial, sans-serif; letter-spacing: .14em; }
.art-card-one { top: 11%; left: 10%; color: var(--forest); background: var(--lime); transform: rotate(-7deg); }
.art-card-two { right: 8%; bottom: 9%; color: var(--cream); background: var(--orange); transform: rotate(9deg); }
.art-card-two::after { position: absolute; inset: 18%; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; content: ""; }
.art-seal { position: absolute; z-index: 3; top: 45%; left: 46%; width: 135px; height: 135px; display: grid; place-items: center; color: var(--forest); background: var(--cream); border: 10px double var(--forest); border-radius: 50%; text-align: center; font-size: 10px; font-weight: 900; letter-spacing: .14em; transform: rotate(-8deg); }

.shop-section, .workspace { padding: 110px 4vw 130px; border-top: 1px solid var(--line); }
.section-heading { max-width: var(--max); margin: 0 auto 60px; display: flex; justify-content: space-between; gap: 50px; align-items: end; }
.section-heading > p { max-width: 340px; margin: 0 0 5px; color: var(--muted); font-size: 14px; }
.filter-row { max-width: var(--max); margin: 0 auto 35px; padding-bottom: 17px; display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.filter-row > div { display: contents; }
.filter { flex: none; color: var(--muted); }
.filter.is-active { color: var(--ink); }
.filter.is-active::before { color: var(--orange); content: "● "; }
.product-grid { max-width: var(--max); margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 54px 20px; }
.product-card { min-width: 0; }
.product-visual { position: relative; aspect-ratio: .82; margin-bottom: 18px; display: grid; place-items: center; overflow: hidden; background: #e5e1d4; }
.product-visual::before { width: 62%; height: 58%; background: var(--product-color, var(--forest)); border-radius: 45% 45% 16% 16%; box-shadow: inset 0 -22px 50px rgba(0,0,0,.12); content: ""; clip-path: polygon(27% 0, 39% 8%, 61% 8%, 73% 0, 100% 17%, 88% 39%, 78% 34%, 78% 100%, 22% 100%, 22% 34%, 12% 39%, 0 17%); transition: transform .4s ease; }
.product-card:nth-child(3n+2) .product-visual { background: #d8dfcf; }
.product-card:nth-child(3n) .product-visual { background: #ebdcd2; }
.product-card:hover .product-visual::before { transform: scale(1.04) rotate(-1deg); }
.product-monogram { position: absolute; width: 76px; height: 76px; display: grid; place-items: center; color: var(--cream); border: 2px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-size: 24px; }
.stock-badge { position: absolute; top: 13px; left: 13px; padding: 8px 10px; background: var(--paper); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-meta { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; }
.product-meta h3 { margin: 0; font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.product-meta .price { font-size: 13px; font-weight: 700; }
.product-meta .maker, .product-meta .size { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.product-actions { grid-column: 1 / -1; margin-top: 9px; display: flex; gap: 8px; }
.primary-button, .secondary-button, .danger-button { min-height: 48px; padding: 13px 18px; border: 1px solid var(--forest); cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; transition: .2s; }
.primary-button { color: var(--cream); background: var(--forest); }
.primary-button:hover { color: white; background: #28533f; }
.secondary-button { background: transparent; }
.secondary-button:hover { background: var(--cream); }
.danger-button { color: #8d2e23; border-color: #8d2e23; background: transparent; }
button:disabled { cursor: not-allowed; opacity: .45; }
.product-actions .primary-button { width: 100%; }

.breweries-section { min-height: 720px; display: grid; grid-template-columns: 1.15fr .85fr; color: var(--cream); background: var(--forest); }
.editorial-panel { padding: 9vw 7vw; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(120deg, rgba(0,0,0,.15), transparent), repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 28px); }
.editorial-panel .eyebrow { color: var(--lime); }
.editorial-panel h2 { max-width: 780px; }
.editorial-panel > p:last-child { max-width: 510px; margin: 36px 0 0; color: rgba(244,239,223,.7); font-size: 17px; }
.brewery-list { border-left: 1px solid rgba(255,255,255,.18); }
.brewery-row { min-height: 25%; padding: 30px 3vw; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.18); }
.brewery-number { color: var(--lime); font-size: 10px; letter-spacing: .14em; }
.brewery-row h3 { margin: 0 0 7px; font-family: Georgia, serif; font-size: clamp(23px, 2.3vw, 38px); font-weight: 400; }
.brewery-row p { margin: 0; color: rgba(244,239,223,.55); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.manifesto { padding: 140px 4vw; }
.manifesto > .eyebrow, .manifesto-copy, .principles { max-width: var(--max); margin-right: auto; margin-left: auto; }
.manifesto-copy { max-width: var(--max); font-size: clamp(54px, 8vw, 120px); }
.principles { margin-top: 100px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principles article { padding: 32px 8% 20px 0; }
.principles span { color: var(--orange); font-size: 10px; font-weight: 800; }
.principles h3 { margin: 50px 0 13px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.principles p { max-width: 370px; color: var(--muted); }

.workspace { background: #eeeade; }
.workspace-heading { align-items: center; }
.workspace-tabs { max-width: var(--max); margin: 0 auto 30px; display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.workspace-tabs button { padding: 0 0 14px; color: var(--muted); }
.workspace-tabs button.is-active { color: var(--ink); border-bottom: 2px solid var(--orange); }
#workspaceContent { max-width: var(--max); margin: auto; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.data-card, .form-card, .empty-state { padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.data-card h3, .form-card h3 { margin: 0 0 18px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.data-card p { margin: 6px 0; }
.data-card .meta, .order-item .meta { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.status { width: fit-content; margin-bottom: 18px; padding: 6px 9px; color: var(--forest); background: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.order-item { padding: 14px 0; border-top: 1px solid var(--line); }
.inline-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.inline-actions button { min-height: 38px; padding: 8px 11px; }

.stacked-form { display: grid; gap: 16px; }
.stacked-form label { display: grid; gap: 7px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stacked-form label span { color: var(--muted); font-weight: 400; text-transform: none; }
.stacked-form input, .stacked-form select { width: 100%; min-height: 48px; padding: 11px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 0; background: white; }
.stacked-form p { margin: 0; color: var(--muted); font-size: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

footer { padding: 80px 4vw 35px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 50px; color: var(--cream); background: #0e1d16; }
.footer-mark .wordmark-mark { color: var(--forest); background: var(--lime); }
footer > p { margin: 0; color: rgba(244,239,223,.62); }
footer nav { display: flex; justify-content: flex-end; gap: 24px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-small { grid-column: 1 / -1; margin-top: 70px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.scrim { position: fixed; z-index: 40; inset: 0; background: rgba(6,15,10,.62); backdrop-filter: blur(2px); }
.drawer { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(480px, 100%); display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); box-shadow: var(--shadow); transform: translateX(105%); transition: transform .32s ease; }
.drawer.is-open { transform: none; }
.drawer-header { padding: 25px 27px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-header h2 { font-size: 37px; }
.icon-button { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 27px; line-height: 1; }
.drawer-body { padding: 25px 27px; overflow-y: auto; }
.cart-item { padding: 17px 0; display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 72px; height: 84px; display: grid; place-items: center; color: var(--cream); background: var(--forest); font-family: Georgia, serif; font-size: 18px; }
.cart-item h3 { margin: 0 0 5px; font-family: Georgia, serif; font-size: 18px; font-weight: 400; }
.cart-item p { margin: 0; color: var(--muted); font-size: 11px; }
.cart-item-actions { display: flex; align-items: center; gap: 9px; }
.quantity-button { width: 28px; height: 28px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.remove-button { margin-top: 8px; padding: 0; border: 0; color: #8d2e23; background: transparent; cursor: pointer; font-size: 10px; text-decoration: underline; }
.drawer-footer { padding: 22px 27px 28px; border-top: 1px solid var(--line); }
.cart-total { margin-bottom: 17px; display: flex; justify-content: space-between; }
.drawer-footer .primary-button { width: 100%; }
.fine-print { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
.empty-state { color: var(--muted); text-align: center; }

.auth-dialog { width: min(520px, calc(100% - 28px)); padding: 44px; border: 0; border-radius: 0; background: var(--paper); box-shadow: var(--shadow); }
.auth-dialog::backdrop { background: rgba(6,15,10,.65); backdrop-filter: blur(3px); }
.auth-dialog h2 { margin-bottom: 28px; font-size: 51px; }
.dialog-close { position: absolute; top: 18px; right: 18px; }
.auth-tabs { margin-bottom: 24px; display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 0 0 11px; color: var(--muted); }
.auth-tabs button.is-active { color: var(--ink); border-bottom: 2px solid var(--orange); }
.forgot-trigger { justify-self: center; margin-top: 2px; text-decoration: underline; }
.form-message { min-height: 20px; margin: 17px 0 0; color: #8d2e23; font-size: 13px; }
.form-message.is-success { color: #287145; }
.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: 360px; padding: 15px 18px; color: var(--cream); background: var(--forest); box-shadow: var(--shadow); font-size: 13px; }

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-art { min-height: 560px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .breweries-section { grid-template-columns: 1fr; }
  .brewery-list { border-top: 1px solid rgba(255,255,255,.18); border-left: 0; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr 1fr; }
  footer nav { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 620px) {
  .announcement span:nth-child(n+2) { display: none; }
  .announcement { justify-content: center; }
  .site-header { min-height: 68px; padding: 0 18px; }
  .header-actions { gap: 12px; }
  .wordmark > span:last-child { display: none; }
  .hero { padding: 55px 18px 38px; gap: 30px; }
  h1 { font-size: clamp(61px, 19vw, 90px); }
  h2 { font-size: 44px; }
  .hero-art { min-height: 430px; }
  .art-card { padding: 20px; }
  .art-seal { width: 96px; height: 96px; border-width: 7px; font-size: 8px; }
  .shop-section, .workspace { padding: 76px 18px 90px; }
  .section-heading { margin-bottom: 38px; display: block; }
  .section-heading > p { margin-top: 22px; }
  .product-grid { grid-template-columns: 1fr; gap: 44px; }
  .editorial-panel { padding: 90px 24px; }
  .brewery-row { padding: 25px 24px; }
  .manifesto { padding: 90px 18px; }
  .manifesto-copy { font-size: 53px; }
  .principles { margin-top: 65px; grid-template-columns: 1fr; }
  .principles article { border-bottom: 1px solid var(--line); }
  .principles h3 { margin-top: 28px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 60px 18px 28px; grid-template-columns: 1fr; }
  footer nav { grid-column: auto; flex-wrap: wrap; }
  .footer-small { grid-column: auto; }
  .auth-dialog { padding: 38px 24px 27px; }
  .auth-dialog h2 { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
