/* ==========================================================================
   Dzintara Virtuve (Latvian Baltic recipe journal)
   Structural variant: Cocina (fixed left sidebar, full-bleed hero,
   vertical timeline principles, accordion recipes, two-column about,
   scroll+rAF reveal). Breakpoints: 1100 / 760 / 440.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Piazzolla:ital,opsz,wght@0,8..30,400;0,8..30,500;0,8..30,600;0,8..30,700;1,8..30,500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root{
  --ink: #1a2a26;
  --ink-soft: #3c4f49;
  --paper: #f7f1e3;
  --paper-alt: #efe4cd;
  --paper-line: rgba(26,42,38,0.14);
  --amber: #bd7f34;
  --amber-deep: #8a5a20;
  --amber-pale: #e7cd9e;
  --pine: #33513f;
  --pine-deep: #23392c;
  --sea: #24393f;
  --sea-deep: #16262a;
  --maroon: #7c3232;
  --cream-text: #f4ecda;
  --shadow: 0 20px 45px -25px rgba(20,30,26,0.45);
  --radius-lg: 22px;
  --radius-md: 14px;
  --sidebar-w: 288px;
  --sidebar-w-mid: 240px;
  --font-display: 'Piazzolla', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Manrope', 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll{ overflow: hidden; }

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.14;
  font-weight: 600;
}

p{ margin: 0 0 1em; }

ul, ol{ margin: 0; padding-left: 1.2em; }

.kicker{
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--amber-deep);
  margin: 0 0 0.85em;
}

em{ font-style: italic; color: var(--amber-deep); }

/* ---------------------------------------------------------------------- */
/* Reveal on scroll (JS-driven, scroll listener + rAF, not IntersectionObserver) */
/* ---------------------------------------------------------------------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------------- */
/* Sidebar (fixed, vertical) */
/* ---------------------------------------------------------------------- */
.sidebar{
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(185deg, var(--sea-deep) 0%, var(--sea) 62%, var(--pine-deep) 100%);
  color: var(--cream-text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.4rem 2rem 2rem;
  z-index: 60;
  overflow-y: auto;
}

.sidebar-brand{
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.6rem;
}
.brand-mark{
  font-size: 1.9rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}
.brand-name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.16;
  letter-spacing: 0.01em;
}
.brand-name span{ display: block; color: var(--amber-pale); font-size: 0.72em; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.2rem; }

.sidebar-nav{
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.sidebar-nav a{
  padding: 0.62rem 0.7rem;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(244,236,218,0.82);
  transition: background 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
  border-left: 2px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a:focus-visible{
  background: rgba(244,236,218,0.08);
  color: var(--cream-text);
  padding-left: 0.95rem;
  border-left-color: var(--amber);
}

.sidebar-tagline{
  font-size: 0.86rem;
  color: rgba(244,236,218,0.6);
  border-top: 1px solid rgba(244,236,218,0.16);
  padding-top: 1.1rem;
  margin: 1.4rem 0 0;
  line-height: 1.55;
}

.sidebar-foot{
  border-top: 1px solid rgba(244,236,218,0.16);
  padding-top: 1.1rem;
  margin-top: 1.4rem;
}
.sidebar-foot-links{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin-bottom: 0.9rem;
}
.sidebar-foot-links a{
  font-size: 0.82rem;
  color: rgba(244,236,218,0.68);
  border-bottom: 1px solid transparent;
}
.sidebar-foot-links a:hover{ color: var(--amber-pale); border-bottom-color: var(--amber-pale); }
.sidebar-copy{
  font-size: 0.76rem;
  color: rgba(244,236,218,0.42);
  margin: 0;
}

.sidebar-toggle{
  display: none;
  position: fixed;
  top: 1.1rem; left: 1.1rem;
  z-index: 80;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: none;
  background: var(--sea-deep);
  box-shadow: var(--shadow);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.sidebar-toggle span{
  display: block;
  width: 21px; height: 2px;
  background: var(--cream-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sidebar.open ~ .sidebar-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.sidebar.open ~ .sidebar-toggle span:nth-child(2){ opacity: 0; }
.sidebar.open ~ .sidebar-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.sidebar-overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,22,20,0.55);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.visible{ opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------------- */
/* Main content offset by sidebar */
/* ---------------------------------------------------------------------- */
.main{
  margin-left: var(--sidebar-w);
}

/* ---------------------------------------------------------------------- */
/* Hero (full-bleed) */
/* ---------------------------------------------------------------------- */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center 62%;
  padding: 6rem 2rem;
  text-align: center;
  isolation: isolate;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(19,30,27,0.32) 0%, rgba(17,26,23,0.72) 78%, rgba(15,23,21,0.86) 100%);
  z-index: -1;
}
.hero-inner{
  max-width: 760px;
  color: var(--cream-text);
}
.hero .kicker{ color: var(--amber-pale); }
.hero h1{
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  color: #fffaf0;
  letter-spacing: -0.01em;
}
.hero-sub{
  font-size: 1.14rem;
  max-width: 560px;
  margin: 1.3rem auto 2.1rem;
  color: rgba(244,236,218,0.88);
}
.hero-cta{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  background: var(--amber);
  color: #241705;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  box-shadow: 0 14px 30px -12px rgba(189,127,52,0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.hero-cta:hover{
  transform: translateY(-2px);
  background: #cf9048;
  box-shadow: 0 18px 36px -12px rgba(189,127,52,0.75);
}
.hero-cta::after{ content: "\2193"; font-size: 0.9rem; }

/* ---------------------------------------------------------------------- */
/* Section shell */
/* ---------------------------------------------------------------------- */
section{
  padding: 6.5rem 2rem;
  max-width: 1080px;
  margin: 0 auto;
}
.section-head{
  max-width: 620px;
  margin: 0 0 3.4rem;
}
.section-head h2{
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}
.section-head p{
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Principles (vertical timeline) */
/* ---------------------------------------------------------------------- */
.principles{ background: var(--paper); }
.timeline{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-left: 0.2rem;
}
.timeline::before{
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--amber) 0%, var(--paper-line) 100%);
}
.timeline-item{
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.6rem;
  align-items: start;
}
.timeline-marker{
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--pine);
  color: var(--cream-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  border: 3px solid var(--paper);
}
.timeline-content h3{
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem;
}
.timeline-content h3 span{
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--amber-deep);
  background: var(--amber-pale);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}
.timeline-content p{
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Recipes (single-column accordion) */
/* ---------------------------------------------------------------------- */
.recipes{ background: var(--paper-alt); max-width: none; padding-left: 0; padding-right: 0; }
.recipes-inner{ max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.recipes .section-head{ margin-left: auto; margin-right: auto; padding: 0 2rem; max-width: 620px; }

.accordion{
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--paper-line);
}
.recipe-item{
  border-bottom: 1px solid var(--paper-line);
}
.recipe-header{
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr auto 24px;
  align-items: center;
  gap: 1.1rem;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 0.4rem;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.recipe-num{
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--amber-deep);
  font-weight: 600;
}
.recipe-titles{ display: flex; flex-direction: column; gap: 0.15rem; }
.recipe-title-en{ font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; }
.recipe-title-native{ font-size: 0.86rem; color: var(--ink-soft); font-style: italic; }
.recipe-meta-quick{
  font-size: 0.82rem;
  color: var(--ink-soft);
  white-space: nowrap;
  display: none;
}
.recipe-caret{
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--amber-deep);
  color: var(--amber-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 600;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
  flex-shrink: 0;
}
.recipe-item.open .recipe-caret{
  transform: rotate(45deg);
  background: var(--amber-deep);
  color: var(--cream-text);
}

.recipe-details{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.recipe-item.open .recipe-details{ grid-template-rows: 1fr; }
.recipe-details-inner{ overflow: hidden; }

.recipe-media{
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 0.4rem 1.4rem;
  box-shadow: var(--shadow);
}
.recipe-media img{ width: 100%; height: 300px; object-fit: cover; }

.recipe-body{ padding: 0 0.4rem 2.2rem; }
.recipe-desc{ font-size: 1.02rem; color: var(--ink-soft); max-width: 620px; }

.recipe-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.recipe-meta span{
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--pine);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--paper-line);
}

.recipe-columns{
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.6rem;
}
.recipe-columns h4{
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--amber-deep);
  margin-bottom: 0.9rem;
}
.recipe-columns ul{ list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.recipe-columns ul li{
  padding-left: 1.15rem;
  position: relative;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.recipe-columns ul li::before{
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.recipe-columns ol{
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0;
}
.recipe-columns ol li{
  counter-increment: step;
  padding-left: 2.3rem;
  position: relative;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.recipe-columns ol li::before{
  content: counter(step);
  position: absolute;
  left: 0; top: -0.05em;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: var(--pine);
  color: var(--cream-text);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------------- */
/* About (two columns with quote) */
/* ---------------------------------------------------------------------- */
.about{ background: var(--paper); }
.about-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.6rem;
  align-items: start;
}
.about-text h2{ font-size: clamp(1.9rem, 3vw, 2.5rem); }
.about-text p{ color: var(--ink-soft); }
.about-quote{
  background: var(--sea-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-quote img{ width: 100%; height: 230px; object-fit: cover; }
.about-quote blockquote{
  margin: 0;
  padding: 1.9rem 1.8rem 2.2rem;
  color: var(--cream-text);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.5;
}
.about-quote blockquote::before{ content: "\201C"; color: var(--amber); font-size: 1.4em; display: block; line-height: 0.5; margin-bottom: 0.4rem; }
.about-quote cite{
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-pale);
}

/* ---------------------------------------------------------------------- */
/* Footer */
/* ---------------------------------------------------------------------- */
.site-footer{
  background: var(--sea-deep);
  color: rgba(244,236,218,0.72);
  max-width: none;
  padding: 2.6rem 2rem;
}
.footer-inner{
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}
.footer-inner nav{ display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-inner a:hover{ color: var(--amber-pale); }

/* ---------------------------------------------------------------------- */
/* Legal pages */
/* ---------------------------------------------------------------------- */
.legal-header{
  background: linear-gradient(185deg, var(--sea-deep) 0%, var(--sea) 100%);
  color: var(--cream-text);
  padding: 4.2rem 2rem 3.2rem;
  text-align: center;
}
.legal-header .kicker{ color: var(--amber-pale); justify-content: center; display: flex; }
.legal-header h1{ color: #fffaf0; font-size: clamp(2rem, 4vw, 2.7rem); }
.legal-header p{ color: rgba(244,236,218,0.78); max-width: 520px; margin: 0.7rem auto 0; }
.legal-nav{
  max-width: 780px;
  margin: 0 auto;
  padding: 1.6rem 2rem 0;
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.legal-nav a{ color: var(--amber-deep); font-weight: 700; border-bottom: 1px solid transparent; }
.legal-nav a:hover{ border-bottom-color: var(--amber-deep); }
.legal-nav a.home-link{ color: var(--pine); }
.legal-body{
  max-width: 780px;
  margin: 0 auto;
  padding: 2.6rem 2rem 5rem;
}
.legal-body h2{
  font-size: 1.4rem;
  margin-top: 2.3rem;
}
.legal-body h2:first-of-type{ margin-top: 0; }
.legal-body p, .legal-body li{ color: var(--ink-soft); font-size: 1.01rem; }
.legal-body ul{ padding-left: 1.3rem; margin-bottom: 1.2rem; }
.legal-body li{ margin-bottom: 0.5rem; }
.legal-updated{
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.company-contact-box{
  margin-top: 3rem;
  padding: 1.8rem 2rem;
  background: var(--paper-alt);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
}
.company-contact-box h3{
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-deep);
  margin-bottom: 0.9rem;
}
.company-contact-box p{
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.company-contact-box p strong{ color: var(--ink); }

/* ---------------------------------------------------------------------- */
/* Breakpoints: 1100 / 760 / 440                                          */
/* ---------------------------------------------------------------------- */
@media (max-width: 1100px){
  :root{ --sidebar-w: var(--sidebar-w-mid); }
  .sidebar{ padding: 2rem 1.5rem 1.6rem; }
  .recipe-columns{ grid-template-columns: 1fr; gap: 1.6rem; }
  .about-grid{ grid-template-columns: 1fr; }
  .about-quote img{ height: 260px; }
  section{ padding: 5rem 1.7rem; }
}

@media (max-width: 760px){
  .sidebar-toggle{ display: flex; }
  .sidebar-overlay{ display: block; }
  .sidebar{
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    width: 82%;
    max-width: 320px;
    box-shadow: var(--shadow);
  }
  .sidebar.open{ transform: translateX(0); }
  .main{ margin-left: 0; }
  .hero{ padding-top: 7rem; min-height: 82vh; }
  .recipe-meta-quick{ display: none; }
  .recipe-header{ grid-template-columns: 38px 1fr 22px; }
  .recipe-title-en{ font-size: 1.1rem; }
  .timeline::before{ left: 23px; }
  .timeline-item{ grid-template-columns: 48px 1fr; gap: 1.1rem; }
  .timeline-marker{ width: 48px; height: 48px; font-size: 1rem; }
}

@media (max-width: 440px){
  body{ font-size: 16.5px; }
  section{ padding: 3.6rem 1.15rem; }
  .hero{ padding: 6.5rem 1.2rem 4rem; }
  .hero-sub{ font-size: 1rem; }
  .hero-cta{ padding: 0.85rem 1.6rem; }
  .sidebar-brand{ margin-bottom: 2rem; }
  .recipe-media img{ height: 210px; }
  .recipe-body{ padding: 0 0.1rem 1.8rem; }
  .recipe-header{ padding: 1.2rem 0.1rem; gap: 0.8rem; }
  .about-quote blockquote{ padding: 1.5rem 1.3rem 1.8rem; font-size: 1.08rem; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
  .company-contact-box{ padding: 1.4rem 1.2rem; }
}
