/* Filsou Kitchin, Jamaican cooking without vegetable oil */

:root {
  --ink: #1f2a22;
  --ink-soft: #47554b;
  --paper: #faf5ea;
  --paper-deep: #f2ead8;
  --thicket: #143526;
  --thicket-deep: #0d2419;
  --gold: #d9a441;
  --gold-deep: #b07f24;
  --bonnet: #b34725;
  --line: #d8cdb4;
  --serif: 'Rozha One', 'Georgia', serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

/* ============ Masthead (centered magazine style) ============ */

.masthead {
  background: var(--paper);
  border-bottom: 3px double var(--line);
  padding: 26px 32px 20px;
  position: relative;
}

.mast-nav {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.mast-links { display: flex; gap: 30px; }
.mast-left { justify-content: flex-end; }
.mast-right { justify-content: flex-start; }

.mast-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s;
}

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

.mast-logo {
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mast-emoji { font-size: 26px; line-height: 1; }

.mast-name {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--thicket);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.mast-tag {
  font-size: 12.5px;
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.burger {
  display: none;
  position: absolute;
  right: 22px;
  top: 34px;
  width: 42px;
  height: 36px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px 9px;
  flex-direction: column;
  justify-content: space-between;
}

.burger span { display: block; height: 2px; background: var(--thicket); border-radius: 2px; }

/* ============ Hero with Ken Burns ============ */

.hero {
  position: relative;
  height: min(78vh, 680px);
  min-height: 460px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: -6%;
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.12) translate(1.5%, -1.5%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none; }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 24, 16, 0.92) 0%, rgba(10, 24, 16, 0.55) 34%, rgba(10, 24, 16, 0.08) 68%, rgba(10, 24, 16, 0) 100%);
}

.hero-copy {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px 64px;
  color: #fdf9ee;
}

.hero-kicker {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.08;
  max-width: 15ch;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.35);
}

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

.hero-sub {
  margin-top: 18px;
  max-width: 58ch;
  font-size: 19px;
  color: #f2ecd9;
}

/* ============ Quote band (principles) ============ */

.quote-band {
  background: linear-gradient(120deg, var(--thicket-deep), var(--thicket) 55%, #1a4230);
  color: #f6efdc;
  padding: 84px 32px;
  text-align: center;
}

.band-inner { max-width: 860px; margin: 0 auto; }

.band-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}

.band-quote p {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.42;
  color: #fcf7e8;
}

.band-pillars {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.pillar-dot { color: var(--bonnet); font-size: 11px; align-self: center; }

.band-cta {
  display: inline-block;
  margin-top: 38px;
  color: #fcf7e8;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 5px;
  transition: color .25s, border-color .25s;
}

.band-cta:hover { color: var(--gold); border-bottom-color: var(--bonnet); }

/* ============ Recipes: numbered editorial list ============ */

.recipes {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 32px 40px;
}

.section-head { max-width: 720px; margin-bottom: 56px; }

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bonnet);
  margin-bottom: 12px;
}

.recipes h2, .about h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  color: var(--thicket);
  line-height: 1.15;
}

.section-intro { margin-top: 16px; color: var(--ink-soft); }

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

.recipe-entry {
  border-top: 1px solid var(--line);
}

.recipe-entry:last-child { border-bottom: 1px solid var(--line); }

.recipe-head {
  width: 100%;
  display: grid;
  grid-template-columns: 110px 1fr 180px;
  gap: 30px;
  align-items: center;
  padding: 34px 6px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: background .25s;
}

.recipe-head:hover { background: var(--paper-deep); }

.recipe-num {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--gold-deep);
  opacity: 0.85;
}

.is-open .recipe-num { color: var(--bonnet); opacity: 1; }

.recipe-lead { display: block; }

.recipe-title {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  color: var(--thicket);
  margin-bottom: 8px;
}

.recipe-desc {
  display: block;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.recipe-meta {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.recipe-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 22px rgba(20, 53, 38, 0.16);
}

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

.recipe-head:hover .recipe-thumb img { transform: scale(1.05); }

.recipe-details {
  padding: 6px 6px 46px calc(110px + 36px);
}

.detail-cols {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  background: var(--paper-deep);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 34px 38px;
}

.recipe-details h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--bonnet);
  margin-bottom: 14px;
}

.detail-ing ul { list-style: none; }

.detail-ing li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: 16.5px;
  border-bottom: 1px dotted var(--line);
}

.detail-ing li::before {
  content: '\2666';
  position: absolute;
  left: 0;
  color: var(--gold-deep);
  font-size: 11px;
  top: 12px;
}

.detail-steps ol {
  list-style: none;
  counter-reset: step;
}

.detail-steps li {
  counter-increment: step;
  padding: 9px 0 9px 44px;
  position: relative;
  font-size: 17px;
}

.detail-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 9px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--thicket);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ About: two columns with decorative divider ============ */

.about {
  padding: 90px 32px 110px;
}

.about-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr auto 1fr;
  gap: 48px;
  align-items: center;
}

.about-main p { margin-top: 18px; color: var(--ink-soft); }

.about-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 220px;
  justify-content: center;
}

.about-divider span {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, var(--gold-deep), transparent);
}

.about-divider i {
  font-style: normal;
  color: var(--bonnet);
  font-size: 20px;
}

.about-side p { color: var(--ink-soft); font-size: 17px; }

.about-cta {
  display: inline-block;
  margin-top: 22px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bonnet);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

.about-cta:hover { color: var(--thicket); }

/* ============ Footer ============ */

.site-footer {
  background: var(--thicket-deep);
  color: #d9d2bd;
  padding: 70px 32px 40px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.footer-emoji { font-size: 24px; display: block; margin-bottom: 8px; }

.footer-name {
  font-family: var(--serif);
  font-size: 26px;
  color: #fcf7e8;
}

.footer-line { margin-top: 8px; font-size: 15px; color: #b8b19a; }

.footer-nav, .footer-legal {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 30px;
}

.footer-nav a, .footer-legal a {
  color: #e6ddc2;
  text-decoration: none;
  font-size: 14.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-nav a:hover, .footer-legal a:hover { color: var(--gold); }

.footer-legal a { color: var(--gold); }

.footer-company {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(217, 164, 65, 0.25);
  font-size: 14px;
  line-height: 1.8;
  color: #a9a28c;
}

.footer-copy { margin-top: 26px; font-size: 13px; color: #7e7864; }

/* ============ Legal pages ============ */

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

.legal-wrap h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 46px);
  color: var(--thicket);
  margin-bottom: 10px;
}

.legal-updated {
  font-size: 14px;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 36px;
}

.legal-wrap h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--bonnet);
  margin: 40px 0 12px;
}

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

.legal-wrap ul { padding-left: 24px; margin-bottom: 12px; }

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

.company-contact-box {
  margin-top: 56px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 28px 32px;
}

.company-contact-box h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--thicket);
  margin-bottom: 10px;
}

.company-contact-box p { margin-bottom: 4px; font-size: 16px; }

.legal-back {
  display: inline-block;
  margin-bottom: 34px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bonnet);
}

/* ============ Reveal: scroll-driven animation with JS fallback ============ */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv {
      animation: rvIn linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

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

.rv-js { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rv-js.rv-shown { opacity: 1; transform: none; }

/* ============ Breakpoints: 1120 / 800 / 480 ============ */

@media (max-width: 1120px) {
  .mast-nav { gap: 16px; }
  .mast-links { gap: 20px; }
  .recipe-head { grid-template-columns: 84px 1fr 150px; gap: 22px; }
  .recipe-num { font-size: 52px; }
  .recipe-details { padding-left: calc(84px + 28px); }
  .about-inner { gap: 34px; }
}

@media (max-width: 800px) {
  .masthead { padding: 20px 22px 16px; }
  .mast-nav { grid-template-columns: 1fr; }
  .mast-links { display: none; flex-direction: column; align-items: center; gap: 14px; padding-top: 18px; }
  .mast-nav.nav-open .mast-links { display: flex; }
  .mast-nav.nav-open .mast-left { order: 2; }
  .mast-nav.nav-open .mast-right { order: 3; padding-top: 0; }
  .burger { display: flex; }
  .hero-copy { padding: 0 22px 48px; }
  .quote-band { padding: 64px 22px; }
  .recipes { padding: 70px 22px 24px; }
  .recipe-head { grid-template-columns: 60px 1fr; }
  .recipe-thumb { grid-column: 2; margin-top: 4px; max-width: 320px; }
  .recipe-num { font-size: 42px; align-self: start; }
  .recipe-details { padding: 0 0 40px 0; }
  .detail-cols { grid-template-columns: 1fr; gap: 30px; padding: 26px 24px; }
  .about { padding: 70px 22px 84px; }
  .about-inner { grid-template-columns: 1fr; gap: 30px; }
  .about-divider { flex-direction: row; min-height: 0; width: 100%; }
  .about-divider span { height: 1px; flex: 1; width: auto; background: linear-gradient(to right, transparent, var(--gold-deep), transparent); }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .mast-name { font-size: 27px; }
  .hero { min-height: 400px; }
  .hero-sub { font-size: 17px; }
  .band-quote p { font-size: 21px; }
  .recipe-head { grid-template-columns: 1fr; gap: 10px; padding: 26px 2px; }
  .recipe-num { font-size: 36px; }
  .recipe-thumb { grid-column: 1; max-width: 100%; }
  .recipe-title { font-size: 23px; }
  .detail-cols { padding: 20px 16px; }
  .detail-steps li { padding-left: 38px; }
  .site-footer { padding: 54px 22px 32px; }
  .legal-wrap { padding: 44px 22px 70px; }
}
