/* Vindre Cegin. Welsh recipe journal. Slate, dragon red, daffodil gold. */

:root {
  --slate: #2B3740;
  --slate-deep: #1F2930;
  --stone: #F3F2ED;
  --stone-2: #EAE9E1;
  --card: #FFFDF7;
  --ink: #26303A;
  --ink-soft: #4A555F;
  --dragon: #A2312F;
  --dragon-deep: #86201F;
  --gold: #C9971F;
  --gold-soft: #E3C878;
  --leek: #5E7256;
  --line: #D9D7CB;
  --light: #F5F3EC;
  --light-soft: #D7D9D6;
  --carthen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='12' viewBox='0 0 56 12'%3E%3Crect width='56' height='12' fill='%23A2312F'/%3E%3Crect width='56' height='1.5' fill='%23C9971F'/%3E%3Crect y='10.5' width='56' height='1.5' fill='%23C9971F'/%3E%3Cpath d='M7 2 L11 6 L7 10 L3 6 Z' fill='%232B3740'/%3E%3Cpath d='M21 2 L25 6 L21 10 L17 6 Z' fill='%23F3F2ED'/%3E%3Cpath d='M35 2 L39 6 L35 10 L31 6 Z' fill='%232B3740'/%3E%3Cpath d='M49 2 L53 6 L49 10 L45 6 Z' fill='%23F3F2ED'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Carthen band (Welsh tapestry ribbon) ---------- */

.carthen-band {
  height: 12px;
  background-image: var(--carthen);
  background-repeat: repeat-x;
  background-size: 56px 12px;
}

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

.kicker {
  font-family: 'Figtree', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dragon);
  margin-bottom: 14px;
}

.kicker-light { color: var(--gold-soft); }

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

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(243, 242, 237, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(31, 41, 48, 0.08);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: 'Besley', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-logo span:not(.logo-emoji) {
  color: var(--dragon);
  font-style: italic;
  font-weight: 600;
}

.logo-emoji { font-style: normal; }

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

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--dragon);
  border-bottom-color: var(--gold);
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(168deg, rgba(31, 41, 48, 0.94) 0%, rgba(31, 41, 48, 0.72) 45%, rgba(43, 55, 64, 0.55) 100%),
    url('https://images.unsplash.com/photo-1547592166-23ac45744acd?w=1600&q=80') center 40% / cover no-repeat;
}

.hero-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 160px 32px 90px;
}

.hero h1 {
  font-family: 'Besley', serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08;
  color: var(--light);
  max-width: 15ch;
  margin-bottom: 26px;
}

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

.hero-sub {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--light-soft);
  max-width: 56ch;
  margin-bottom: 38px;
}

.btn-hero {
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-deep);
  background: var(--gold-soft);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 3px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-hero:hover,
.btn-hero:focus-visible {
  background: #EFD79A;
  transform: translateY(-2px);
}

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

.principles {
  background: var(--stone-2);
  padding: 88px 0;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.principle {
  border-top: 3px solid var(--dragon);
  padding-top: 26px;
}

.principle-word {
  display: block;
  font-family: 'Besley', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--dragon);
  margin-bottom: 10px;
}

.principle h3 {
  font-family: 'Figtree', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

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

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

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

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

.recipes-header h2,
.about-text h2 {
  font-family: 'Besley', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

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

.recipe-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(31, 41, 48, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.recipe-card:hover {
  box-shadow: 0 12px 38px rgba(31, 41, 48, 0.12);
  transform: translateY(-3px);
}

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

.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; }

.recipe-info h3 {
  font-family: 'Besley', serif;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin-bottom: 16px;
}

.recipe-meta span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leek);
  padding: 0 14px;
  border-left: 2px solid var(--gold);
}

.recipe-meta span:first-child { padding-left: 0; border-left: none; }

.recipe-desc {
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.btn-expand {
  font-family: 'Figtree', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dragon);
  background: none;
  border: 1.5px solid var(--dragon);
  border-radius: 3px;
  padding: 11px 24px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn-expand:hover,
.btn-expand:focus-visible {
  background: var(--dragon);
  color: var(--light);
}

.btn-expand .chev { font-size: 0.8em; }

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

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

.recipe-details h4 {
  font-family: 'Figtree', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dragon);
  margin: 22px 0 12px;
}

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

.recipe-details ul,
.recipe-details ol {
  padding-left: 22px;
  color: var(--ink-soft);
}

.recipe-details li { margin-bottom: 8px; }

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

.about-section {
  background: var(--slate);
  color: var(--light);
}

.about-section .container { padding-top: 96px; padding-bottom: 104px; }

.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: center;
}

.about-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.about-text .kicker { color: var(--gold-soft); }

.about-text h2 { color: var(--light); }

.about-text p {
  color: var(--light-soft);
  margin-bottom: 18px;
  font-size: 1.06rem;
}

.about-text p:last-child { margin-bottom: 0; }

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

.footer {
  background: var(--slate-deep);
  color: var(--light-soft);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 3fr 4fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(245, 243, 236, 0.14);
}

.footer-logo {
  font-family: 'Besley', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--light);
  margin-bottom: 14px;
}

.footer-brand p { font-size: 0.98rem; }

.footer h4 {
  font-family: 'Figtree', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 16px;
}

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

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

.footer-links a {
  color: var(--light-soft);
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--gold-soft); }

.company-contact-box p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer .company-contact-box {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

.footer-bottom {
  padding-top: 26px;
  font-size: 0.88rem;
  color: rgba(215, 217, 214, 0.75);
}

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

.legal-hero {
  background: var(--slate);
  padding: 150px 0 60px;
}

.legal-hero h1 {
  font-family: 'Besley', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--light);
}

.legal-hero .kicker { color: var(--gold-soft); margin-bottom: 10px; }

.legal-band { height: 12px; background-image: var(--carthen); background-repeat: repeat-x; background-size: 56px 12px; }

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 32px 90px;
}

.legal-content h2 {
  font-family: 'Besley', serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 40px 0 14px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.legal-content ul { padding-left: 24px; margin-bottom: 18px; }

.legal-content a { color: var(--dragon); }

.legal-content a:hover { color: var(--dragon-deep); }

.legal-content .company-contact-box {
  margin-top: 48px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--dragon);
  border-radius: 6px;
  padding: 26px 30px;
}

.legal-content .company-contact-box h4 {
  font-family: 'Figtree', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dragon);
  margin-bottom: 12px;
}

.legal-content .company-contact-box p {
  margin-bottom: 0;
  color: var(--ink);
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Reveal on scroll ---------- */

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

html.js [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .recipe-img, .recipe-card, .btn-hero { transition: none; }
}

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

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

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

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--stone);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    display: none;
    box-shadow: 0 14px 30px rgba(31, 41, 48, 0.12);
  }

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

  .nav-links li { border-top: 1px solid var(--line); }

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

  .hero { min-height: 78vh; }
  .hero-inner { padding: 130px 24px 70px; }
  .hero-sub { font-size: 1.08rem; }

  .container, .nav-container { padding-left: 24px; padding-right: 24px; }

  .principles { padding: 64px 0; }
  .principles-grid { grid-template-columns: 1fr; gap: 36px; }

  .recipes-section { padding: 72px 0 80px; }
  .recipes-grid { grid-template-columns: 1fr; }

  .about-section .container { padding-top: 68px; padding-bottom: 76px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-img-wrap img { aspect-ratio: 16 / 11; }

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

  .legal-hero { padding: 120px 0 48px; }
}

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

  .hero h1 { font-size: 2.35rem; }
  .hero-sub { font-size: 1rem; }
  .btn-hero { padding: 14px 28px; font-size: 0.92rem; }

  .recipe-info { padding: 24px 22px 28px; }
  .recipe-meta span { padding: 0 10px; }

  .container, .nav-container { padding-left: 18px; padding-right: 18px; }
  .legal-content { padding: 48px 18px 70px; }
  .legal-content .company-contact-box { padding: 20px 20px; }
}
