/* Sport Vltava — retro risograph design system */
:root {
  --coral: #e8613c;
  --coral-dark: #c84b2a;
  --teal: #1b5c5a;
  --teal-dark: #0f3d3b;
  --peach: #f2c49a;
  --cream: #f6ead9;
  --ink: #241a14;
  --paper: #fbf3e7;
  --line: rgba(36,26,20,0.14);
  --font-display: "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Courier New", ui-monospace, monospace;
  --radius: 10px;
  --shadow-paper: 6px 7px 0 rgba(36,26,20,0.12);
  --maxw: 1200px;
}

html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--coral-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.grain-defs { position: absolute; width: 0; height: 0; }

body::before {
  content: "";
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 999;
  background: var(--ink);
  filter: url(#riso-grain);
  opacity: 0.5;
  mix-blend-mode: multiply;
}

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 3px solid var(--ink); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: 0.7rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.logo { flex: 0 0 auto; }
.logo-mark { height: 42px; width: 185px; display: block; }
.logo-word { fill: var(--ink); font-family: var(--font-display); letter-spacing: 1px; }
.logo-word--sub { fill: var(--coral-dark); }
.menu-toggle { margin-left: auto; display: none; background: none; border: 2px solid var(--ink); border-radius: 6px; padding: 6px; cursor: pointer; color: var(--ink); min-width: 44px; min-height: 44px; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; position: relative; padding: 0.3rem 0.1rem; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--coral); transition: width 0.25s; }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--coral-dark); }
.cart-link { position: relative; display: inline-flex; align-items: center; color: var(--ink); min-width: 44px; min-height: 44px; justify-content: center; }
.cart-count { position: absolute; top: -2px; right: -2px; background: var(--coral); color: var(--cream); font-size: 0.68rem; font-weight: 700; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.cart-count.bump { animation: cartBump 0.4s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw);
    background: var(--teal-dark); flex-direction: column; align-items: flex-start;
    padding: 5.5rem 1.5rem 2rem; gap: 1.6rem; margin: 0;
    transform: translateX(100%); visibility: hidden; transition: transform 0.3s ease;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 1.2rem; }
  .main-nav a { color: var(--cream); font-size: 1.05rem; }
  .cart-link { color: var(--cream); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.75rem 1.4rem; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--coral); color: var(--cream); cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate; text-decoration: none;
  min-height: 44px;
}
.btn::before {
  content: ""; position: absolute; inset: 0; width: 100%; left: -100%;
  background: var(--teal); z-index: -1; transition: left 0.3s ease;
}
.btn:hover::before { left: 0; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--cream); }
.btn--small { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn--outline-dark { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--outline-dark::before { background: var(--coral); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero / page-hero ---------- */
.page-hero { padding: 3rem 0 2.5rem; background: var(--cream); border-bottom: 3px solid var(--ink); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.breadcrumbs { list-style: none; display: flex; gap: 0.4rem; padding: 0; margin: 0 0 1rem; font-size: 0.85rem; font-family: var(--font-mono); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: var(--line); }
.breadcrumbs a { color: var(--teal-dark); text-decoration: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.reveal--clip { clip-path: inset(0 100% 0 0); transition: clip-path 0.7s ease; opacity: 1; transform: none; }
.reveal.reveal--clip.in-view { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--clip { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ---------- Cards / products ---------- */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.product-card { background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); transition: transform 0.25s ease; text-decoration: none; color: var(--ink); display: block; }
.product-card:hover { transform: translateY(-5px); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--peach); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; filter: sepia(0.15) saturate(1.1); }
.product-card:hover .product-card__media img { transform: scale(1.08); }
.product-card__body { padding: 1rem 1.1rem 1.2rem; }
.product-card__badge { display: inline-block; background: var(--coral); color: var(--cream); font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.5rem; }
.product-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.product-card__price { font-weight: 700; color: var(--coral-dark); font-family: var(--font-mono); }

.product-strip { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
.product-strip .product-card { flex: 0 0 240px; scroll-snap-align: start; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
.product-detail__media { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.6rem; font-weight: 700; color: var(--coral-dark); font-family: var(--font-mono); }
.qty-input { width: 4.5rem; padding: 0.5rem; border: 2px solid var(--ink); border-radius: 6px; font-size: 1rem; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.cart-table th, .cart-table td { text-align: left; padding: 0.8rem 0.6rem; border-bottom: 1px solid var(--line); }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.cart-summary { max-width: 360px; margin-left: auto; background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-paper); }
.cart-summary__row { display: flex; justify-content: space-between; padding: 0.4rem 0; }
.cart-summary__total { font-weight: 700; font-size: 1.2rem; border-top: 2px solid var(--ink); margin-top: 0.4rem; padding-top: 0.6rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  padding: 0.7rem 0.8rem; border: 2px solid var(--ink); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.95rem; background: var(--paper); color: var(--ink);
  accent-color: var(--coral);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--teal); outline-offset: 1px; }
.field-error { color: var(--coral-dark); font-size: 0.82rem; min-height: 1.1em; }
.field-row { display: flex; gap: 0.5rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: 0.88rem; min-height: 1.2em; }
.form-msg.is-success { color: var(--teal-dark); font-weight: 700; }
.form-msg.is-error { color: var(--coral-dark); font-weight: 700; }

/* ---------- Notices ---------- */
.notice { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--peach); margin: 1.5rem 0; }
.notice--info { background: var(--cream); }
.notice--success { background: #dcebd8; }

/* ---------- Prose / legal ---------- */
.prose { max-width: 70ch; margin: 0 auto; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose ul { padding-left: 1.3rem; }
.legal-toc { background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem; }
.legal-toc ol { margin: 0; padding-left: 1.2rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 70ch; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--cream); overflow: hidden; }
.faq-item summary { padding: 1rem 1.2rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item div { padding: 0 1.2rem 1.1rem; }

/* ---------- Contact layout ---------- */
.contact-layout { display: grid; gap: 2.5rem; grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--teal-dark); color: var(--cream); border-radius: var(--radius); padding: 1.6rem; }
.contact-info-card a { color: var(--peach); }

/* ---------- Utilities ---------- */
.section { padding: 3.5rem 0; }
.section--tight { padding: 2rem 0; }
.flow > * + * { margin-top: 1rem; }
.grid-2 { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.text-center { text-align: center; }
.visually-hidden { position: absolute !important; left: -9999px; }
.badge-seal { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--teal-dark); color: var(--cream); padding: 3.5rem 0 4rem; border-bottom: 3px solid var(--ink); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 0.6rem; }
.hero-clip { display: block; clip-path: inset(0 100% 0 0); transition: clip-path 0.9s cubic-bezier(.3,.9,.3,1); }
.hero-clip.is-revealed { clip-path: inset(0 0 0 0); }
.hero p.hero-lede { font-size: 1.1rem; max-width: 42ch; opacity: 0.9; }
.hero-cta { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; }
.hero-tabs { display: flex; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-tabs button { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; padding: 0.5rem 1rem; border-radius: 999px; border: 2px solid var(--cream); background: transparent; color: var(--cream); cursor: pointer; min-height: 44px; }
.hero-tabs button.is-active { background: var(--coral); border-color: var(--coral); }
.hero-mood { display: none; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); box-shadow: var(--shadow-paper); }
.hero-mood.is-active { display: block; }
.hero-mood img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } .hero-art { max-width: 320px; margin: 0 auto; } }

/* ---------- Fit finder (signature feature) ---------- */
.fit-finder { background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-paper); }
.fit-finder__tabs { display: flex; gap: 0.6rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.fit-finder__tabs button { font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; padding: 0.55rem 1rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; min-height: 44px; }
.fit-finder__tabs button.is-active { background: var(--teal); color: var(--cream); }
.fit-finder__panel { display: none; }
.fit-finder__panel.is-active { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; align-items: end; }
@media (max-width: 640px) { .fit-finder__panel.is-active { grid-template-columns: 1fr; } }
.fit-finder__result { grid-column: 1 / -1; background: var(--peach); border: 2px dashed var(--ink); border-radius: 8px; padding: 1rem 1.2rem; font-weight: 700; min-height: 1em; }

/* ---------- Section dividers / decorative ---------- */
.zigzag-divider { width: 100%; height: 28px; display: block; }
.seal { width: 100%; height: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: var(--cream); padding-top: 1rem; position: relative; }
.divider-riso { width: 100%; height: 36px; display: block; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1.25rem 2rem; display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-col h3 { font-size: 1rem; color: var(--peach); margin-bottom: 0.7rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--cream); text-decoration: none; opacity: 0.9; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-brand p { opacity: 0.85; font-size: 0.9rem; }
.newsletter-form label { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; }
.newsletter-form input { padding: 0.6rem 0.7rem; border-radius: 6px; border: none; flex: 1; min-width: 0; }
.footer-contact p { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.footer-legal { text-align: center; font-size: 0.82rem; opacity: 0.75; padding: 1rem 0 1.6rem; margin: 0; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin: 0 auto;
  background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: 1.1rem 1.3rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  z-index: 200; box-shadow: var(--shadow-paper);
}
.cookie-banner a { color: var(--peach); }
.cookie-actions { display: flex; gap: 0.6rem; }

/* COMPONENTS:
.container - centered max-width page wrapper
.site-header / .header-inner / .main-nav / .cart-link / .cart-count - global header & nav
.logo / .logo-mark / .logo-word - SVG logo lockup
.menu-toggle - mobile nav hamburger button
.btn / .btn--ghost / .btn--small / .btn--outline-dark - button variants with fill-sweep hover
.page-hero - inner-page hero band
.breadcrumbs - breadcrumb trail list
.reveal / .reveal--clip / .in-view - scroll-reveal animation hooks
.card-grid - responsive auto-fill grid of product cards
.product-card / .product-card__media / .product-card__body / .product-card__badge / .product-card__price - catalog card
.product-strip - horizontal scroll-snap row of product cards
.product-detail / .product-detail__media / .product-detail__price - product page layout
.qty-input - quantity number input
.cart-table / .cart-summary / .cart-summary__row / .cart-summary__total / .cart-empty - cart/checkout page
.form-grid / .field / .field--full / .field-error / .field-row / .hp / .form-msg - form layout and validation
.notice / .notice--info / .notice--success - callout boxes
.prose - readable-measure long-form legal text
.legal-toc - table of contents box for legal pages
.faq / .faq-item - details/summary FAQ accordion
.contact-layout / .contact-info-card - contact page split layout
.section / .section--tight - vertical page rhythm spacing
.flow - vertical rhythm utility (margin between children)
.grid-2 / .grid-3 - simple responsive grids
.text-center - center text utility
.visually-hidden - screen-reader-only utility
.badge-seal - fixed-size wrapper for seal/badge SVGs
.site-footer / .footer-inner / .footer-col / .footer-brand / .footer-contact / .footer-legal - global footer
.newsletter-form - footer newsletter signup form
.cookie-banner / .cookie-actions - cookie consent banner
.hero / .hero-inner / .hero-clip / .hero-cta / .hero-art - home page hero band
.hero-tabs / .hero-mood - tabbed hero mood switcher
.fit-finder / .fit-finder__tabs / .fit-finder__panel / .fit-finder__result - signature size-advisor feature
.zigzag-divider / .seal - bespoke decorative SVG wrappers
*/

/* wg-contrast-autofix */
#cookieDecline { color: #ffffff !important; }
