/* ===== Ocatarija — risograph Mediterranean design system ===== */
:root {
  --ink: #1c2330;
  --ink-soft: #2b3346;
  --sand: #f3e9d2;
  --sand-deep: #e8ddc0;
  --coral: #c4512f;
  --amber: #e8a33d;
  --olive: #6b7a3a;
  --cream: #fbf6ea;
  --line: rgba(28, 35, 48, 0.14);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Courier New", ui-monospace, monospace;
  --radius: 14px;
  --shadow-paper: 6px 8px 0 rgba(28,35,48,0.12);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---- grain overlay ---- */
body::before {
  content: "";
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 2000; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .8rem 1.5rem;
  background: var(--cream); border-bottom: 2px solid var(--ink);
}
.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.logo-word { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: .02em; }
.main-nav { display: flex; gap: 1.4rem; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; padding: .2rem 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--coral); transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--coral); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.cart-link { display: flex; align-items: center; gap: .3rem; text-decoration: none; position: relative; min-height: 44px; min-width: 44px; justify-content: center; }
.cart-count {
  background: var(--coral); color: var(--cream); font-size: .72rem; font-weight: 700;
  border-radius: 999px; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.5)} 100%{transform:scale(1)} }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; min-width: 44px; min-height: 44px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--ink); flex-direction: column; padding: 5rem 1.6rem 2rem; gap: 1.2rem;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease;
    z-index: 600;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a { color: var(--sand); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---- hero / signature tabs ---- */
.hero {
  position: relative; padding: 3rem 1.5rem 4rem; overflow: hidden;
}
.hero-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
.hero-blob { position: absolute; top: -10%; right: -8%; width: 60vw; height: 60vw; max-width: 640px; max-height: 640px; z-index: 0; opacity: .9; }
.hero-blob path { fill: var(--amber); animation: morph 14s ease-in-out infinite; }
@keyframes morph {
  0%, 100% { d: path("M300 40C420 60 480 180 460 300C440 420 320 480 200 460C80 440 20 320 40 200C60 80 180 20 300 40Z"); }
  50% { d: path("M280 20C400 10 500 120 480 260C460 400 340 500 210 470C80 440 10 300 40 180C70 60 160 30 280 20Z"); }
}
.hero-eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--coral); display: inline-block; margin-bottom: .6rem; }
.hero-title { font-size: clamp(2.4rem, 5.5vw, 4.4rem); position: relative; z-index: 1; }
.hero-lede { font-size: 1.1rem; max-width: 36ch; position: relative; z-index: 1; }
.hero-cta { display: flex; gap: 1rem; margin-top: 1.4rem; flex-wrap: wrap; position: relative; z-index: 1; }

.mood-tabs { position: relative; z-index: 1; }
.mood-tablist { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.mood-tablist button {
  font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  background: none; border: 2px solid var(--ink); border-radius: 999px; padding: .5rem 1rem; cursor: pointer; min-height: 44px;
}
.mood-tablist button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.mood-panel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); aspect-ratio: 4/3; }
.mood-panel img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; filter: sepia(.15) saturate(1.1); }
.mood-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(196,81,47,.25), rgba(107,122,58,.2)); }
.mood-panel[hidden] { display: none; }

/* ---- sections ---- */
.section { padding: 4rem 1.5rem; position: relative; }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head .kicker { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--coral); font-size: .78rem; }

/* decorative divider */
.divider { width: 100%; height: 28px; display: block; margin: 0 auto; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }

/* ---- product grid / strip ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.6rem; }
.product-strip { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-strip .product-card { min-width: 230px; scroll-snap-align: start; }
.product-card {
  background: var(--sand); border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: var(--shadow-paper); transition: transform .25s ease;
}
.product-card:hover { transform: translateY(-4px); }
.product-card .thumb { aspect-ratio: 1/1; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card .body { padding: 1rem 1.1rem 1.3rem; }
.product-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.product-card .price { font-family: var(--font-mono); color: var(--coral); font-weight: 700; }
.badge-seal {
  position: absolute; top: .7rem; right: .7rem; width: 54px; height: 54px;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; padding: .8rem 1.5rem; border-radius: 999px;
  border: 2px solid var(--ink); cursor: pointer; text-decoration: none; min-height: 44px;
  background: var(--ink); color: var(--cream); position: relative; overflow: hidden; z-index: 1;
}
.btn-sweep::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--coral);
  transition: left .3s ease; z-index: -1;
}
.btn-sweep:hover::before { left: 0; }
.btn-ghost { background: none; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-outline { background: none; border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--ink); }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; min-height: 36px; }

/* ---- advisor feature ---- */
.advisor { background: var(--ink); color: var(--sand); border-radius: var(--radius); padding: 2.2rem; position: relative; overflow: hidden; }
.advisor::before { content: ""; position: absolute; inset: 0; width: 100%; height: 100%; background: repeating-radial-gradient(circle at 0 0, rgba(255,255,255,.05) 0 2px, transparent 2px 10px); }
.advisor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; position: relative; z-index: 1; }
.advisor h2 { color: var(--sand); }
.advisor select, .advisor input[type="range"] { width: 100%; }
.advisor label { display: block; font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 1rem 0 .4rem; }
.advisor select {
  background: var(--sand); color: var(--ink); border: 2px solid var(--amber); border-radius: 8px; padding: .6rem; font-size: 1rem;
}
.advisor-result { background: var(--sand-deep); color: var(--ink); border-radius: 10px; padding: 1.4rem; }
.advisor-result .ratio { font-family: var(--font-mono); font-size: 2.4rem; color: var(--coral); font-weight: 700; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: var(--sand); padding: 3.5rem 1.5rem 1.5rem; position: relative; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; flex-direction: column; gap: .4rem; }
.footer-nav { display: flex; gap: 2rem; }
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); font-family: var(--font-mono); }
.footer-col a { text-decoration: none; color: var(--sand); opacity: .85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.newsletter-form h3 { color: var(--sand); font-family: var(--font-display); font-size: 1.1rem; }
.newsletter-form .field-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 150px; padding: .7rem; border-radius: 8px; border: 2px solid var(--sand); background: var(--ink-soft); color: var(--sand); }
.hp { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.footer-bottom { max-width: var(--maxw); margin: 2.5rem auto 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; opacity: .85; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.2rem; }
.footer-bottom a { display: inline-flex; gap: .4rem; align-items: center; text-decoration: none; color: var(--sand); }

/* ---- cookie banner ---- */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin: 0 auto;
  background: var(--ink); color: var(--sand); border-radius: var(--radius); padding: 1.2rem 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; z-index: 900;
  box-shadow: var(--shadow-paper);
}
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: .9rem; }
.cookie-banner a { color: var(--amber); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; }

/* ===== inner-page component library ===== */
.page-hero { padding: 3.5rem 1.5rem 2.5rem; background: var(--sand); border-bottom: 2px solid var(--ink); }
.page-hero .wrap { max-width: var(--maxw); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.breadcrumbs { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-soft); margin-bottom: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.breadcrumbs a { text-decoration: none; color: var(--coral); }
.breadcrumbs span[aria-hidden] { opacity: .5; }

.prose { max-width: 70ch; margin: 0 auto; padding: 0 1.5rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

.notice { border: 2px solid var(--ink); border-left: 6px solid var(--coral); border-radius: 8px; padding: 1rem 1.2rem; background: var(--sand); margin: 1.5rem 0; }
.notice.notice-info { border-left-color: var(--olive); }
.notice.notice-warn { border-left-color: var(--amber); }

.legal-toc { background: var(--sand); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 0 auto 2rem; max-width: 70ch; }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-mono); }
.legal-toc ol { margin: 0; padding-left: 1.3rem; }

.form-grid { display: grid; gap: 1.1rem; max-width: 640px; }
.form-grid.two-col { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  padding: .7rem .8rem; border: 2px solid var(--line); border-radius: 8px; font: inherit; background: var(--cream);
  accent-color: var(--coral);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--coral); }
.field-error { color: var(--coral); font-size: .82rem; min-height: 1.1em; }
.form-msg { font-size: .9rem; min-height: 1.2em; }
.form-msg.ok { color: var(--olive); }
.form-msg.err { color: var(--coral); }

.faq { display: flex; flex-direction: column; gap: .8rem; max-width: 760px; margin: 0 auto; }
.faq-item { border: 2px solid var(--ink); border-radius: 10px; padding: .2rem 1.2rem; background: var(--sand); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--coral); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding-bottom: 1rem; margin: 0; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.5rem; }
.product-detail .gallery { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); aspect-ratio: 1/1; }
.product-detail .gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .price { font-family: var(--font-mono); font-size: 1.6rem; color: var(--coral); font-weight: 700; }
.qty-stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.qty-stepper button { background: none; border: none; width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; }
.qty-stepper input { width: 46px; border: none; text-align: center; font: inherit; background: none; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .9rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.cart-summary { background: var(--sand); border-radius: var(--radius); padding: 1.4rem; max-width: 360px; margin-left: auto; }
.cart-summary .total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.cart-empty { text-align: center; padding: 3rem 1rem; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-info .row { display: flex; gap: .8rem; align-items: flex-start; }
.contact-info svg { flex-shrink: 0; color: var(--coral); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

@media (max-width: 760px) {
  .hero-grid, .advisor-grid, .product-detail, .contact-layout, .footer-top, .grid-2, .grid-3, .form-grid.two-col { grid-template-columns: 1fr; }
  .footer-nav { flex-wrap: wrap; }
  .hero-blob { opacity: .5; }
}

/* COMPONENTS: .class - what it is
.site-header - sticky top header with logo, nav, cart link
.main-nav - primary navigation, becomes off-canvas drawer on mobile
.hero - home hero section with blob + tabs
.mood-tabs/.mood-tablist/.mood-panel - tabbed hero mood switcher
.section/.section-head - generic content section + its intro block
.divider - decorative inline SVG divider
.reveal/.in-view - scroll-reveal animation hook
.product-grid - responsive grid of product cards
.product-strip - horizontal scroll-snap strip for mobile
.product-card - single product card (catalog + home)
.badge-seal - decorative stamped seal overlay
.btn/.btn-sweep/.btn-ghost/.btn-outline/.btn-sm - button variants
.advisor/.advisor-grid/.advisor-result - signature interactive feature block
.site-footer/.footer-top/.footer-nav/.footer-col/.newsletter-form - footer layout
.cookie-banner/.cookie-actions - cookie consent banner
.page-hero - inner-page title band
.breadcrumbs - breadcrumb trail
.prose - long-form readable text column (legal/about pages)
.notice/.notice-info/.notice-warn - callout boxes
.legal-toc - table of contents box for legal pages
.form-grid/.field/.field-error - form layout and single field + validation message
.form-msg - async success/error message under a form
.faq/.faq-item - accordion FAQ using details/summary
.product-detail - product page two-column layout
.qty-stepper - quantity +/- control
.cart-table/.cart-summary/.cart-empty - cart/checkout table and summary
.contact-layout/.contact-info - contact page two-column layout
.grid-2/.grid-3 - generic responsive grid utilities
.mt-1/.mt-2/.mt-3/.mb-0/.center - spacing/alignment utilities
*/

/* ---- footer grain ---- */
.footer-grain {
  position: relative;
  overflow: hidden;
}

.footer-grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='fg'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23fg)'/%3E%3C/svg%3E");
}

/* ---- logo mark ---- */
.logo-mark {
  display: block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

/* ---- quantity input ---- */
.qty-input {
  width: 5rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .qty-input {
    width: 4rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }
}

/* wg-contrast-autofix */
#cookie-decline { color: #ffffff !important; }
