/* ==========================================================================
   Kerti Napló — shared stylesheet
   Fonts are system-stack only (no external font CDN) so the site is fully
   self-contained and renders identically offline / behind any firewall.
   ========================================================================== */

:root{
  --serif: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --bg:        #f6f3ea;
  --card:      #fffdf7;
  --input-bg:  #f9f7f0;
  --tint:      #eef1e6;
  --tint-2:    #e8efe2;

  --ink:       #2c3327;
  --ink-2:     #1f3b2c;
  --body-txt:  #4a5145;
  --body-txt-2:#5d6455;
  --body-txt-3:#3d4438;
  --muted:     #6b7263;

  --green:     #3f6b4a;
  --green-dk:  #1f3b2c;
  --green-lt:  #7d9a6b;
  --terra:     #b5643c;
  --terra-dk:  #95502f;

  --border:    #e0dccc;
  --border-2:  #cdd3c1;
  --border-3:  #d8d3c0;

  --footer-bg: #1f3b2c;
  --footer-txt:#c8d6c0;
  --footer-txt-2:#a8bda0;
  --footer-txt-3:#8fa886;
  --footer-line:#2e5340;
}

*{ box-sizing:border-box; }
/* Elements toggled via the `hidden` attribute (cart drawer/overlay, cookie
   banner, checkout state boxes) must stay hidden even though their own
   rules below set an explicit `display` — without this, author `display`
   declarations win the cascade over the UA [hidden]{display:none} rule. */
[hidden]{ display:none !important; }
html,body{ margin:0; padding:0; background:var(--bg); }
body{
  font-family:var(--sans);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
img{ max-width:100%; display:block; }
a{ color:var(--green); text-decoration:underline; text-underline-offset:2px; }
a:hover{ color:var(--terra); }
input,textarea,select,button{ font-family:inherit; font-size:15px; }
button{ font-family:inherit; }
h1,h2,h3{ font-family:var(--serif); font-weight:500; margin:0; }

@keyframes kn-rise{ from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:none;} }
@keyframes kn-slide{ from{transform:translateX(100%);} to{transform:none;} }
@keyframes kn-fade{ from{opacity:0;} to{opacity:1;} }

.rise{ animation:kn-rise .5s ease both; }

/* ---------- layout helpers ---------- */
.wrap{ max-width:1200px; margin:0 auto; padding:0 24px; }
.wrap-1000{ max-width:1000px; margin:0 auto; padding:0 24px; }
.wrap-820{ max-width:820px; margin:0 auto; padding:0 24px; }
.wrap-760{ max-width:760px; margin:0 auto; padding:0 24px; }

.page{ padding:56px 24px 80px; max-width:1200px; margin:0 auto; }
.page-1000{ padding:56px 24px 80px; max-width:1000px; margin:0 auto; }
.page-820{ padding:56px 24px 80px; max-width:820px; margin:0 auto; }
.page-760{ padding:56px 24px 80px; max-width:760px; margin:0 auto; }

.eyebrow{
  display:inline-block; background:var(--tint-2); color:var(--green);
  border-radius:999px; padding:7px 16px; font-size:13px; letter-spacing:.08em; text-transform:uppercase;
}
.tag{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--terra); }
.tag-green{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--green-lt); }
.lead{ font-size:19px; line-height:1.7; color:var(--body-txt); max-width:52ch; }
.muted{ color:var(--muted); }
.center{ text-align:center; }

/* ---------- topbar ---------- */
.topbar{ background:var(--green-dk); color:#e8efe2; font-size:13px; letter-spacing:.04em; }
.topbar .wrap{ padding:9px 24px; display:flex; flex-wrap:wrap; gap:10px 18px; align-items:center; justify-content:space-between; }
.topbar .fade{ opacity:.75; }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:40;
  background:rgba(255,253,247,.94); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
}
.header-inner{ max-width:1200px; margin:0 auto; padding:14px 24px; display:flex; align-items:center; gap:20px; }
.brand{ display:flex; align-items:center; gap:12px; cursor:pointer; text-decoration:none; }
.brand-mark{
  width:40px; height:40px; border-radius:50%; background:var(--green);
  display:flex; align-items:center; justify-content:center; color:var(--bg);
  font-family:var(--serif); font-size:19px; flex:none;
}
.brand-name{ font-family:var(--serif); font-size:22px; line-height:1; color:var(--green-dk); }
.brand-tag{ font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--green-lt); margin-top:4px; }

.nav-toggle{
  display:none; margin-left:auto; background:transparent; border:1px solid var(--border-2);
  border-radius:8px; width:42px; height:42px; cursor:pointer; align-items:center; justify-content:center;
  color:var(--ink-2);
}
.nav-toggle svg{ width:20px; height:20px; }

.main-nav{ display:flex; flex-wrap:wrap; gap:22px; margin-left:auto; font-size:15px; }
.main-nav a{ cursor:pointer; color:var(--ink); text-decoration:none; white-space:nowrap; }
.main-nav a:hover, .main-nav a.active{ color:var(--terra); }

.cart-btn{
  display:flex; align-items:center; gap:9px; background:var(--green-dk); color:var(--bg);
  border:none; border-radius:999px; padding:10px 18px; font-size:14px; cursor:pointer; flex:none;
}
.cart-btn:hover{ background:var(--green); }
.cart-count{
  background:var(--terra); border-radius:999px; min-width:22px; height:22px;
  display:inline-flex; align-items:center; justify-content:center; font-size:12px; padding:0 6px;
}

@media (max-width:880px){
  .nav-toggle{ display:flex; order:2; }
  .cart-btn{ order:3; }
  .main-nav{
    order:4; width:100%; flex-direction:column; gap:2px; margin-left:0;
    max-height:0; overflow:hidden; transition:max-height .25s ease;
  }
  .main-nav.open{ max-height:420px; margin-top:10px; }
  .main-nav a{ padding:10px 4px; border-top:1px solid var(--border); }
  .header-inner{ flex-wrap:wrap; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius:999px; padding:15px 30px; font-size:16px; cursor:pointer; border:none;
  text-decoration:none; line-height:1.2;
}
.btn-sm{ padding:9px 16px; font-size:13px; }
.btn-md{ padding:12px 24px; font-size:14px; }
.btn-primary{ background:var(--green); color:#f9f7f0; }
.btn-primary:hover{ background:var(--green-dk); color:#f9f7f0; }
.btn-dark{ background:var(--green-dk); color:var(--bg); }
.btn-dark:hover{ background:var(--green); color:var(--bg); }
.btn-accent{ background:var(--terra); color:#fff; }
.btn-accent:hover{ background:var(--terra-dk); color:#fff; }
.btn-outline{ background:transparent; color:var(--ink-2); border:1px solid var(--border-2); }
.btn-outline:hover{ border-color:var(--green); color:var(--ink-2); }
.btn-chip{
  border-radius:999px; padding:9px 20px; font-size:14px; cursor:pointer;
  border:1px solid var(--border-2); background:var(--card); color:var(--body-txt-3); text-decoration:none;
}
.btn-chip:hover, .btn-chip.active{ border-color:var(--green); color:var(--ink-2); }
.btn-chip.active{ background:var(--tint-2); }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ---------- hero ---------- */
.hero{
  padding:60px 24px 40px; display:grid; grid-template-columns:1.05fr 1fr; gap:56px; align-items:center;
}
.hero h1{ font-size:58px; line-height:1.08; margin:22px 0 0; color:var(--green-dk); text-wrap:balance; }
.hero-stats{ display:flex; gap:34px; margin-top:38px; flex-wrap:wrap; font-size:14px; color:var(--muted); }
.hero-stats strong{ display:block; font-family:var(--serif); font-size:26px; color:var(--green-dk); }
.hero-media{ position:relative; }
.hero-tip{
  position:absolute; bottom:-26px; left:-26px; background:var(--card); border:1px solid var(--border);
  border-radius:8px; padding:18px 22px; max-width:240px; box-shadow:0 18px 40px rgba(31,59,44,.10);
}
@media (max-width:900px){
  .hero{ grid-template-columns:1fr; padding-top:40px; }
  .hero h1{ font-size:40px; }
  .hero-media{ order:-1; }
  .hero-tip{ position:static; margin-top:16px; max-width:none; }
}

/* ---------- photo placeholders ---------- */
.photo{
  position:relative; border-radius:8px; overflow:hidden; background:#e3e9d8;
  display:block;
}
.photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.photo--1-1{ aspect-ratio:1/1; }
.photo--4-5{ aspect-ratio:4/5; }
.photo--5-4{ aspect-ratio:5/4; }
.photo--16-9{ aspect-ratio:16/9; }
.photo--16-10{ aspect-ratio:16/10; }
.photo--21-9{ aspect-ratio:21/9; }
.photo--4-3{ aspect-ratio:4/3; }
.photo-cap{
  position:absolute; left:12px; bottom:12px; font-size:11px; color:#5d6b52;
  background:rgba(255,253,247,.85); padding:4px 8px; border-radius:4px; font-family:ui-monospace,'Courier New',monospace;
}

/* ---------- sections ---------- */
.section{ padding:70px 24px; }
.section-sm{ padding:56px 24px; }
.section-tinted{ background:var(--tint); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section-dark{ background:var(--green-dk); color:#e8efe2; }
.section-dark h2{ color:#fffdf7; }
.section-header{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:30px; }
.h2{ font-family:var(--serif); font-size:34px; color:var(--green-dk); margin:0; font-weight:500; }
.h1-page{ font-family:var(--serif); font-size:44px; color:var(--green-dk); margin:0; font-weight:500; }
.h3{ font-family:var(--serif); font-size:20px; color:var(--green-dk); margin:10px 0 8px; font-weight:500; }

/* ---------- grids ---------- */
.grid{ display:grid; gap:20px; }
.grid-4{ grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); }
.grid-products{ grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:22px; }
.grid-2{ grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
.grid-posts{ grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:22px; }
.grid-months{ grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:18px; }
.grid-team{ grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:22px; }
.grid-tips{ grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:22px; }
@media (max-width:760px){
  .grid-2{ grid-template-columns:1fr; }
}

/* ---------- cards ---------- */
.card{ background:var(--card); border:1px solid var(--border); border-radius:8px; }
.card-pad{ padding:24px; }
.card-hover:hover{ border-color:var(--green-lt); }

.task-card .tag{ margin-bottom:0; }

.product-card{ display:flex; flex-direction:column; overflow:hidden; }
.product-card .photo{ border-radius:0; }
.product-card .body{ padding:18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product-card .name{ font-family:var(--serif); font-size:18px; color:var(--green-dk); }
.product-card .short{ font-size:14px; color:var(--muted); line-height:1.55; }
.product-card .stock{ font-size:13px; color:var(--green-lt); }
.product-card .buy-row{ margin-top:auto; padding-top:14px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.product-card .price{ font-family:var(--serif); font-size:19px; color:var(--green-dk); }

.post-card{ cursor:pointer; overflow:hidden; text-decoration:none; color:inherit; display:block; }
.post-card .body{ padding:20px; }
.post-card:hover{ border-color:var(--green-lt); }
.post-card h3{ font-size:21px; margin:10px 0 8px; }
.post-card .more{ margin-top:14px; color:var(--green); font-size:15px; }

.diary-row{ cursor:pointer; display:grid; grid-template-columns:260px 1fr; gap:26px; overflow:hidden; text-decoration:none; color:inherit; }
.diary-row:hover{ border-color:var(--green-lt); }
.diary-row .photo{ min-height:170px; border-radius:0; }
.diary-row .body{ padding:24px 26px 24px 0; }
.diary-row h2{ font-size:25px; margin:10px 0 10px; }
@media (max-width:640px){
  .diary-row{ grid-template-columns:1fr; }
  .diary-row .photo{ aspect-ratio:16/9; min-height:0; }
  .diary-row .body{ padding:20px; }
}

.team-card{ overflow:hidden; }
.team-card .body{ padding:18px; }
.team-card .name{ font-family:var(--serif); font-size:19px; color:var(--green-dk); }
.team-card .role{ font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--green-lt); margin-top:4px; }
.team-card .bio{ font-size:15px; line-height:1.6; color:var(--body-txt-2); margin-top:10px; }

.tip-card{ padding:26px; }
.tip-card .points{ display:grid; gap:8px; }
.tip-point{ display:flex; gap:10px; align-items:flex-start; font-size:15px; color:var(--body-txt-3); }
.tip-point .dot{ width:6px; height:6px; border-radius:50%; background:var(--green-lt); margin-top:8px; flex:none; }

.month-card{ padding:22px; }
.month-card .head{ display:flex; align-items:baseline; justify-content:space-between; }
.month-card .name{ font-family:var(--serif); font-size:22px; color:var(--green-dk); }
.month-card .season{ font-size:12px; color:var(--green-lt); letter-spacing:.1em; text-transform:uppercase; }
.month-card hr{ border:none; height:1px; background:#e6e2d2; margin:14px 0; }
.month-card .val{ font-size:15px; line-height:1.6; color:var(--body-txt-3); margin:5px 0 12px; }
.month-card .val:last-child{ margin-bottom:0; }

.trust-card{ background:var(--tint); border-radius:8px; padding:22px; }
.trust-card .t{ font-family:var(--serif); font-size:18px; color:var(--green-dk); }
.trust-card .d{ font-size:14px; line-height:1.6; color:var(--body-txt-2); margin-top:8px; }

.why-item{ display:flex; gap:14px; align-items:flex-start; }
.why-item .dot{ width:8px; height:8px; border-radius:50%; background:var(--terra); margin-top:9px; flex:none; }
.why-item span.txt{ line-height:1.6; color:#dce6d5; }

/* ---------- FAQ ---------- */
.faq{ display:grid; gap:10px; margin-top:22px; }
.faq-item{ background:var(--card); border:1px solid var(--border); border-radius:8px; }
.faq-q{
  cursor:pointer; padding:18px 22px; display:flex; justify-content:space-between; gap:18px; align-items:center;
  border:none; background:none; width:100%; text-align:left; font-family:var(--serif); font-size:18px; color:var(--green-dk);
}
.faq-q .sign{ color:var(--green-lt); font-size:20px; flex:none; }
.faq-a{ padding:0 22px 20px; line-height:1.7; color:var(--body-txt-2); display:none; }
.faq-item.open .faq-a{ display:block; }

/* ---------- forms ---------- */
.field{ display:grid; gap:6px; }
.field .label{ font-size:13px; color:var(--muted); }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field textarea,
.field select{
  width:100%; border:1px solid var(--border-2); border-radius:6px; padding:12px 14px;
  background:var(--input-bg); font-size:15px; color:var(--ink);
}
.field input.pill{ border-radius:999px; padding:14px 22px; }
.field textarea{ resize:vertical; }
.checkbox-row{ display:flex; gap:10px; align-items:flex-start; font-size:13px; color:var(--muted); line-height:1.5; }
.checkbox-row input{ margin-top:3px; }
.form-msg{ font-size:13px; color:var(--terra); min-height:18px; }
.form-msg.ok{ color:var(--green); }
.form-card{ padding:28px; display:grid; gap:16px; }
.newsletter-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.input-pill{
  border:1px solid var(--border-2); border-radius:999px; padding:14px 22px; min-width:280px;
  background:var(--card); font-size:15px; color:var(--ink);
}
.hp-field{ position:absolute; left:-9999px; top:-9999px; width:0; height:0; overflow:hidden; opacity:0; }

/* ---------- footer ---------- */
.site-footer{ background:var(--footer-bg); color:var(--footer-txt); margin-top:0; }
.footer-top{ max-width:1200px; margin:0 auto; padding:60px 24px 30px; display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; }
.footer-brand{ font-family:var(--serif); font-size:24px; color:#fffdf7; }
.footer-desc{ line-height:1.7; margin:12px 0 0; font-size:15px; }
.footer-addr{ font-size:14px; line-height:1.8; margin-top:16px; color:var(--footer-txt-2); }
.footer-col h4{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--green-lt); margin-bottom:14px; font-family:var(--sans); font-weight:400; }
.footer-links{ display:grid; gap:10px; font-size:15px; }
.footer-links a{ color:var(--footer-txt); text-decoration:none; cursor:pointer; }
.footer-links a:hover{ color:#fffdf7; }
.footer-bottom{ border-top:1px solid var(--footer-line); }
.footer-bottom .wrap{ padding:20px 24px; display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; font-size:13px; color:var(--footer-txt-3); }
@media (max-width:820px){
  .footer-top{ grid-template-columns:1fr 1fr; }
}
@media (max-width:520px){
  .footer-top{ grid-template-columns:1fr; }
}

/* ---------- cart drawer ---------- */
.cart-overlay{ position:fixed; inset:0; background:rgba(31,59,44,.45); z-index:60; animation:kn-fade .2s ease both; }
.cart-drawer{
  position:fixed; top:0; right:0; bottom:0; width:420px; max-width:92vw; background:var(--card);
  z-index:61; display:flex; flex-direction:column; animation:kn-slide .28s ease both;
  box-shadow:-20px 0 50px rgba(31,59,44,.2);
}
.cart-drawer__head{ padding:22px 24px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.cart-drawer__head .title{ font-family:var(--serif); font-size:22px; color:var(--green-dk); }
.cart-drawer__close{ cursor:pointer; color:var(--muted); font-size:22px; background:none; border:none; line-height:1; }
.cart-drawer__body{ flex:1; overflow:auto; padding:20px 24px; display:grid; gap:16px; align-content:start; }
.cart-empty{ color:var(--muted); line-height:1.7; padding:30px 0; }
.cart-line{ display:grid; grid-template-columns:72px 1fr; gap:14px; align-items:start; }
.cart-line .thumb{ aspect-ratio:1/1; border-radius:6px; background:#dbe2cf; overflow:hidden; }
.cart-line .thumb img{ width:100%; height:100%; object-fit:cover; }
.cart-line .name{ font-family:var(--serif); font-size:16px; color:var(--green-dk); }
.cart-line .unit{ font-size:13px; color:var(--muted); margin-top:2px; }
.qty-row{ display:flex; align-items:center; gap:12px; margin-top:10px; }
.qty-btn{ width:28px; height:28px; border-radius:50%; border:1px solid var(--border-2); background:var(--input-bg); cursor:pointer; color:var(--body-txt-3); }
.qty-val{ font-size:15px; min-width:16px; text-align:center; }
.remove-link{ margin-left:auto; font-size:13px; color:var(--terra); cursor:pointer; background:none; border:none; text-decoration:underline; }
.cart-drawer__foot{ border-top:1px solid var(--border); padding:22px 24px; display:grid; gap:12px; }
.cart-row{ display:flex; justify-content:space-between; font-size:15px; color:var(--body-txt-2); }
.cart-total{ display:flex; justify-content:space-between; font-family:var(--serif); font-size:21px; color:var(--green-dk); }
.cart-drawer__foot .note{ font-size:12px; color:var(--muted); line-height:1.6; text-align:center; }

/* ---------- cookie banner ---------- */
.cookie-banner{ position:fixed; left:24px; right:24px; bottom:24px; z-index:70; display:flex; justify-content:center; }
.cookie-banner__card{
  max-width:900px; width:100%; background:var(--card); border:1px solid var(--border-3); border-radius:10px;
  padding:22px 26px; box-shadow:0 20px 50px rgba(31,59,44,.18); display:flex; gap:24px; align-items:center; flex-wrap:wrap;
}
.cookie-banner__text{ flex:1; min-width:260px; }
.cookie-banner__text .title{ font-family:var(--serif); font-size:18px; color:var(--green-dk); }
.cookie-banner__text p{ font-size:14px; line-height:1.65; color:var(--body-txt-2); margin:6px 0 0; }
.cookie-banner__actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* ---------- misc ---------- */
.hr{ height:1px; background:var(--border); margin:28px 0; }
.callout{ background:var(--tint); border-left:3px solid var(--green-lt); border-radius:0 8px 8px 0; padding:22px 26px; margin:30px 0; }
.callout .tag-green{ margin-bottom:0; }
.callout .txt{ font-family:var(--serif); font-size:19px; line-height:1.6; color:var(--green-dk); margin-top:8px; }
.article-lead{ font-size:19px; line-height:1.75; color:var(--body-txt-3); font-style:italic; }
.article-body p{ font-size:17px; line-height:1.85; color:var(--body-txt-3); }
.back-link{ cursor:pointer; color:var(--green); font-size:15px; text-decoration:none; }
.legal-updated{ font-size:14px; color:var(--muted); }
.legal-section h2{ font-size:23px; color:var(--green-dk); margin:0 0 10px; }
.legal-section p{ font-size:16px; line-height:1.8; color:var(--body-txt-3); margin:0 0 12px; }
.legal-note{ background:var(--tint); border-radius:8px; padding:22px; font-size:15px; line-height:1.7; color:var(--body-txt-2); }

.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--green-dk); color:#fff; padding:12px 18px;
  z-index:100; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

.map-photo{ display:flex; align-items:flex-end; }

noscript.js-required{
  display:block; background:var(--tint-2); color:var(--ink-2); padding:12px 18px; text-align:center; font-size:14px;
}
