/* ============ Homokóra - design system =============
   Editorial style: oversized serif display type, thin brass rules,
   numbered sections, diagonal clip-path blocks, duotone photography.
   Palette: forest green, bone, brass. */

:root {
  --forest: #1f3a2e;
  --forest-dark: #132520;
  --bone: #f3efe3;
  --bone-dim: #e9e2cf;
  --brass: #b8893f;
  --brass-light: #d9b572;
  --ink: #16241c;
  --line: rgba(22, 36, 28, 0.16);
  --white: #fffdf8;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", "SFMono-Regular", monospace;

  --radius: 2px;
  --shadow-paper: 0 1px 2px rgba(22,36,28,.08), 0 10px 24px rgba(22,36,28,.1);
  --ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
html.no-scroll, html.no-scroll body { overflow: hidden; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--forest); margin: 0; font-weight: 600; line-height: 1.05; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--bone); padding: .6em 1em; z-index: 200; }
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.icon { width: 1.4em; height: 1.4em; stroke: currentColor; fill: none; }
.icon--sm { width: 1em; height: 1em; }

/* ============ layout helpers ============ */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.grid { display: grid; gap: 24px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 880px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.section { padding: 88px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 56px 0; } }
.eyebrow { font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--brass); display: flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); display: inline-block; }

/* ============ header ============ */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bone); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: 1180px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 30px; flex: none; color: var(--forest); }
.brand__word { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--forest); letter-spacing: .01em; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 28px; flex-wrap: wrap; }
.main-nav a { font-size: .95rem; position: relative; padding-bottom: 4px; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--brass); transition: right .25s var(--ease); }
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.main-nav a.is-active { color: var(--brass); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; color: var(--forest); }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--brass); color: var(--white); font-size: .65rem; font-family: var(--font-mono); min-width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cart-count--bump { animation: bump .35s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.nav-toggle { display: none; background: none; border: none; color: var(--forest); padding: 6px; min-width: 44px; min-height: 44px; }
@media (max-width: 880px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
.mobile-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 88vw); background: var(--forest); color: var(--bone); transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; z-index: 200; padding: 80px 28px 28px; overflow-y: auto; }
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav a { font-family: var(--font-display); font-size: 1.2rem; }
.mobile-nav a.is-active { color: var(--brass-light); }
.nav-toggle--close { position: absolute; top: 20px; right: 20px; color: var(--bone); }

/* ============ hero ticker ============ */
.hero { position: relative; padding: 64px 0 110px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); background: linear-gradient(160deg, var(--forest) 0%, var(--forest-dark) 100%); color: var(--bone); }
.hero__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero__inner > * { min-width: 0; }
@media (max-width: 880px) { .hero__inner { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--bone); }
.hero h1 em { font-style: normal; color: var(--brass-light); }
.hero p.lede { max-width: 42ch; font-size: 1.1rem; color: var(--bone-dim); }
.hero-visual { position: relative; aspect-ratio: 4/5; }
.hero-visual svg { width: 100%; height: 100%; }
.ticker { margin-top: 48px; border-top: 1px solid rgba(243,239,227,.25); border-bottom: 1px solid rgba(243,239,227,.25); overflow: hidden; padding: 14px 0; }
.ticker__track { display: flex; gap: 48px; white-space: nowrap; font-family: var(--font-mono); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-light); animation: ticker 28s linear infinite; }
.ticker__track span { flex: none; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ============ buttons ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border: 1px solid currentColor; border-radius: var(--radius); font-size: .92rem; letter-spacing: .02em; position: relative; overflow: hidden; background: transparent; min-height: 44px; transition: color .25s var(--ease), border-color .25s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: currentColor; z-index: 0; transition: left .3s var(--ease); }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn--brass { color: var(--forest); border-color: var(--brass); background: var(--brass); }
.btn--brass::before { background: var(--forest); }
.btn--brass:hover { color: var(--bone); }
.btn--outline { color: var(--forest); border-color: var(--forest); }
.btn--outline::before { background: var(--forest); }
.btn--outline:hover { color: var(--bone); }
.btn--ghost { color: var(--bone); border-color: rgba(243,239,227,.5); }
.btn--ghost::before { background: var(--bone); }
.btn--ghost:hover { color: var(--forest); }
.btn--sm { padding: .55em 1.1em; font-size: .82rem; min-height: 36px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ============ reveal / motion ============ */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in-view { opacity: 1; transform: none; }
  .reveal--1.in-view { transition-delay: .05s; }
  .reveal--2.in-view { transition-delay: .15s; }
  .reveal--3.in-view { transition-delay: .25s; }
  .reveal--4.in-view { transition-delay: .35s; }
}

/* ============ numbered sections / dividers ============ */
.section-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: end; margin-bottom: 48px; }
.section-num { font-family: var(--font-mono); font-size: .85rem; color: var(--brass); border-top: 1px solid var(--brass); padding-top: 6px; }
.divider { width: 100%; height: 36px; color: var(--brass); opacity: .7; }

/* ============ cards ============ */
.card { background: var(--white); border: 1px solid var(--line); padding: 28px; box-shadow: var(--shadow-paper); transition: transform .3s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: 1.2rem; margin-bottom: .4em; }

/* ============ product strip / grid ============ */
.product-strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; }
.product-strip .product-card { flex: 0 0 260px; scroll-snap-align: start; }
@media (min-width: 880px) { .product-strip { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; } .product-strip .product-card { flex: none; } }
.product-card { background: var(--white); border: 1px solid var(--line); overflow: hidden; position: relative; }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--bone-dim); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); filter: sepia(.15) saturate(1.05); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__body { padding: 18px 20px 20px; }
.product-card__name { font-family: var(--font-display); font-size: 1.05rem; color: var(--forest); margin-bottom: .3em; }
.product-card__price { font-family: var(--font-mono); color: var(--brass); font-size: .95rem; }
.product-card__badge { position: absolute; top: 12px; left: 12px; background: var(--forest); color: var(--bone); font-size: .68rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 5px 9px; }

/* ============ time-finder (signature feature) ============ */
.time-finder { background: var(--forest); color: var(--bone); position: relative; clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%); overflow: hidden; }
.time-finder__inner { max-width: 1180px; margin: 0 auto; padding: 96px 24px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.time-finder__inner > * { min-width: 0; }
@media (max-width: 880px) { .time-finder__inner { grid-template-columns: 1fr; } }
.time-finder h2 { color: var(--bone); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.time-finder__controls { margin-top: 28px; }
.time-finder input[type="range"] { width: 100%; accent-color: var(--brass); margin: 18px 0; }
.time-finder__readout { font-family: var(--font-mono); font-size: 2.2rem; color: var(--brass-light); }
.time-finder__result { margin-top: 20px; background: rgba(243,239,227,.08); border: 1px solid rgba(243,239,227,.25); padding: 18px 20px; display: flex; gap: 16px; align-items: center; }
.time-finder__result img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); }
.hourglass-visual { width: 100%; max-width: 220px; margin: 0 auto; }
.hourglass-visual .sand-top, .hourglass-visual .sand-bottom { transition: height 1.2s linear, y 1.2s linear; }

/* ============ page hero (inner pages) ============ */
.page-hero { background: var(--forest); color: var(--bone); padding: 72px 0 56px; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
.page-hero h1 { color: var(--bone); font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p { color: var(--bone-dim); max-width: 60ch; margin-top: .6em; }

/* ============ breadcrumbs ============ */
.breadcrumbs { font-family: var(--font-mono); font-size: .8rem; color: var(--bone-dim); display: flex; gap: 8px; margin-top: 18px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }

/* ============ prose (legal pages) ============ */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; margin-bottom: .6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; margin-bottom: .4em; color: var(--ink); }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1em 1.3em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { text-decoration: underline; text-underline-offset: 3px; color: var(--forest); }

.legal-toc { background: var(--white); border: 1px solid var(--line); padding: 20px 24px; margin-bottom: 40px; }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); color: var(--brass); margin-bottom: .6em; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }
.legal-toc a { text-decoration: none; border-bottom: 1px dotted var(--line); }

/* ============ notices ============ */
.notice { border-left: 3px solid var(--brass); background: var(--white); padding: 16px 20px; font-size: .95rem; }
.notice--warn { border-color: #a0522d; }

/* ============ forms ============ */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid > * { min-width: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-family: var(--font-mono); color: var(--forest); }
.field input, .field select, .field textarea {
  font: inherit; padding: .75em .9em; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); }
.field-error { color: #a0352f; font-size: .8rem; min-height: 1.2em; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-size: .9rem; }
.form-msg--ok { color: var(--forest); }
.form-msg--error { color: #a0352f; }
.newsletter-form .field { flex-direction: row; gap: 10px; }
.newsletter-form input { flex: 1; }

/* ============ FAQ ============ */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { font-family: var(--font-display); font-size: 1.1rem; color: var(--forest); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--brass); font-size: 1.4rem; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--ink); }

/* ============ product detail ============ */
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.product-detail > * { min-width: 0; }
@media (max-width: 880px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-detail__price { font-family: var(--font-mono); font-size: 1.6rem; color: var(--brass); margin: .4em 0; }
.product-detail__qty { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.product-detail__qty button { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--white); font-size: 1.1rem; }
.product-detail__meta { display: flex; gap: 20px; margin-top: 24px; font-size: .9rem; color: var(--forest); }

/* ============ cart / checkout ============ */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; }
.cart-table__qty { display: inline-flex; align-items: center; gap: 8px; }
.cart-table__qty button { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--white); }
.cart-summary { background: var(--white); border: 1px solid var(--line); padding: 24px; max-width: 360px; margin-left: auto; }
.cart-summary__row { display: flex; justify-content: space-between; padding: 8px 0; }
.cart-summary__row--total { font-weight: 700; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.1rem; }
.cart-empty { text-align: center; padding: 80px 20px; color: var(--forest); }

/* ============ contact layout ============ */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.contact-layout > * { min-width: 0; }
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info__item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info__item .icon { color: var(--brass); flex: none; margin-top: 2px; }

/* ============ grain overlay ============ */
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; z-index: 1; mix-blend-mode: multiply; }

/* ============ footer ============ */
.site-footer { background: var(--forest); color: var(--bone-dim); position: relative; margin-top: 64px; }
.footer-divider { width: 100%; height: 30px; color: var(--brass); display: block; margin-top: -30px; }
.site-footer__inner { max-width: 1180px; margin: 0 auto; padding: 48px 24px 24px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; }
.site-footer__inner > * { min-width: 0; }
@media (max-width: 880px) { .site-footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; } }
.footer-col h3 { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brass-light); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--brass-light); }
.footer-brand .brand__word { color: var(--bone); }
.footer-brand .brand__mark { color: var(--brass-light); }
.footer-mail { display: flex; align-items: center; gap: 8px; }
.site-footer__bottom { text-align: center; padding: 18px 0 28px; font-size: .82rem; color: var(--bone-dim); border-top: 1px solid rgba(243,239,227,.12); margin-top: 16px; }

/* ============ cookie banner ============ */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--forest-dark); color: var(--bone); padding: 20px 22px; border: 1px solid rgba(243,239,227,.2); z-index: 300; box-shadow: var(--shadow-paper); }
.cookie-banner p { font-size: .9rem; color: var(--bone-dim); }
.cookie-banner a { text-decoration: underline; color: var(--brass-light); }
.cookie-banner__actions { display: flex; gap: 12px; margin-top: 10px; }

/* ============ 404 ============ */
.page-404 { text-align: center; padding: 120px 20px; }
.page-404 h1 { font-size: clamp(4rem, 14vw, 9rem); }

/* COMPONENTS:
.wrap - centered max-width content wrapper
.section - vertical page section with standard padding
.eyebrow - small brass label above a heading
.section-head / .section-num - numbered section heading row
.divider - thin decorative SVG rule between sections
.card - generic bordered content card
.product-strip / .product-card - responsive/scroll-snap product grid and card
.product-card__media / __body / __name / __price / __badge - product card parts
.time-finder / .time-finder__controls / __readout / __result - signature feature section
.hourglass-visual - animated SVG hourglass used by the time-finder
.page-hero - colored hero banner for inner pages
.breadcrumbs - small nav trail under a page-hero
.prose - readable long-form legal/article text column
.legal-toc - table of contents box for legal pages
.notice / .notice--warn - callout box for important info
.form-grid / .field / .field--full / .field-error - form layout and fields
.hp-field - visually hidden honeypot field
.form-msg / .form-msg--ok / .form-msg--error - inline form status text
.faq / .faq-item - FAQ accordion (details/summary)
.product-detail / .product-detail__media / __price / __qty / __meta - product page layout
.cart-table / .cart-table__qty - cart line items table
.cart-summary / .cart-summary__row / __row--total - order summary box
.cart-empty - empty cart state message
.contact-layout / .contact-info__item - two-column contact page layout
.btn / .btn--brass / .btn--outline / .btn--ghost / .btn--sm - button variants with fill-sweep hover
.reveal / .reveal--1..4 / .in-view - scroll-reveal animation utility
.grain-overlay - fixed SVG noise texture overlay
.cookie-banner / __actions - cookie consent banner
.page-404 - 404 page layout
.grid / .grid-2 / .grid-3 / .grid-4 - utility grid layouts
.mt-1..4 / .mb-1..4 - utility spacing
*/

/* ============ Missing components ============ */

.mb-0 { margin-bottom: 0; }

.brand--footer {
  display: inline-block;
  width: 120px;
}

.brand--footer svg {
  width: 100%;
  height: auto;
  stroke: var(--brass-light);
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reveal--1 { animation-delay: 0ms; }
.reveal--2 { animation-delay: 100ms; }
.reveal--3 { animation-delay: 200ms; }
.reveal--4 { animation-delay: 300ms; }

.product-detail__body {
  padding: 24px;
  background: var(--bone-dim);
}

/* wg-contrast-autofix */
section.section div.wrap div.section-head.reveal span.section-num { color: #111111 !important; }
div.footer-col.footer-newsletter form.newsletter-form div.field label.sr-only { color: #ffffff !important; }
