/* =========================================================================
   Jászkalász — site stylesheet (hand-written, no build step)
   ========================================================================= */

/* ---- Fonts: self-hosted variable faces (latin + latin-ext for Hungarian) --- */
@font-face {
  font-family: 'Fraunces';
  src: url('fraunces-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fraunces-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fraunces-latin-ext-italic.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  font-style: italic;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fraunces-latin-italic.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  font-style: italic;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Design tokens ---------------------------------------------------- */
:root {
  color-scheme: light;

  --paper: #f7f3ea;
  --paper-raised: #fffdf7;
  --paper-sunk: #efe7d5;
  --ink: #201b14;
  --ink-soft: #4a4234;
  --ink-faint: #7a6f5c;
  --line: #e2d8c1;
  --line-strong: #cdbf9f;

  --wheat: #b8891f;
  --wheat-strong: #97690f;
  --field: #2e4a34;
  --field-soft: #3d6146;
  --soil: #6b4a2e;

  --on-field: #f6f2e6;
  --on-wheat: #221a08;

  --footer-bg: #2e4a34;
  --footer-fg: #f2ecdd;
  --footer-muted: rgba(242, 236, 221, 0.72);
  --footer-line: rgba(242, 236, 221, 0.2);

  --maxw: 76rem;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(40, 30, 12, 0.06), 0 2px 8px rgba(40, 30, 12, 0.05);
  --shadow-md: 0 4px 14px rgba(40, 30, 12, 0.09), 0 14px 40px rgba(40, 30, 12, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #17130f;
  --paper-raised: #221b15;
  --paper-sunk: #100d0a;
  --ink: #efe7d5;
  --ink-soft: #c8bda4;
  --ink-faint: #938770;
  --line: #362c20;
  --line-strong: #4a3c2c;
  --wheat: #d8ab45;
  --wheat-strong: #e8c06a;
  --field: #7fa987;
  --field-soft: #6b9274;
  --soil: #b98c63;
  --on-field: #14100c;
  --on-wheat: #1c1508;
  --footer-bg: #12160f;
  --footer-fg: #ded6c3;
  --footer-muted: rgba(222, 214, 195, 0.66);
  --footer-line: rgba(222, 214, 195, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 34px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --paper: #17130f;
    --paper-raised: #221b15;
    --paper-sunk: #100d0a;
    --ink: #efe7d5;
    --ink-soft: #c8bda4;
    --ink-faint: #938770;
    --line: #362c20;
    --line-strong: #4a3c2c;
    --wheat: #d8ab45;
    --wheat-strong: #e8c06a;
    --field: #7fa987;
    --field-soft: #6b9274;
    --soil: #b98c63;
    --on-field: #14100c;
    --on-wheat: #1c1508;
    --footer-bg: #12160f;
    --footer-fg: #ded6c3;
    --footer-muted: rgba(222, 214, 195, 0.66);
    --footer-line: rgba(222, 214, 195, 0.16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 34px rgba(0, 0, 0, 0.5);
  }
}

/* ---- Reset ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}
* {
  min-width: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg,
picture,
iframe {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: var(--wheat-strong);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink);
}
p {
  text-wrap: pretty;
}
:focus-visible {
  outline: 2px solid var(--wheat);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection {
  background: var(--wheat);
  color: var(--on-wheat);
}
summary::-webkit-details-marker {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Layout helpers ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 5vw, 3rem);
}
.container-narrow {
  max-width: 46rem;
}
.section {
  padding-block: clamp(3.25rem, 8vw, 6rem);
}
.section-tight {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}
/* two sections that read as one flow (price list → order form) */
.section--flush-bottom {
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}
.section--flush-top {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}
.band {
  background: var(--paper-sunk);
  border-block: 1px solid var(--line);
}
.stack > * + * {
  margin-top: 1rem;
}
.prose {
  max-width: 40rem;
}
.prose p + p {
  margin-top: 1em;
}
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat-strong);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.5rem;
  transform: translateY(-160%);
  background: var(--field);
  color: var(--on-field);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: none;
  color: var(--on-field);
}

/* ---- Grain texture on bands ----------------------------------------- */
.grain {
  position: relative;
  isolation: isolate;
}
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 550;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s var(--ease),
    background-color 0.15s var(--ease),
    border-color 0.15s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: none;
}
.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.btn-primary {
  background: var(--field);
  color: var(--on-field);
}
.btn-primary:hover {
  background: var(--field-soft);
  color: var(--on-field);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

/* ---- Header / nav -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand:hover {
  color: var(--ink);
}
.brand__mark {
  width: 2.15rem;
  height: 2.15rem;
  flex: none;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.24rem;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav__link {
  padding: 0.5rem 0.72rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav__link:hover {
  color: var(--ink);
  background: var(--paper-sunk);
}
.nav__link[aria-current='page'] {
  color: var(--ink);
  background: var(--paper-sunk);
  box-shadow: inset 0 -2px 0 var(--wheat);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.icon-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}
.theme-toggle .theme-toggle__dark {
  display: none;
}
:root[data-theme='dark'] .theme-toggle__dark {
  display: block;
}
:root[data-theme='dark'] .theme-toggle__light {
  display: none;
}
.nav-toggle {
  display: none;
}

/* mobile nav */
@media (max-width: 60rem) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    inset: 4.25rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 1rem clamp(1.15rem, 5vw, 3rem) 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform 0.28s var(--ease);
    max-height: calc(100dvh - 4.25rem);
    overflow-y: auto;
  }
  .nav[data-open='true'] {
    transform: none;
  }
  .nav__link {
    font-size: 1rem;
    padding: 0.8rem 0.6rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__link[aria-current='page'] {
    box-shadow: inset 3px 0 0 var(--wheat);
  }
}

/* ---- Hero (photographic) --------------------------------------- */
.hero--photo {
  position: relative;
  isolation: isolate;
  background: #14100c;
  border-bottom: 1px solid var(--line);
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: -2;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(78deg, rgba(15, 12, 9, 0.9) 0%, rgba(15, 12, 9, 0.68) 42%, rgba(15, 12, 9, 0.2) 100%),
    linear-gradient(0deg, rgba(15, 12, 9, 0.72) 0%, rgba(15, 12, 9, 0) 45%);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: clamp(28rem, 62vh, 40rem);
  padding-block: clamp(3rem, 8vw, 5rem);
  color: #f6f2e6;
}
.hero__kicker {
  color: #e7cb8c;
}
.hero__title {
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  margin-top: 0.85rem;
  max-width: 18ch;
  color: #fff;
}
.hero__text {
  margin-top: 1.15rem;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: rgba(246, 242, 230, 0.9);
  max-width: 40rem;
}
.hero__cta {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-on-photo {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
}
.btn-on-photo:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* ---- Stat strip ----------------------------------------------------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.25rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.stats li {
  display: flex;
  flex-direction: column;
}
.stats b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}
.stats span {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---- Card grid --------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.1rem;
  margin-top: 2.25rem;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1.4rem 1.35rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.card__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--wheat-strong);
  padding-bottom: 0.55rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.card__title {
  font-size: 1.24rem;
}
.card__blurb {
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.card__more {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wheat-strong);
}

/* ---- Split feature (parts highlight, about) ---------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.split--flip .split__media {
  order: 2;
}
@media (max-width: 52rem) {
  .split {
    grid-template-columns: 1fr;
  }
  .split--flip .split__media {
    order: 0;
  }
}
.split__media {
  margin: 0;
}
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.split__media figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* photos on interior pages */
.wide-photo {
  margin: 2.75rem 0;
}
.activity-photo {
  margin: 0 0 2.25rem;
}
.wide-photo img,
.activity-photo img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-height: 22rem;
  object-fit: cover;
}
.wide-photo + .prose {
  margin-top: 2.75rem;
}
.activity-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 5vw, 3.5rem);
}
.activity-main .prose {
  max-width: 42rem;
  margin-top: 0;
}
.activity-main--solo {
  max-width: 44rem;
}
.activity-main--solo .side-cta {
  margin-top: 2.25rem;
}
.activity-photo + .prose {
  margin-top: 2rem;
}
@media (min-width: 60rem) {
  .activity-layout {
    grid-template-columns: minmax(0, 1fr) 17rem;
  }
  .activity-side {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}
.fact-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.fact-card > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
}
.fact-card > div + div {
  border-top: 1px solid var(--line);
}
.fact-card dt {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.fact-card dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  text-align: right;
}
.side-cta {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.side-cta p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}
.portrait-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: flex-start;
}
.portrait {
  margin: 0;
  flex: 1 1 12rem;
  max-width: 15rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.7rem 0.35rem;
  box-shadow: var(--shadow-md);
}
.portrait:first-child {
  rotate: -1.6deg;
}
.portrait:last-child {
  rotate: 1.6deg;
}
.portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  filter: saturate(0.94) contrast(1.03);
}
.portrait figcaption {
  text-align: center;
  padding: 0.55rem 0.2rem 0.3rem;
}
.portrait figcaption b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
}
.portrait figcaption span {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 0.1rem;
}
@media (max-width: 52rem) {
  .portrait:first-child,
  .portrait:last-child {
    rotate: none;
  }
}
.tick-list {
  list-style: none;
  padding: 0;
  margin-top: 1.1rem;
  display: grid;
  gap: 0.6rem;
}
.tick-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.5rem;
  align-items: start;
  color: var(--ink-soft);
}
.tick-list li::before {
  content: '';
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.3rem;
  background: var(--wheat);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---- Page header (interior pages) ------------------------------ */
.page-head {
  padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper-sunk);
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-faint);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--ink-faint);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--ink);
}
.page-head h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  margin-top: 0.6rem;
}
.page-head .lead {
  margin-top: 0.7rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

/* ---- Content blocks ------------------------------------------- */
.block + .block {
  margin-top: 2.25rem;
}
.block h2 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.block h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.bullets {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.bullets li {
  padding-left: 1.3rem;
  position: relative;
  color: var(--ink-soft);
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--wheat);
}
.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 5vw, 3rem);
}
.content-layout .aside {
  align-self: start;
}
.content-layout .aside svg {
  width: 100%;
  max-width: 20rem;
  height: auto;
  margin-inline: auto;
}
@media (min-width: 60rem) {
  .content-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
  .content-layout .aside {
    position: sticky;
    top: 6rem;
  }
}

/* ---- Parts catalog ------------------------------------------- */
.page-catalog .section {
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
}
.catalog-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: sticky;
  top: 4.5rem;
  z-index: 20;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 44rem) {
  .catalog-controls {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: end;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input,
.field select {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus,
.field select:focus {
  outline: 2px solid var(--wheat);
  outline-offset: 1px;
}
.catalog-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 0.6rem;
}
.catalog-count {
  font-weight: 600;
  color: var(--ink-soft);
}
.catalog-group {
  margin-top: 1.75rem;
}
.catalog-group > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: var(--field);
  color: var(--on-field);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
}
.catalog-group > summary::after {
  content: '';
  margin-left: auto;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.catalog-group[open] > summary::after {
  transform: rotate(-135deg);
}
.catalog-group__count {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.8;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
table.parts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.parts th,
table.parts td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.parts th {
  background: var(--paper-sunk);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  position: sticky;
  top: 0;
}
table.parts td.designation {
  white-space: normal;
  min-width: 16rem;
  color: var(--ink-soft);
}
table.parts td.code {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
table.parts tr:hover td,
table.parts tbody tr:hover td {
  background: var(--paper-sunk);
}
.copy-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--ink-faint);
}
.copy-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.copy-btn[data-copied='true'] {
  color: var(--field);
  border-color: var(--field);
}
.catalog-empty {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: var(--paper-raised);
}
.js-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.no-js .catalog-controls {
  display: none;
}
html:not(.no-js) .js-note {
  display: none;
}
.mark {
  background: color-mix(in srgb, var(--wheat) 40%, transparent);
  border-radius: 2px;
}

/* ---- Machine chooser cards ---------------------------------- */
.machine-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.machine-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.machine-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.machine-card h3 {
  font-size: 1.4rem;
}
.machine-card__stat {
  font-size: 0.82rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Ordered steps ---------------------------------------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  display: grid;
  gap: 0.85rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.85rem;
  align-items: start;
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--field);
  color: var(--on-field);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ---- Instagram grid --------------------------------------- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.75rem;
}
@media (max-width: 34rem) {
  .ig-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.ig-grid figure,
.ig-tile {
  display: block;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  box-shadow: var(--shadow-sm);
}
.ig-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease);
}
.ig-tile:hover img {
  transform: scale(1.045);
}
.ig-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--wheat-strong);
}
.ig-cta:hover {
  color: var(--ink);
}
.ig-cta svg {
  width: 1.35rem;
  height: 1.35rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ---- Contact --------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 5vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 56rem) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  margin-top: 0.5rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.75rem;
}
.contact-list svg {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--field);
  margin-top: 0.15rem;
}
.contact-list a {
  text-decoration: none;
}
.contact-list a:hover {
  text-decoration: underline;
}
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 11;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Mail forms (contact + order) ---------------------------------------- */
.mail-form {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}
.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 34rem) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.mail-form .field input,
.mail-form .field select,
.mail-form .field textarea {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper-raised);
  color: var(--ink);
  width: 100%;
  font-family: inherit;
}
.mail-form textarea {
  resize: vertical;
  min-height: 8rem;
}
.mail-form .field input:focus,
.mail-form .field select:focus,
.mail-form .field textarea:focus {
  outline: 2px solid var(--wheat);
  outline-offset: 1px;
  border-color: var(--wheat);
}
.form-consent {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.form-consent input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--field);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 0.25rem;
}
.form-note {
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.form-honey {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-success {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--field-soft);
  background: color-mix(in srgb, var(--field) 14%, var(--paper-raised));
  color: var(--ink);
  font-weight: 500;
}
button[data-form-submit][aria-disabled='true'] {
  opacity: 0.6;
  pointer-events: none;
}

/* ---- Price board (Termények) ----------------------------- */
.price-board {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0.75rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 46rem) {
  .price-board {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}
/* small single-item groups stack together instead of stretching to the
   height of the big "Gabona és olajnövény" card */
.price-board__side {
  display: grid;
  gap: 1rem;
  align-self: start;
}
.price-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}
.price-group h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.price-group h3 span {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}
.price-list > li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.25rem 0.9rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.price-list > li:first-child {
  border-top: 0;
}
.price-item__name {
  color: var(--ink);
  font-weight: 500;
}
.price-item[data-in-order] .price-item__name::after {
  content: ' ✓';
  color: var(--field);
  font-weight: 700;
}
.price-item__price {
  grid-column: 1;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.price-item__price span {
  color: var(--ink-faint);
  font-family: var(--font-sans);
  font-weight: 400;
}

/* quantity stepper */
.qty {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.2rem;
  background: var(--paper-raised);
}
.qty__btn {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--paper-sunk);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty__btn:hover {
  background: var(--field);
  color: var(--on-field);
}
.qty__input {
  width: 2.25ch;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font: inherit;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty__unit {
  font-size: 0.8rem;
  color: var(--ink-faint);
  padding-right: 0.3rem;
}
html.no-js .qty {
  display: none;
}

@media (max-width: 32rem) {
  .price-list > li {
    grid-template-columns: 1fr;
  }
  .qty {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 0.3rem;
  }
}

.pick-help {
  margin: 1.25rem 0 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--wheat);
  border-radius: var(--radius-sm);
  background: var(--paper-raised);
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 46rem;
}
.price-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
  max-width: 44rem;
}

/* ---- Order summary (inside the produce form) ------------- */
.order-summary {
  margin: 1.75rem 0 0.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-raised);
}
.order-summary.is-error {
  border-color: var(--wheat-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wheat) 30%, transparent);
}
.order-summary h3 {
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
}
.order-summary__empty {
  color: var(--ink-faint);
  font-size: 0.92rem;
}
.order-summary__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.order-summary__list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.5rem 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.order-summary__sub {
  font-family: var(--font-display);
  color: var(--ink-soft);
  white-space: nowrap;
}
.order-summary__x {
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  color: var(--ink-faint);
  cursor: pointer;
  line-height: 1;
}
.order-summary__x:hover {
  color: var(--on-field);
  background: var(--field);
  border-color: var(--field);
}
.order-summary__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.85rem;
}
.order-summary__total {
  font-size: 1rem;
}
.order-summary__total b {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.order-summary__clear {
  border: 0;
  background: transparent;
  color: var(--wheat-strong);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

/* ---- Floating "to order" bar --------------------------- */
.order-fab {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  max-width: calc(100vw - 2rem);
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--field);
  color: var(--on-field);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.order-fab span:last-child {
  opacity: 0.85;
}
@media (prefers-reduced-motion: reduce) {
  .order-fab {
    transition: none;
  }
}

/* ---- Footer -------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--footer-line);
}
.site-footer a {
  color: var(--footer-fg);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}
.footer-brand {
  max-width: 24rem;
}
.footer-brand p {
  margin-top: 0.75rem;
  color: var(--footer-muted);
  font-size: 0.92rem;
}
.footer-col h4 {
  color: var(--footer-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.footer-col a {
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-col a:hover {
  text-decoration: underline;
}
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--footer-muted);
}

/* ---- Reveal on scroll -------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.no-js .reveal,
html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- Print (parts catalogue) -------------------------------------- */
@media print {
  :root {
    --paper: #fff;
    --paper-raised: #fff;
    --paper-sunk: #fff;
    --ink: #000;
    --ink-soft: #222;
    --ink-faint: #444;
    --line: #bbb;
  }
  .site-header,
  .site-footer,
  .skip-link,
  .catalog-controls,
  .no-print,
  .copy-btn,
  .js-note,
  .breadcrumb {
    display: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .section {
    padding-block: 0;
  }
  .catalog-group,
  .catalog-group[open] {
    margin-top: 0.5rem;
    break-inside: auto;
  }
  .catalog-group > *:not(summary) {
    display: block !important;
  }
  .catalog-group > summary {
    background: none;
    color: #000;
    border: 0;
    border-bottom: 2px solid #000;
    border-radius: 0;
    padding-left: 0;
    font-size: 1.05rem;
  }
  .catalog-group > summary::after {
    display: none;
  }
  table.parts tr[hidden] {
    display: table-row !important;
  }
  table.parts th {
    color: #000;
    background: none;
    border-bottom: 1px solid #000;
  }
  table.parts th,
  table.parts td {
    padding: 3px 8px;
    white-space: normal;
  }
  .table-wrap {
    overflow: visible;
    border: 0;
  }
  a[href]::after {
    content: '';
  }
  thead {
    display: table-header-group;
  }
  tr {
    break-inside: avoid;
  }
}
