/* Camllo Coghina, Sardinian island kitchen. */

:root {
  --bone: #f7f1e3;
  --plaster: #efe5cf;
  --ink: #2a2118;
  --ink-soft: #5c5142;
  --myrtle: #5f2b3d;
  --myrtle-deep: #421f2c;
  --saffron: #d9a54a;
  --saffron-text: #8a5c12;
  --sea: #31586a;
  --line: #ddcfae;
  --rail-w: 248px;
  --serif: "Sorts Mill Goudy", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, .acc-num, .aq-text, .foot-name {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
}

/* ---------- Left rail ---------- */

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  background: var(--bone);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 2.4rem 1.7rem 1.6rem;
  z-index: 40;
}

.rail-brand { display: flex; flex-direction: column; margin-bottom: 2.8rem; }
.rail-mark { font-size: 1.7rem; line-height: 1; margin-bottom: .7rem; }
.rail-name {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--myrtle);
  letter-spacing: .01em;
}
.rail-word {
  font-size: .8rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--saffron-text);
  margin-top: .15rem;
}

.rail-nav { display: flex; flex-direction: column; gap: .35rem; }
.rail-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .98rem;
  font-weight: 500;
  padding: .5rem .75rem;
  border-left: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.rail-nav a:hover {
  color: var(--myrtle);
  border-left-color: var(--saffron);
  background: rgba(217, 165, 74, .09);
}

.rail-foot {
  margin-top: auto;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.rail-foot a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .04em;
}
.rail-foot a:hover { color: var(--myrtle); text-decoration: underline; }

/* Mobile toggle + scrim */

.rail-toggle {
  display: none;
  position: fixed;
  top: .9rem;
  left: .9rem;
  z-index: 60;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bone);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.rail-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--myrtle);
  transition: transform .25s ease, opacity .25s ease;
}
.rail-open .rail-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rail-open .rail-toggle span:nth-child(2) { opacity: 0; }
.rail-open .rail-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.rail-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 33, 24, .5);
  z-index: 30;
}

/* ---------- Page shell ---------- */

.page { margin-left: var(--rail-w); }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 2.4rem;
}

.kicker {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--saffron-text);
  margin-bottom: .8rem;
}

h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--myrtle); margin-bottom: 1.4rem; }

.section-lede {
  max-width: 42rem;
  color: var(--ink-soft);
  margin-bottom: 2.6rem;
}

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

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 33, 24, .38) 0%, rgba(66, 31, 44, .58) 62%, rgba(42, 33, 24, .78) 100%);
}
.hero-body {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  padding: 6rem 2rem;
  color: #fdf9ef;
}
.hero-kicker {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.2rem);
  margin-bottom: 1.3rem;
  text-shadow: 0 2px 22px rgba(42, 33, 24, .45);
}
.hero h1 em {
  font-style: italic;
  color: var(--saffron);
}
.hero-sub {
  font-size: 1.12rem;
  line-height: 1.7;
  color: rgba(253, 249, 239, .92);
  max-width: 38rem;
  margin: 0 auto 2.3rem;
}
.hero-cta {
  display: inline-block;
  padding: .95rem 2.5rem;
  border: 1px solid var(--saffron);
  color: #fdf9ef;
  background: rgba(217, 165, 74, .14);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .85rem;
  transition: background .25s ease, color .25s ease;
}
.hero-cta:hover { background: var(--saffron); color: var(--myrtle-deep); }

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

.principles { padding: 6rem 0 5rem; }

.timeline {
  list-style: none;
  position: relative;
  margin-top: 2.6rem;
  padding-left: 2.2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--saffron), var(--myrtle));
}
.tl-item { position: relative; padding-bottom: 2.8rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-node {
  position: absolute;
  left: -2.2rem;
  top: .5rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bone);
  border: 2px solid var(--saffron-text);
  box-shadow: inset 0 0 0 4px var(--bone), inset 0 0 0 10px var(--myrtle);
}
.tl-card { max-width: 44rem; }
.tl-card h3 { font-size: 1.55rem; color: var(--myrtle); }
.tl-gloss {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--saffron-text);
  margin: .25rem 0 .7rem;
}
.tl-card p:last-child { color: var(--ink-soft); }

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

.recipes {
  padding: 5.5rem 0 6rem;
  background: var(--plaster);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.acc-item { border-bottom: 1px solid var(--line); background: transparent; }

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.45rem .6rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  color: var(--ink);
  transition: background .2s ease;
}
.acc-head:hover { background: rgba(95, 43, 61, .05); }

.acc-num {
  font-size: 1.9rem;
  color: var(--saffron-text);
  min-width: 2.6rem;
  line-height: 1;
}
.acc-titles { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.acc-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--myrtle);
  line-height: 1.2;
}
.acc-sub { font-size: .9rem; color: var(--ink-soft); margin-top: .15rem; }

.acc-meta {
  display: flex;
  gap: 1rem;
  font-size: .8rem;
  color: var(--ink-soft);
  letter-spacing: .04em;
  white-space: nowrap;
}
.acc-meta span { padding-left: 1rem; border-left: 1px solid var(--line); }
.acc-meta span:first-child { border-left: none; padding-left: 0; }

.acc-chev {
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--myrtle);
  border-bottom: 2px solid var(--myrtle);
  transform: rotate(45deg);
  transition: transform .3s ease;
  flex: none;
  margin: 0 .3rem 4px 0;
}
.acc-item.open .acc-chev { transform: rotate(225deg); margin-bottom: -4px; }

.acc-panel { overflow: hidden; }
.acc-js .acc-panel { transition: max-height .45s ease; }

.acc-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.2rem;
  padding: .6rem .6rem 2.4rem;
}
.acc-fig { align-self: start; }
.acc-fig img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 6px 6px 0 rgba(95, 43, 61, .14);
}

.acc-desc {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1.6rem;
}

.acc-cols {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
}
.acc-cols h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--saffron-text);
  margin-bottom: .8rem;
}
.acc-ing ul { list-style: none; }
.acc-ing li {
  font-size: .95rem;
  padding: .42rem 0;
  border-bottom: 1px dotted var(--line);
  color: var(--ink);
}
.acc-steps ol { padding-left: 1.2rem; }
.acc-steps li {
  font-size: .97rem;
  padding: .4rem 0 .4rem .3rem;
  color: var(--ink);
}
.acc-steps li::marker {
  font-family: var(--serif);
  color: var(--myrtle);
  font-size: 1.05rem;
}

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

.about { padding: 6rem 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.4rem;
  align-items: start;
}
.about-copy p { margin-bottom: 1.15rem; }
.about-copy p:last-child { margin-bottom: 0; color: var(--ink-soft); }

.about-quote {
  background: var(--myrtle);
  color: #f6ead9;
  padding: 2.6rem 2.4rem 2.8rem;
  position: relative;
  box-shadow: 8px 8px 0 rgba(217, 165, 74, .35);
}
.aq-mark {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: .6;
  color: var(--saffron);
  margin-bottom: .8rem;
}
.aq-text {
  font-size: 2.1rem;
  font-style: italic;
  color: #fdf5e6;
  margin-bottom: 1rem;
}
.aq-gloss { font-size: .95rem; line-height: 1.7; color: rgba(246, 234, 217, .85); }

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

.foot {
  background: var(--myrtle-deep);
  color: #ead9c4;
  padding: 4rem 0 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.6rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(234, 217, 196, .18);
}
.foot-name { font-size: 1.75rem; color: #fdf5e6; }
.foot-name span { color: var(--saffron); }
.foot-tag { font-size: .92rem; color: rgba(234, 217, 196, .75); margin-top: .5rem; max-width: 20rem; }

.foot-nav, .foot-legal { display: flex; flex-direction: column; gap: .55rem; }
.foot-nav a, .foot-legal a {
  color: #ead9c4;
  text-decoration: none;
  font-size: .95rem;
}
.foot-nav a:hover, .foot-legal a:hover { color: var(--saffron); text-decoration: underline; }

.foot-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: .82rem;
  color: rgba(234, 217, 196, .65);
}

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

.legal-shell { max-width: 760px; margin: 0 auto; padding: 4.5rem 2rem 5rem; }
.legal-home {
  display: inline-block;
  margin-bottom: 2.4rem;
  color: var(--saffron-text);
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.legal-home:hover { color: var(--myrtle); text-decoration: underline; }
.legal-shell h1 { font-size: 2.5rem; color: var(--myrtle); margin-bottom: .6rem; }
.legal-updated { font-size: .88rem; color: var(--ink-soft); margin-bottom: 2.4rem; }
.legal-shell h2 {
  font-size: 1.45rem;
  color: var(--myrtle);
  margin: 2.2rem 0 .7rem;
}
.legal-shell p { margin-bottom: 1rem; }
.legal-shell ul { margin: 0 0 1rem 1.4rem; }
.legal-shell li { margin-bottom: .45rem; }
.legal-shell a { color: var(--sea); }

.company-contact-box {
  margin-top: 3rem;
  background: var(--plaster);
  border: 1px solid var(--line);
  border-left: 4px solid var(--myrtle);
  padding: 1.7rem 1.9rem;
}
.company-contact-box h2, .company-contact-box h3 {
  margin: 0 0 .8rem;
  font-size: 1.15rem;
  color: var(--myrtle);
}
.company-contact-box p { margin-bottom: .3rem; font-size: .95rem; }
.company-contact-box p:last-child { margin-bottom: 0; }

/* ---------- Scroll reveal ---------- */

.rise-wait {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.rise-wait.risen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise-wait { opacity: 1; transform: none; transition: none; }
  .acc-js .acc-panel { transition: none; }
}

/* ---------- Breakpoints: 1100 / 760 / 440 ---------- */

@media (max-width: 1100px) {
  :root { --rail-w: 204px; }
  .rail { padding: 2rem 1.2rem 1.4rem; }
  .rail-name { font-size: 1.7rem; }
  .wrap { padding: 0 1.8rem; }
  .acc-grid { grid-template-columns: 250px 1fr; gap: 1.8rem; }
  .about-grid { gap: 2.4rem; }
}

@media (max-width: 760px) {
  .page { margin-left: 0; }
  .rail {
    transform: translateX(-102%);
    transition: transform .3s ease;
    width: 258px;
    box-shadow: 12px 0 34px rgba(42, 33, 24, .2);
  }
  .rail-open .rail { transform: translateX(0); }
  .rail-toggle { display: flex; }
  .rail-open .rail-scrim { display: block; }
  body.rail-open { overflow: hidden; }

  .hero { min-height: 88vh; }
  .hero-body { padding: 5.5rem 1.4rem; }

  .principles { padding: 4.4rem 0 3.8rem; }
  .about { padding: 4.4rem 0; }
  .recipes { padding: 4.2rem 0 4.6rem; }

  .acc-head { flex-wrap: wrap; gap: .6rem 1rem; padding: 1.2rem .3rem; }
  .acc-num { min-width: 2.1rem; font-size: 1.5rem; }
  .acc-meta {
    width: 100%;
    order: 4;
    padding-left: 3.1rem;
  }
  .acc-chev { margin-left: auto; }
  .acc-grid { grid-template-columns: 1fr; padding: .4rem .3rem 2rem; }
  .acc-fig img { aspect-ratio: 16 / 10; }
  .acc-cols { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .foot-line { flex-direction: column; gap: .3rem; }
}

@media (max-width: 440px) {
  body { font-size: 17.5px; }
  .wrap { padding: 0 1.15rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-cta { padding: .85rem 1.7rem; letter-spacing: .09em; }
  .timeline { padding-left: 1.8rem; }
  .tl-node { left: -1.8rem; width: 18px; height: 18px; }
  .acc-title { font-size: 1.22rem; }
  .acc-meta { gap: .6rem; font-size: .74rem; padding-left: 2.7rem; }
  .acc-meta span { padding-left: .6rem; }
  .about-quote { padding: 2rem 1.6rem 2.2rem; }
  .aq-text { font-size: 1.7rem; }
  .legal-shell { padding: 3.4rem 1.15rem 4rem; }
}
