/* Rybárovia — sketchbook style */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:root {
  --ink: #1c2619;
  --moss-900: #1e2b1f;
  --moss-700: #2c4027;
  --moss-500: #44623c;
  --lichen-400: #7f9a5c;
  --lichen-300: #a3b885;
  --stone-300: #c7c0a7;
  --stone-200: #dcd6c2;
  --beige-100: #f3ecd9;
  --paper: #f7f2e3;
  --navy-700: #233f4c;
  --navy-500: #35596b;
  --navy-300: #5c7f8f;
  --ok: #3f6b3a;
  --error: #8a3324;
  --radius: 14px;
  --shadow-paper: 0 1px 0 rgba(28, 38, 25, 0.06), 0 10px 24px -14px rgba(28, 38, 25, 0.35);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-hand: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 37px,
      rgba(44, 64, 39, 0.08) 38px
    ),
    var(--paper);
}

img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--moss-900);
  line-height: 1.12;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 3.2vw + 1.4rem, 4.6rem); }
h2 { font-size: clamp(1.8rem, 1.6vw + 1.2rem, 2.8rem); }
h3 { font-size: clamp(1.25rem, 0.6vw + 1rem, 1.6rem); }

p { margin: 0 0 1em; }

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

.tag-hand {
  font-family: var(--font-hand);
  color: var(--navy-500);
  font-size: 1.15rem;
  display: inline-block;
  transform: rotate(-2deg);
}

.eyebrow {
  font-family: var(--font-hand);
  color: var(--moss-500);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.2em;
  transform: rotate(-1.5deg);
}

/* icons */
.icon-sprite { display: none; }
.icon {
  width: 1.3em;
  height: 1.3em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.4em;
  border: 1.5px solid var(--moss-900);
  border-radius: 999px;
  background: transparent;
  color: var(--moss-900);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  min-height: 44px;
  z-index: 0;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  width: 100%;
  background: var(--moss-900);
  transition: left 0.3s ease;
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--paper); }
.btn-primary {
  background: var(--moss-900);
  color: var(--paper);
}
.btn-primary::before { background: var(--navy-700); }
.btn-primary:hover, .btn-primary:focus-visible { color: var(--paper); }
.btn-ghost-dark {
  border-color: var(--stone-200);
  color: var(--paper);
}
.btn-ghost-dark::before { background: var(--paper); }
.btn-ghost-dark:hover, .btn-ghost-dark:focus-visible { color: var(--moss-900); }
.btn:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 3px; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 227, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone-300);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--moss-900);
}
.logo-mark { width: 42px; height: 42px; }
.logo-word { width: 150px; height: 28px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.main-nav a {
  color: var(--moss-900);
  font-weight: 600;
  font-size: 0.96rem;
  position: relative;
  padding-bottom: 0.2em;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--navy-700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: var(--moss-900);
}
.cart-count {
  background: var(--navy-700);
  color: var(--paper);
  border-radius: 999px;
  min-width: 1.5em;
  height: 1.5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  padding: 0 0.3em;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.bump { transform: scale(1.35); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--moss-900);
  cursor: pointer;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--moss-900);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5.5rem 1.6rem 2rem;
    gap: 1.4rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    z-index: 60;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a { color: var(--beige-100); font-size: 1.1rem; }
  .main-nav a::after { background: var(--lichen-300); }
  .menu-toggle { display: inline-flex; }
}

/* hero */
.hero {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: center;
}
.hero .container > * { min-width: 0; }
.hero-art { position: relative; aspect-ratio: 4 / 3; min-width: 0; }
.hero-art svg { width: 100%; height: 100%; }
.hero-photo {
  position: absolute;
  inset: 8% 10% 10% 6%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  transform: rotate(-2deg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero h1 { margin-bottom: 0.4em; }
.hero-lede { font-size: 1.15rem; max-width: 36ch; color: var(--moss-700); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }

.ticker-wrap {
  margin-top: 2.2rem;
  border-top: 1.5px dashed var(--stone-300);
  border-bottom: 1.5px dashed var(--stone-300);
  padding: 0.6rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker {
  display: inline-flex;
  gap: 2.5rem;
  animation: ticker-scroll 28s linear infinite;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  color: var(--navy-500);
}
.ticker span { white-space: nowrap; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
}

/* reveal */
.reveal {
  opacity: 1;
  transform: none;
  clip-path: none;
}
.reveal.js-hidden {
  opacity: 0;
  transform: translateY(26px);
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.6s ease, transform 0.6s ease, clip-path 0.6s ease;
}
.reveal.js-hidden.in-view {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0% 0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal.js-hidden { transition: none; opacity: 1; transform: none; clip-path: none; }
}

/* sections */
.section { padding: 4rem 0; }
.section-dark {
  background: var(--moss-900);
  color: var(--beige-100);
}
.section-dark h2, .section-dark h3 { color: var(--beige-100); }
.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.divider { width: 100%; height: auto; display: block; margin: 0 auto; }

/* places masonry */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 120px;
  gap: 0.9rem;
}
.gallery-item {
  position: relative;
  grid-row: span 2;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.gallery-item:nth-child(1) { grid-row: span 3; }
.gallery-item:nth-child(3) { grid-row: span 3; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.85) contrast(1.02);
}
.gallery-item:hover img, .gallery-item:focus-within img { transform: scale(1.08); filter: saturate(1.05); }
.gallery-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(28,38,25,0.88), transparent);
  color: var(--beige-100);
  transform: translateY(12%);
  opacity: 0.85;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.gallery-item:hover .gallery-cap, .gallery-item:focus-within .gallery-cap { transform: translateY(0); opacity: 1; }
.gallery-cap strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.gallery-cap span { font-size: 0.85rem; opacity: 0.85; }

@media (max-width: 860px) {
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1), .gallery-item:nth-child(3) { grid-row: span 2; }
}

/* feature cards (guide) */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.guide-card {
  background: var(--beige-100);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-paper);
  position: relative;
}
.guide-card svg { width: 2.4rem; height: 2.4rem; color: var(--navy-700); margin-bottom: 0.6rem; }

/* calendar feature */
.calendar-feature {
  background: var(--beige-100);
  border-radius: 20px;
  padding: 2.2rem;
  box-shadow: var(--shadow-paper);
}
.calendar-months {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}
.cal-month {
  border: 1.5px solid var(--stone-300);
  background: var(--paper);
  border-radius: 10px;
  padding: 0.6rem 0.3rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 44px;
  color: var(--moss-700);
}
.cal-month:hover { border-color: var(--navy-500); }
.cal-month.active {
  background: var(--moss-900);
  color: var(--paper);
  border-color: var(--moss-900);
}
.cal-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.cal-fish-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cal-fish-list li {
  background: var(--navy-700);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  font-size: 0.86rem;
}
.cal-tip {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--navy-500);
  margin-top: 0.7rem;
}
.cal-products { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.8rem; }
.cal-products a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--paper);
  border: 1px solid var(--stone-300);
  border-radius: 999px;
  padding: 0.4em 0.9em;
  font-size: 0.85rem;
  color: var(--moss-900);
  font-weight: 600;
}
.cal-products a:hover { border-color: var(--navy-500); }

@media (max-width: 760px) {
  .calendar-months { grid-template-columns: repeat(4, 1fr); }
  .cal-panel { grid-template-columns: 1fr; }
}

/* product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}
.product-card {
  background: var(--beige-100);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover, .product-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px -14px rgba(28,38,25,0.45);
}
.product-thumb { aspect-ratio: 4/3; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.product-card:hover .product-thumb img { transform: scale(1.08); }
.product-body { padding: 1.1rem 1.2rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-cat { font-family: var(--font-hand); color: var(--navy-500); font-size: 0.95rem; }
.product-price { font-weight: 700; font-size: 1.15rem; color: var(--moss-900); margin-top: auto; }
.product-actions { display: flex; gap: 0.6rem; margin-top: 0.5rem; }

/* strip scroll-snap on mobile */
.product-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}
@media (max-width: 760px) {
  .product-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }
  .product-strip .product-card { min-width: 72vw; scroll-snap-align: start; }
}

/* filters (catalog) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.filter-btn {
  border: 1.5px solid var(--stone-300);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  min-height: 44px;
  color: var(--moss-700);
}
.filter-btn.active { background: var(--moss-900); color: var(--paper); border-color: var(--moss-900); }

/* product page */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.product-detail img { border-radius: var(--radius); box-shadow: var(--shadow-paper); }
.qty-row { display: flex; align-items: center; gap: 0.8rem; margin: 1.2rem 0; }
.qty-row input {
  width: 4rem;
  padding: 0.5em;
  border: 1.5px solid var(--stone-300);
  border-radius: 8px;
  min-height: 44px;
  text-align: center;
}
.product-season-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--lichen-300);
  color: var(--moss-900);
  border-radius: 999px;
  padding: 0.3em 0.9em;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 760px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* cart / checkout */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { text-align: left; padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--stone-300); }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-line-name { display: flex; align-items: center; gap: 0.8rem; }
.cart-remove { background: none; border: none; color: var(--error); cursor: pointer; font-weight: 600; min-height: 44px; }
.cart-qty { width: 3.5rem; padding: 0.3em; border: 1.5px solid var(--stone-300); border-radius: 6px; text-align: center; }
.cart-total-row { font-weight: 700; font-size: 1.2rem; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2rem; }
@media (max-width: 760px) { .checkout-grid { grid-template-columns: 1fr; } }

/* forms */
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea, .field select {
  padding: 0.7em 0.8em;
  border: 1.5px solid var(--stone-300);
  border-radius: 8px;
  font: inherit;
  background: var(--paper);
  min-height: 44px;
  accent-color: var(--navy-700);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 1px;
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-weight: 600; margin-top: 0.8rem; min-height: 1.3em; }
.form-msg.ok { color: var(--ok); }
.form-msg.error { color: var(--error); }
.radio-row { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 0.5em; font-weight: 500; }

/* content / legal pages */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; }
.prose ul { padding-left: 1.3em; }
.content-hero {
  padding: 3rem 0 2rem;
}
.faq-item { border-bottom: 1px solid var(--stone-300); padding: 1.1rem 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item summary .icon { transition: transform 0.2s ease; color: var(--navy-700); }
.faq-item p { margin-top: 0.7rem; color: var(--moss-700); }

/* about page */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-paper); }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* newsletter + cookie banner */
.newsletter-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 0.7em 0.9em;
  border-radius: 999px;
  border: 1.5px solid var(--stone-300);
  min-height: 44px;
  background: var(--paper);
}

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  max-width: 560px;
  margin-inline: auto;
  background: var(--moss-900);
  color: var(--beige-100);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
  z-index: 100;
  display: none;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: 0.9rem; }
.cookie-banner a { color: var(--lichen-300); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.7rem; }

/* footer */
.site-footer {
  background: var(--moss-900);
  color: var(--stone-200);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 { color: var(--beige-100); font-size: 1rem; font-family: var(--font-body); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer a { color: var(--stone-200); }
.site-footer a:hover { color: var(--lichen-300); }
.footer-bottom {
  border-top: 1px solid rgba(243,236,217,0.15);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--stone-300);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* grain overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.045;
  z-index: 200;
  mix-blend-mode: multiply;
}

/* 404 */
.notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 4rem 1rem;
}
.notfound svg { width: 220px; height: 160px; }

/* badge seal */
.seal { width: 120px; height: 120px; color: var(--navy-700); }

/* hero illustration ripple (one continuous subtle element) */
.ripple { animation: ripple-pulse 4s ease-in-out infinite; transform-origin: center; }
@keyframes ripple-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.12; transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .ripple { animation: none; }
}

.ornament-arrow { width: 120px; height: auto; color: var(--navy-500); }
