/* Gleam & Sip brand system (matches gleamandsip.com): warm paper surfaces,
   matcha greens, seal red, Spectral display over Hanken Grotesk, sharp 4px
   cards, pill buttons. --slate is the brand ink used for dark surfaces. */
:root {
  color-scheme: light;
  --paper: #f6f1e6;
  --paper-2: #e8e1d0;
  --card: #fbf7ee;
  --white: #fffcf6;
  --ink: #221f18;
  --muted: #6e6750;
  --slate: #221f18;
  --slate-2: #45412f;
  --accent: #6b8040;
  --accent-dark: #4a5a2e;
  --accent-soft: #dee3c5;
  --line: rgba(42, 39, 31, .16);
  --danger: #a23b2a;
  --radius-sm: 4px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(26, 24, 19, .04), 0 10px 30px rgba(26, 24, 19, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font: 16px/1.55 "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--slate); text-underline-offset: 3px; }
img { max-width: 100%; }
.shell { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }

.utility-bar { background: var(--slate); color: var(--paper-2); font-size: .8rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 7px; }
.utility-bar nav { display: flex; gap: 4px; }
.utility-link { border: 0; background: transparent; color: var(--paper-2); padding: 4px 10px; border-radius: 7px; font-size: .8rem; font-weight: 640; cursor: pointer; }
.utility-link:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.utility-cta { background: var(--accent-soft); color: var(--accent-dark); }
.utility-account-label { padding: 4px 10px; color: var(--accent-soft); font-weight: 650; }
.utility-cta:hover { background: var(--white); color: var(--accent-dark); }
.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--line); background: rgba(246, 241, 230, .94); backdrop-filter: blur(18px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 0; background: transparent; color: var(--ink); font-family: "Spectral", Georgia, serif; font-weight: 400; font-size: 1.25rem; letter-spacing: .04em; white-space: nowrap; }
.brand em, .footer-brand em { font-family: "Spectral", Georgia, serif; font-style: italic; color: var(--accent); }
.brand img { width: 36px; height: 36px; }
nav { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
nav button, .text-button { border: 0; border-radius: var(--radius-sm); padding: 10px 12px; background: transparent; color: var(--slate); }
nav button:hover, nav button:focus-visible, .text-button:hover, .text-button:focus-visible { background: var(--paper-2); }
.account-button { margin-left: 6px; border: 1px solid var(--slate); }

.primary, .secondary { min-height: 44px; border-radius: 999px; padding: 11px 19px; font-weight: 650; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.primary { border: 1px solid var(--accent); background: var(--accent); color: var(--card); }
.primary:hover { transform: translateY(-1px); background: var(--accent-dark); border-color: var(--accent-dark); }
.secondary { border: 1px solid rgba(42, 39, 31, .28); background: transparent; color: var(--ink); }
.secondary:hover { border-color: var(--slate); background: rgba(255,255,255,.55); }
.primary:active, .secondary:active { transform: translateY(1px); }
.primary:disabled, .secondary:disabled { cursor: wait; opacity: .52; transform: none; }
h1, h2, h3 { text-wrap: balance; }
.product-card { transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(26, 24, 19, .13); }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 60; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--slate); color: var(--white); text-decoration: none; transition: top .15s ease; }
.skip-link:focus-visible { top: 10px; }
@media (prefers-reduced-motion: reduce) { .product-card, .primary, .secondary, .skip-link { transition: none; } }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(107, 128, 64, .45); outline-offset: 2px; }

.hero { min-height: min(790px, calc(100dvh - 72px)); display: grid; grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr); align-items: center; gap: clamp(38px, 5vw, 72px); padding-block: clamp(52px, 8vw, 92px); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Spectral", Georgia, "Times New Roman", serif; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h3 { font-weight: 500; }
h1 { max-width: 720px; margin: 0; font-size: clamp(3.1rem, 6.2vw, 6rem); font-weight: 300; line-height: .98; letter-spacing: -.04em; }
.hero h1 { font-size: clamp(3.15rem, 5vw, 4.8rem); line-height: .97; }
.hero-copy > p:not(.eyebrow) { max-width: 590px; margin: 25px 0; color: var(--muted); font-size: clamp(1.06rem, 1.8vw, 1.25rem); }
.hero-actions, .portal-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.hero-photo { min-width: 0; margin: 0; align-self: stretch; border-radius: var(--radius-lg); overflow: hidden; background: #d9dedb; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; min-height: 540px; display: block; object-fit: cover; object-position: 61% center; }

.buyer-benefits { display: grid; grid-template-columns: 1.1fr 1fr 1.15fr; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.buyer-benefits p { margin: 0; padding: 2px 28px; color: var(--slate); font-weight: 720; }
.buyer-benefits p:first-child { padding-left: 0; }
.buyer-benefits p + p { border-left: 1px solid var(--line); }

.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-dark); }
.card-icon svg { width: 28px; height: 28px; }
.card-icon.icon-small { width: 40px; height: 40px; margin-bottom: 12px; background: transparent; color: var(--accent); }
.card-icon.icon-small svg { width: 26px; height: 26px; }
.process .card-icon { margin-bottom: 14px; }
.sample-banner { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-block: 34px 10px; padding: clamp(26px, 4vw, 40px); border-radius: var(--radius); background: var(--accent-soft); }
.sample-banner h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 400; letter-spacing: -.02em; }
.sample-banner p:not(.eyebrow) { max-width: 640px; margin: 0; color: var(--slate-2); }
.sample-banner .primary { flex-shrink: 0; }
.value-props { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 10px 24px; }
.value-card { padding: 26px 28px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.value-card h3 { margin: 0; font-size: 1.2rem; }
.value-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.value-card .text-button { align-self: flex-start; margin-top: auto; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; }
.expertise-grid article { padding: 22px 0 26px; border-top: 1px solid var(--slate); }
.expertise-grid h3 { margin: 0 0 8px; font-size: 1.08rem; }
.expertise-grid p { margin: 0; color: var(--muted); font-size: .92rem; }

.food-principles { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 8vw, 110px); padding-block: clamp(70px, 9vw, 112px) 10px; }
.food-principles h2 { max-width: 620px; margin: 0; font-size: clamp(2.6rem, 4.7vw, 4.8rem); font-weight: 350; line-height: 1; letter-spacing: -.035em; }
.principle-copy { max-width: 610px; padding-top: 28px; }
.principle-copy p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.principle-copy p + p { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }

.section { padding-block: clamp(74px, 10vw, 124px); }
.section-heading { max-width: 790px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: clamp(2.55rem, 5vw, 5rem); font-weight: 350; line-height: 1; letter-spacing: -.035em; }
.section-heading > p:not(.eyebrow) { max-width: 620px; margin: 19px 0 0; color: var(--muted); font-size: 1.05rem; }
.compact-heading { max-width: 720px; }

.product-grid { display: grid; gap: 54px; }
.product-category .category-title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--slate); font-size: 1.5rem; letter-spacing: -.02em; }
.category-title .sku-count { color: var(--muted); font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; font-size: .78rem; font-weight: 760; letter-spacing: .09em; text-transform: uppercase; }
.steps { counter-reset: step; }
.process.steps article { position: relative; counter-increment: step; padding-top: 62px; }
.process.steps article::before { content: "Step " counter(step); position: absolute; top: 26px; left: 30px; color: var(--accent); font-size: .74rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card { min-height: 390px; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; background: #dfe4df; color: var(--slate); font-family: "Iowan Old Style", Georgia, serif; font-size: 1.85rem; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.product-body h3 { margin: 0; font-size: 1.28rem; }
.product-body p { margin: 9px 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { border-radius: 7px; padding: 5px 8px; background: var(--accent-soft); color: var(--accent-dark); font-size: .74rem; font-weight: 760; }
.product-meta { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .85rem; }
.empty { grid-column: 1 / -1; padding: 44px; border: 1px dashed #aeb7b2; border-radius: var(--radius); color: var(--muted); text-align: center; }

.faq-list { max-width: 780px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0; background: transparent; border: 0; color: var(--ink); font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.55rem; font-weight: 650; line-height: 1.2; text-align: left; cursor: pointer; }
.faq-item button:focus-visible { outline: 3px solid rgba(104, 123, 52, .36); outline-offset: -6px; border-radius: 4px; }
.faq-item button[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.faq-item button span:first-child { margin: 0; padding: 0; }
.chevron { display: inline-block; width: 12px; height: 12px; flex-shrink: 0; margin-top: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23657078' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .2s ease; }
.faq-answer { max-width: 780px; padding: 0 0 26px; overflow: hidden; transition: max-height .25s ease, opacity .2s ease; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.process article { min-height: 220px; padding: 30px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.process h3 { margin: 0; font-size: 1.35rem; }
.process p { color: var(--muted); }

.inquiry-wrap { display: grid; grid-template-columns: .75fr 1.25fr; overflow: hidden; border-radius: var(--radius-lg); background: var(--slate); box-shadow: var(--shadow); }
.inquiry-intro { padding: clamp(34px, 5vw, 58px); color: var(--white); }
.inquiry-intro .eyebrow { color: var(--accent-soft); }
.inquiry-intro h2 { margin: 8px 0 18px; font-size: clamp(2.5rem, 4.7vw, 4.7rem); font-weight: 350; line-height: 1; letter-spacing: -.035em; }
.inquiry-intro p { color: var(--paper-2); }
.inquiry-form, .portal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(28px, 4.5vw, 50px); background: var(--card); }
.field { min-width: 0; display: grid; gap: 7px; }
.field.full, .product-picker, .portal-form > .form-status, .portal-form > .form-actions { grid-column: 1 / -1; }
.field label, .product-picker legend, .login-card label { color: var(--ink); font-size: .81rem; font-weight: 780; }
.field input, .field textarea, .field select, .login-card input { width: 100%; border: 1px solid #bcc5c3; border-radius: var(--radius-sm); padding: 12px 13px; background: var(--white); color: var(--ink); }
.field textarea { min-height: 102px; resize: vertical; }
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: start; color: var(--muted); font-size: .86rem; }
.check input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-status { min-height: 24px; color: var(--slate-2); font-weight: 720; }

.private-view { min-height: calc(100dvh - 72px); padding-block: clamp(42px, 7vw, 84px) 110px; }
.login-layout { min-height: 620px; display: grid; grid-template-columns: 1fr minmax(380px, .72fr); align-items: center; gap: clamp(50px, 10vw, 140px); }
.login-copy h1 { max-width: 650px; }
.login-copy > p:not(.eyebrow) { max-width: 570px; color: var(--muted); font-size: 1.08rem; }
.login-card { width: min(520px, 100%); margin: 70px auto; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.login-layout .login-card { margin: 0; }
.login-card h2 { margin: 0 0 8px; font-family: "Iowan Old Style", Georgia, serif; font-size: 2rem; }
.login-card form { display: grid; gap: 9px; margin-top: 24px; }

.portal-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.portal-head h1 { font-size: clamp(2.75rem, 5vw, 5rem); }
.account-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.kpi { min-height: 118px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.52); }
.kpi span { display: block; color: var(--muted); font-size: .8rem; }
.kpi strong { display: block; margin-top: 9px; font-family: "Iowan Old Style", Georgia, serif; font-size: 1.85rem; font-weight: 650; }
.portal-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; align-items: start; }
.portal-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.baskets-panel, .orders-panel { grid-column: 1; }
.account-panel, .addresses-panel { grid-column: 2; }
.account-panel { grid-row: 1; }
.addresses-panel { grid-row: 2 / span 2; }
.panel-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-family: inherit; font-size: 1.1rem; letter-spacing: -.015em; }
.panel-kicker { margin: 0 0 2px; color: var(--muted); font-size: .72rem; font-weight: 780; text-transform: uppercase; letter-spacing: .08em; }
.portal-form { border-bottom: 1px solid var(--line); padding: 21px; }
.product-picker { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.product-picker legend { padding: 0 7px; }
.product-choice { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid #e8ebe8; }
.product-choice:last-child { border-bottom: 0; }
.product-choice small { display: block; color: var(--muted); }
.portal-list, .rows { max-height: 590px; overflow: auto; }
.portal-item, .row { display: grid; gap: 8px; padding: 18px 21px; border-bottom: 1px solid #e4e8e5; }
.portal-item:last-child, .row:last-child { border-bottom: 0; }
.portal-item-head, .row-top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.portal-item h3, .portal-item p { margin: 0; }
.portal-item small, .row small { color: var(--muted); }
.item-meta { display: flex; flex-wrap: wrap; gap: 7px 15px; color: var(--muted); font-size: .82rem; }
.status-pill { border-radius: 7px; padding: 4px 7px; background: var(--accent-soft); color: var(--accent-dark); font-size: .7rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.row-actions, .order-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.row-actions button, .order-actions button, .order-actions select, .order-actions input { min-height: 36px; border: 1px solid #b9c2c0; border-radius: 8px; padding: 7px 9px; background: var(--white); color: var(--ink); font-size: .78rem; }
.order-actions input { width: 145px; }
.account-summary { display: grid; gap: 16px; padding: 22px; }
.account-summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; }
.account-summary dt { color: var(--muted); }
.account-summary dd { margin: 0; font-weight: 760; text-align: right; }
.fine-print { margin: 0; padding: 0 22px 22px; color: var(--muted); font-size: .8rem; }
.staff-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.email-studio { grid-column: 1 / -1; }
.email-studio form, .email-studio .field { margin-top: 10px; }
.email-body-input { min-height: 180px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .82rem; }
.email-studio .tags { margin-top: 8px; }
.muted { color: var(--muted); }
.danger { color: var(--danger); }
.hidden { display: none !important; }

footer { border-top: 1px solid var(--line); padding-block: 40px 48px; color: var(--muted); font-size: .84rem; }
.footer-columns { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 34px; }
.footer-brand { display: block; margin-bottom: 8px; color: var(--ink); font-family: "Spectral", Georgia, serif; font-weight: 400; font-size: 1.15rem; letter-spacing: .04em; }
.brand-suffix { color: var(--muted); font-size: .82em; letter-spacing: .12em; text-transform: uppercase; margin-left: 2px; }
.footer-col h3 { margin: 0 0 10px; font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }
.footer-col p { margin: 0; max-width: 380px; }
.footer-link { display: block; border: 0; background: transparent; padding: 4px 0; color: var(--muted); font-size: .84rem; text-align: left; cursor: pointer; }
.footer-link:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .hero-photo { animation: enter .55s ease both; }
  .hero-photo { animation-delay: .08s; }
  @keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 980px) {
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-photo img { min-height: 420px; }
  .buyer-benefits, .process { grid-template-columns: 1fr; }
  .buyer-benefits p { padding: 14px 0; }
  .buyer-benefits p + p { border-left: 0; border-top: 1px solid var(--line); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-props, .expertise-grid { grid-template-columns: 1fr 1fr; }
  .footer-columns { grid-template-columns: 1fr; gap: 22px; }
  .food-principles, .inquiry-wrap, .login-layout, .portal-grid, .staff-grid { grid-template-columns: 1fr; }
  .principle-copy { padding-top: 0; }
  .baskets-panel, .orders-panel, .account-panel, .addresses-panel { grid-column: 1; grid-row: auto; }
  .account-kpis { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1220px); }
  .header-inner { min-height: 66px; }
  nav button:not(.catalog-button):not(.account-button) { display: none; }
  .account-button { margin-left: 0; }
  .hero { padding-block: 46px 58px; gap: 32px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); }
  .hero-photo img { min-height: 330px; }
.section { padding-block: 70px; }
   .category-grid { grid-template-columns: 1fr; }
  .value-props, .expertise-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 340px; }
  .inquiry-form, .portal-form { grid-template-columns: 1fr; }
  .field.full, .product-picker, .portal-form > .form-status, .portal-form > .form-actions, .check { grid-column: 1; }
  .portal-head { display: block; }
  .portal-actions { margin-top: 16px; }
  .account-kpis { grid-template-columns: 1fr 1fr; }
  .product-choice { grid-template-columns: 1fr 90px; }
  .portal-item-head, .row-top { display: grid; }
  .order-actions { display: grid; grid-template-columns: 1fr; }
  .order-actions input, .order-actions select { width: 100%; }
  footer .shell { display: grid; }
}

@media (max-width: 430px) {
  .brand span { display: none; }
  .account-kpis { grid-template-columns: 1fr; }
  .hero-actions, .portal-actions, .form-actions { display: grid; }
  .primary, .secondary { width: 100%; }
  .login-card { padding: 25px; }
}
