/* Anafla Kukhnya, Ukrainian home cooking. Linen, cobalt, sunflower gold, embroidery red. */

:root {
  --paper: #f8f6f1;
  --linen: #efeade;
  --linen-deep: #e5ddc9;
  --ink: #23272f;
  --ink-soft: #4b5160;
  --ink-faint: #767d8d;
  --cobalt: #29497f;
  --cobalt-deep: #1b3260;
  --cobalt-night: #101f3e;
  --gold: #c8951f;
  --gold-bright: #eab63f;
  --gold-pale: #f6e3b4;
  --berry: #9e2b25;
  --display-font: "Fraunces", "Georgia", serif;
  --body-font: "Karla", "Helvetica Neue", Arial, sans-serif;
  --stitch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='16' viewBox='0 0 44 16'%3E%3Cpath d='M11 2 L20 8 L11 14 L2 8 Z' fill='none' stroke='%23eab63f' stroke-width='1.7'/%3E%3Crect x='30' y='5.2' width='5.6' height='5.6' fill='%239e2b25' transform='rotate(45 32.8 8)'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  font-size: 18.5px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--display-font); font-weight: 600; line-height: 1.12; }

/* ---------- Kickers ---------- */

.kicker {
  font-family: var(--body-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--berry);
  margin-bottom: 14px;
}

.kicker--hero { color: var(--gold-bright); }

/* ---------- Reveal on scroll (JS only, respects reduced motion) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js [data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-inner > * { animation: none !important; }
}

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--cobalt-night);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  background: #0c1830;
  box-shadow: 0 4px 24px rgba(6, 12, 28, 0.45);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  font-family: var(--display-font);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-mark { margin-right: 4px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: rgba(248, 246, 241, 0.86);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-links a:hover { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }

.nav-links a:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-expand:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cobalt-night);
  padding: 150px 0 90px;
}

.hero-photo,
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo img { object-fit: cover; object-position: center; }

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(12, 22, 46, 0.94) 0%, rgba(16, 31, 62, 0.82) 42%, rgba(20, 38, 74, 0.42) 78%, rgba(16, 31, 62, 0.28) 100%),
    linear-gradient(to top, rgba(10, 18, 38, 0.65) 0%, rgba(10, 18, 38, 0) 40%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
}

.hero-inner > * { animation: heroRise 0.9s ease both; }
.hero-inner > *:nth-child(2) { animation-delay: 0.12s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.24s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.36s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.48s; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 600;
  color: var(--paper);
  max-width: 15ch;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-bright);
}

.hero-lede {
  margin-top: 26px;
  max-width: 56ch;
  font-size: 1.16rem;
  color: rgba(248, 246, 241, 0.92);
}

.hero-actions { margin-top: 38px; }

.btn-primary {
  display: inline-block;
  background: var(--gold-bright);
  color: #1c1608;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 3px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary:hover {
  background: #f3c65a;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.hero-fats {
  margin-top: 44px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-pale);
}

.hero-fats .dot { color: var(--gold-bright); font-size: 0.7rem; letter-spacing: 0; }

/* ---------- Stitch band (vyshyvanka signature) ---------- */

.stitch-band {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34px;
  background-color: var(--cobalt-night);
  background-image: var(--stitch);
  background-repeat: repeat-x;
  background-position: center;
  border-top: 1px solid rgba(234, 182, 63, 0.35);
  z-index: 3;
}

.stitch-band--footer {
  position: static;
  border-top: none;
  border-bottom: 1px solid rgba(234, 182, 63, 0.3);
}

/* ---------- Principles ---------- */

.principles {
  background: var(--linen);
  border-bottom: 1px solid var(--linen-deep);
  padding: 84px 28px;
}

.principles-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
}

.principle { position: relative; padding-top: 22px; }

.principle::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px;
  height: 4px;
  background: var(--berry);
}

.p-word {
  display: block;
  font-family: var(--display-font);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cobalt);
  margin-bottom: 8px;
}

.principle h3 { font-size: 1.55rem; margin-bottom: 12px; }

.principle p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Recipes ---------- */

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.recipes-section { padding: 100px 0 110px; background: var(--paper); }

.recipes-header { max-width: 640px; margin-bottom: 64px; }

.recipes-header h2 { font-size: clamp(2rem, 4vw, 3rem); }

.recipes-sub { margin-top: 16px; color: var(--ink-soft); font-size: 1.08rem; }

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px;
}

.recipe-card {
  background: #fffdf8;
  border: 1px solid var(--linen-deep);
  border-top: 4px solid var(--cobalt);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(27, 50, 96, 0.13);
}

.recipe-img-wrap { overflow: hidden; aspect-ratio: 16 / 10; }

.recipe-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.recipe-card:hover .recipe-img { transform: scale(1.045); }

.recipe-info { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }

.recipe-info h3 { font-size: 1.65rem; margin-bottom: 12px; }

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cobalt);
  margin-bottom: 14px;
}

.recipe-desc { color: var(--ink-soft); font-size: 1rem; margin-bottom: 22px; flex: 1; }

.btn-expand {
  align-self: flex-start;
  background: none;
  border: 2px solid var(--cobalt);
  color: var(--cobalt);
  font-family: var(--body-font);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 22px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-expand:hover { background: var(--cobalt); color: var(--paper); }

.recipe-details {
  display: none;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px dashed var(--linen-deep);
}

.recipe-details.active { display: block; }

.recipe-details h4 {
  font-family: var(--body-font);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--berry);
  margin: 20px 0 10px;
}

.recipe-details h4:first-child { margin-top: 0; }

.recipe-details ul, .recipe-details ol { padding-left: 22px; }

.recipe-details li { margin-bottom: 8px; color: var(--ink-soft); font-size: 0.98rem; }

.recipe-details ol li { padding-left: 4px; }

/* ---------- About ---------- */

.about-section {
  background: var(--cobalt-deep);
  color: var(--paper);
  padding: 100px 28px;
}

.about-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 70px;
  align-items: center;
}

.about-figure {
  position: relative;
  border-radius: 4px;
}

.about-figure::after {
  content: "";
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 2px solid var(--gold-bright);
  border-radius: 4px;
  pointer-events: none;
}

.about-figure img {
  position: relative;
  z-index: 1;
  border-radius: 4px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.about-copy .kicker { color: var(--gold-bright); }

.about-copy h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 22px; }

.about-copy p { color: rgba(248, 246, 241, 0.9); margin-bottom: 18px; max-width: 58ch; }

.btn-secondary {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold-bright);
  border: 2px solid var(--gold-bright);
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-secondary:hover { background: var(--gold-bright); color: #1c1608; }

/* ---------- Footer ---------- */

.footer { background: var(--cobalt-night); color: rgba(248, 246, 241, 0.85); }

.footer .container { padding-top: 70px; padding-bottom: 34px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 54px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(248, 246, 241, 0.14);
}

.footer-logo {
  font-family: var(--display-font);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 14px;
}

.footer-brand p { font-size: 0.98rem; max-width: 34ch; }

.footer h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 9px; }

.footer-links a {
  color: rgba(248, 246, 241, 0.85);
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.25s ease;
}

.footer-links a:hover { color: var(--gold-bright); }

.footer-company p { font-size: 0.95rem; line-height: 1.75; }

.footer-bottom { padding-top: 26px; font-size: 0.9rem; color: rgba(248, 246, 241, 0.6); }

/* ---------- Legal pages ---------- */

.legal-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 150px 28px 90px;
}

.legal-main h1 { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 10px; }

.legal-updated { color: var(--ink-faint); font-style: italic; margin-bottom: 40px; }

.legal-main h2 {
  font-size: 1.45rem;
  margin: 40px 0 14px;
  padding-top: 8px;
}

.legal-main p { margin-bottom: 16px; color: var(--ink-soft); }

.legal-main ul { padding-left: 24px; margin-bottom: 16px; }

.legal-main li { margin-bottom: 8px; color: var(--ink-soft); }

.legal-main a { color: var(--cobalt); }

.legal-main a:hover { color: var(--berry); }

.company-contact-box {
  background: var(--linen);
  border-left: 4px solid var(--cobalt);
  border-radius: 4px;
  padding: 28px 30px;
  margin-top: 34px;
}

.company-contact-box h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.company-contact-box p { margin-bottom: 6px; color: var(--ink); }

.footer .company-contact-box {
  background: none;
  border-left: none;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .recipes-grid { gap: 30px; }
  .about-inner { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #0c1830;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 28px 20px;
    box-shadow: 0 18px 30px rgba(6, 12, 28, 0.5);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a { display: block; padding: 12px 0; border-bottom: none; }

  .hero { min-height: 0; padding: 130px 0 80px; }

  .principles { padding: 64px 24px; }

  .principles-grid { grid-template-columns: 1fr; gap: 40px; }

  .recipes-section { padding: 76px 0 84px; }

  .recipes-grid { grid-template-columns: 1fr; }

  .about-section { padding: 76px 24px; }

  .about-inner { grid-template-columns: 1fr; gap: 52px; }

  .about-figure { max-width: 480px; }

  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 480px) {
  body { font-size: 17.5px; }

  .nav-container { padding: 14px 20px; }

  .nav-logo { font-size: 1.15rem; }

  .hero-inner { padding: 0 20px; }

  .hero h1 { font-size: 2.35rem; }

  .hero-lede { font-size: 1.05rem; }

  .btn-primary { display: block; text-align: center; }

  .container { padding: 0 20px; }

  .recipe-info { padding: 24px 22px 28px; }

  .about-figure::after { inset: -10px 10px 10px -10px; }

  .legal-main { padding: 130px 20px 70px; }

  .company-contact-box { padding: 22px 20px; }
}
