/* Robrub Kitchie, Scottish editorial recipe journal */

:root {
  --oat: #f3efe4;
  --cream: #faf7ee;
  --peat: #241d13;
  --peat-deep: #1a140d;
  --ink-soft: #57503f;
  --heather: #5b3d66;
  --heather-soft: #b9a3c2;
  --moss: #3e5a34;
  --bracken: #a4671e;
  --line: #ddd5c2;
  --shadow: 0 18px 48px rgba(36, 29, 19, 0.14);
}

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

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: "Mulish", "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--peat);
  background: var(--oat);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--moss); }

/* ---------- Sidebar ---------- */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 264px;
  background: var(--peat);
  color: var(--oat);
  display: flex;
  flex-direction: column;
  padding: 2.4rem 1.9rem 1.6rem;
  z-index: 60;
  transition: transform 0.35s ease;
}

.brand { text-decoration: none; color: var(--oat); }

.brand .brand-name {
  font-family: "Vollkorn", Georgia, serif;
  font-size: 1.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand .brand-word {
  display: block;
  font-family: "Vollkorn", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.18rem;
  color: var(--heather-soft);
}

.brand-tag {
  margin-top: 0.85rem;
  font-size: 0.71rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, 0.55);
}

.side-nav {
  margin-top: 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.side-nav a {
  color: rgba(243, 239, 228, 0.82);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  padding: 0.55rem 0.65rem;
  border-left: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.side-nav a:hover {
  color: #fff;
  border-left-color: var(--heather-soft);
  background: rgba(255, 255, 255, 0.05);
}

.side-foot {
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(243, 239, 228, 0.16);
  font-size: 0.72rem;
  line-height: 1.9;
}

.side-foot a {
  color: rgba(243, 239, 228, 0.6);
  text-decoration: none;
  display: block;
}

.side-foot a:hover { color: #fff; }

.side-foot .side-note {
  margin-top: 0.7rem;
  color: rgba(243, 239, 228, 0.38);
  letter-spacing: 0.05em;
}

/* Mobile toggle */

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 80;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: var(--peat);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 6px 18px rgba(26, 20, 13, 0.35);
}

.sidebar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--oat);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.nav-open .sidebar-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .sidebar-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .sidebar-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Layout ---------- */

.content { margin-left: 264px; }

.section {
  padding: 5.6rem 7vw;
}

.section-inner { max-width: 960px; margin: 0 auto; }

.section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--heather);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.section h2 {
  font-family: "Vollkorn", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.55rem);
  line-height: 1.18;
  margin-bottom: 1.1rem;
}

.section-lead {
  max-width: 620px;
  color: var(--ink-soft);
  margin-bottom: 2.6rem;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 20, 13, 0.42) 0%, rgba(26, 20, 13, 0.55) 55%, rgba(26, 20, 13, 0.78) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
  padding: 2rem 6vw;
  max-width: 860px;
}

.hero-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--heather-soft);
  font-weight: 700;
  margin-bottom: 1.3rem;
}

.hero h1 {
  font-family: "Vollkorn", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 2.1rem;
  color: rgba(250, 247, 238, 0.88);
}

.hero-cta {
  display: inline-block;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid rgba(250, 247, 238, 0.55);
  padding: 0.85rem 2.1rem;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hero-cta:hover {
  background: var(--cream);
  color: var(--peat);
  border-color: var(--cream);
}

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

.timeline {
  list-style: none;
  position: relative;
  margin-top: 2.2rem;
  padding-left: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 27px;
  width: 2px;
  background: linear-gradient(180deg, var(--heather) 0%, var(--line) 100%);
}

.principle {
  position: relative;
  padding: 0 0 2.6rem 5rem;
}

.principle:last-child { padding-bottom: 0.4rem; }

.principle-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--heather);
  color: var(--heather);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Vollkorn", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  z-index: 2;
}

.principle h3 {
  font-family: "Vollkorn", Georgia, serif;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.25;
}

.principle .principle-sub {
  display: block;
  font-family: "Mulish", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bracken);
  font-weight: 700;
  margin: 0.3rem 0 0.6rem;
}

.principle p { color: var(--ink-soft); max-width: 560px; }

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

.accordion { display: flex; flex-direction: column; gap: 1.05rem; }

.recipe-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.recipe-card.open {
  border-color: var(--heather);
  box-shadow: var(--shadow);
}

.recipe-head {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  text-align: left;
  padding: 1.35rem 1.6rem;
  font-family: inherit;
  color: inherit;
}

.r-index {
  font-family: "Vollkorn", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--heather);
  min-width: 2rem;
}

.r-titlewrap { flex: 1; }

.recipe-head h3 {
  font-family: "Vollkorn", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.25;
}

.r-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.35rem;
  font-size: 0.71rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

.chev {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--heather);
  border-bottom: 2px solid var(--heather);
  transform: rotate(45deg);
  transition: transform 0.35s ease;
  flex-shrink: 0;
  margin-right: 0.2rem;
}

.recipe-card.open .chev { transform: rotate(225deg); }

.recipe-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
}

.recipe-card.open .recipe-body { max-height: 3400px; }

.recipe-body-inner {
  padding: 0.4rem 1.6rem 2rem;
  border-top: 1px solid var(--line);
}

.recipe-lead {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.7rem;
  align-items: center;
  padding-top: 1.5rem;
}

.recipe-lead img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 4px;
}

.recipe-lead p { color: var(--ink-soft); }

.recipe-cols {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.2rem;
  margin-top: 1.9rem;
}

.recipe-cols h4 {
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--heather);
  margin-bottom: 0.85rem;
}

.recipe-cols ul { list-style: none; }

.recipe-cols ul li {
  padding: 0.42rem 0;
  border-bottom: 1px dotted var(--line);
  font-size: 0.93rem;
}

.recipe-cols ol {
  list-style: none;
  counter-reset: step;
}

.recipe-cols ol li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.05rem 2.5rem;
  font-size: 0.95rem;
}

.recipe-cols ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--peat);
  color: var(--oat);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.about { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p { color: var(--ink-soft); margin-bottom: 1.1rem; }

.about-text p strong { color: var(--peat); }

.quote-box {
  background: var(--peat);
  color: var(--oat);
  padding: 2.3rem 2.1rem;
  border-radius: 6px;
  position: relative;
}

.quote-box::before {
  content: "\201C";
  font-family: "Vollkorn", Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--heather-soft);
  display: block;
  margin-bottom: 0.4rem;
}

.quote-box blockquote {
  font-family: "Vollkorn", Georgia, serif;
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.65;
  border: none;
}

.quote-box figcaption {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, 0.55);
  font-weight: 700;
}

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

.site-footer {
  padding: 2.6rem 7vw;
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }

.footer-links a { color: var(--ink-soft); text-decoration: none; }

.footer-links a:hover { color: var(--heather); text-decoration: underline; }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

.legal-page { background: var(--oat); }

.legal-bar {
  background: var(--peat);
  padding: 1.15rem 6vw;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}

.legal-bar .brand-mini {
  font-family: "Vollkorn", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--oat);
  text-decoration: none;
}

.legal-bar nav { display: flex; gap: 1.4rem; }

.legal-bar nav a {
  color: rgba(243, 239, 228, 0.7);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-bar nav a:hover { color: #fff; }

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.6rem 6vw 4.2rem;
}

.legal-wrap h1 {
  font-family: "Vollkorn", Georgia, serif;
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.legal-updated {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bracken);
  font-weight: 700;
  margin-bottom: 2.1rem;
}

.legal-wrap h2 {
  font-family: "Vollkorn", Georgia, serif;
  font-size: 1.35rem;
  margin: 2.1rem 0 0.7rem;
}

.legal-wrap p, .legal-wrap li { color: var(--ink-soft); margin-bottom: 0.9rem; }

.legal-wrap ul { padding-left: 1.3rem; }

.legal-wrap a { color: var(--moss); }

.company-contact-box {
  margin-top: 3rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--heather);
  border-radius: 4px;
  padding: 1.6rem 1.8rem;
  font-size: 0.92rem;
}

.company-contact-box h3 {
  font-family: "Vollkorn", Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  color: var(--peat);
}

.company-contact-box p { margin-bottom: 0.3rem; color: var(--ink-soft); }

.legal-footnote {
  margin-top: 2.4rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- Breakpoints ---------- */

@media (max-width: 1100px) {
  .sidebar { width: 212px; padding: 2rem 1.4rem 1.3rem; }
  .content { margin-left: 212px; }
  .section { padding: 4.6rem 5vw; }
  .recipe-lead { grid-template-columns: 250px 1fr; }
  .about-grid { gap: 2.2rem; }
}

@media (max-width: 760px) {
  .sidebar {
    width: 272px;
    transform: translateX(-100%);
    box-shadow: 26px 0 60px rgba(26, 20, 13, 0.35);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-toggle { display: flex; }
  .content { margin-left: 0; }
  .hero { min-height: 78vh; }
  .section { padding: 3.8rem 6vw; }
  .recipe-lead { grid-template-columns: 1fr; }
  .recipe-lead img { height: 230px; }
  .recipe-cols { grid-template-columns: 1fr; gap: 1.6rem; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 440px) {
  html { font-size: 17px; }
  .section { padding: 3.1rem 5.5vw; }
  .hero h1 { font-size: 2.15rem; }
  .hero-sub { font-size: 0.98rem; }
  .recipe-head { padding: 1.1rem 1.05rem; gap: 0.85rem; }
  .recipe-body-inner { padding: 0.3rem 1.05rem 1.6rem; }
  .principle { padding-left: 4.1rem; }
  .principle-dot { width: 46px; height: 46px; }
  .timeline::before { left: 22px; }
  .quote-box { padding: 1.7rem 1.4rem; }
}
