/* ============================================================
   Nigel's Caribbean Cuisine — Shared Design System
   Iron Pot: a dark, warm kitchen at 6 pm.
   Palette is pulled from the food itself.
   ============================================================ */

/* ---- Canonical tokens ---------------------------------------- */
:root {
  /* Palette */
  --ground:       #13160F;        /* seasoned iron pot, green-biased black */
  --raise:        #1E1B14;        /* lifted surface, warmed */
  --raise-2:      #242920;        /* deeper raised surface */
  --paper:        #EFE8D8;        /* parchment text */
  --sage:         #A49A84;        /* warm stone — secondary text */
  --stone:        #A49A84;        /* alias for --sage (inner pages) */
  --paper-dim:    #D6CFBD;        /* mid-parchment — between paper and stone */
  --mat:          #EDE4D0;        /* paper mat around photographs */
  --foil:         #AEB3A5;        /* aluminium tray, hairlines */
  --turmeric:     #DFA22B;        /* accent — single gold from the food */
  --turmeric-dim: #A87A22;        /* dimmed turmeric for rules/borders */
  --turmeric-05:  color-mix(in srgb, #DFA22B  5%, transparent); /* turmeric ghost — draft/legend bg */
  --turmeric-06:  color-mix(in srgb, #DFA22B  6%, transparent); /* turmeric ghost — fill badge bg */
  --turmeric-08:  color-mix(in srgb, #DFA22B  8%, transparent); /* turmeric ghost — chip selected bg */
  --chive:        #7D9C4F;        /* shado beni, used sparingly */
  --rule:         #302B21;        /* border / divider */
  --lede:         #D6CFBD;        /* lede / standfirst text — warmed parchment, dimmed */
  --body-muted:   #CFC7B4;        /* narrative body copy in muted passages */
  --glass:        rgba(255,255,255,.16); /* light glass overlay for buttons on photographs */

  /* Type stacks */
  --serif: "Hoefler Text","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;
  --sans:  "Helvetica Neue",Helvetica,Arial,sans-serif;
  --cond:  "Avenir Next Condensed","Arial Narrow","Helvetica Neue",Helvetica,Arial,sans-serif;

  /* Spacing rhythm */
  --gap:  clamp(3.5rem,7vw,7rem);
  --pad:  clamp(1.25rem,5vw,3rem);
  --maxw: 1080px;

  color-scheme: dark;
}

/* ---- Reset ---------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
::selection { background: var(--turmeric); color: var(--ground); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--turmeric-dim); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--turmeric); }
* { scrollbar-width: thin; scrollbar-color: var(--turmeric-dim) var(--ground); }

/* ---- Base body ----------------------------------------------- */
body {
  margin: 0;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Fine grain over the whole page at canonical opacity */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .085;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Layout -------------------------------------------------- */
.wrap  { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.narrow { max-width: 640px; }

/* ---- Typography ---------------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .73rem; font-weight: 600;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--sage); margin: 0;
}
.eyebrow .dot { color: var(--turmeric-dim); padding: 0 .45em; }

.seclabel {
  font-family: var(--cond);
  font-size: 1.05rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--turmeric); margin: 0 0 .7rem;
}

h1,h2,h3,h4 { margin: 0; font-weight: 400; text-wrap: balance; letter-spacing: -.02em; font-feature-settings: "kern" 1, "liga" 1, "onum" 1; }
h1 { font-size: clamp(3.4rem,9.5vw,7rem);   line-height: .94;  letter-spacing: -.03em; }
h2 { font-size: clamp(2rem,4.2vw,3.2rem);    line-height: 1.06; letter-spacing: -.025em; }
h3 { font-size: 1.42rem; line-height: 1.2; }
p  { margin: 0; }

.lede  { font-size: clamp(1.06rem,1.7vw,1.22rem); color: var(--lede); max-width: 48ch; }
.muted { color: var(--sage); }
.small { font-size: .92rem; }

/* ---- Plate: images as matted objects on a dark table --------- */
.plate { margin: 0; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.plate img {
  display: block; width: 100%; height: auto;
  border: 6px solid var(--mat);
  box-shadow: 0 22px 50px -18px rgba(0,0,0,.75), 0 4px 12px -4px rgba(0,0,0,.4);
}
.plate:hover { transform: rotate(.4deg) scale(1.012); }
.plate figcaption {
  margin-top: .85rem;
  font-family: var(--sans);
  font-size: .73rem; letter-spacing: .19em; text-transform: uppercase;
  color: var(--sage);
}

/* ---- Skip link ------------------------------------------------ */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; top: 1rem; left: 1rem; width: auto; height: auto;
  background: var(--turmeric); color: var(--ground);
  padding: .5rem 1rem;
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-decoration: none; z-index: 99999;
}

/* ---- Masthead ------------------------------------------------ */
.mast {
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
  background: rgba(19,22,15,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mast .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .9rem; flex-wrap: nowrap;
}

/* Site wordmark */
.mark {
  font-size: 1.06rem; letter-spacing: .03em;
  font-family: var(--serif); text-decoration: none; color: inherit;
}
.mark b  { font-weight: 400; }
.mark span { color: var(--turmeric); font-style: italic; }

/* Desktop nav */
.navlinks { display: flex; gap: 1.5rem; align-items: center; }
.navlinks a {
  font-family: var(--sans); font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage); text-decoration: none; transition: color .2s ease;
}
.navlinks a:hover           { color: var(--paper); }
.navlinks a.here            { color: var(--paper); border-bottom: 1px solid var(--turmeric-dim); padding-bottom: 2px; }

/* ---- Buttons ------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans); font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .72rem 1.35rem;
  border: 1px solid var(--turmeric-dim);
  color: var(--turmeric); background: transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover,.btn:focus-visible         { background: var(--turmeric); color: var(--ground); border-color: var(--turmeric); }
.btn-solid                             { background: var(--turmeric); color: var(--ground); border-color: var(--turmeric); }
.btn-solid:hover,.btn-solid:focus-visible { background: var(--paper); border-color: var(--paper); color: var(--ground); }
.btn-ghost                             { border-color: var(--rule); color: var(--paper); }
.btn-ghost:hover,.btn-ghost:focus-visible { background: var(--paper); color: var(--ground); border-color: var(--paper); }

/* Focus rings */
a:focus-visible,button:focus-visible,
input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 2px solid var(--turmeric); outline-offset: 3px;
}

/* ---- Section furniture --------------------------------------- */
.section { padding-block: var(--gap); border-top: 1px solid var(--rule); }
.head { margin-bottom: clamp(2.5rem,5vw,4rem); }
.head h2 { margin-top: .9rem; }
.head p  { margin-top: 1rem; }

.section--accent { position: relative; }
.section--accent::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--turmeric-dim) 30%, var(--turmeric-dim) 70%, transparent);
}

/* ---- WhatsApp link ------------------------------------------- */
.wa-link {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--turmeric); text-decoration: none;
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  transition: color .2s ease;
}
.wa-link:hover { color: var(--paper); }

/* ---- Placeholder markers ------------------------------------- */
.tbc  { border-bottom: 1px dotted var(--sage); }
.fill {
  display: inline-block; font-family: var(--sans); font-size: .86rem; font-weight: 600;
  letter-spacing: .04em; color: var(--turmeric);
  border: 1px dashed var(--turmeric-dim); border-radius: 2px;
  padding: .12rem .5rem; background: rgba(223,162,43,.06);
}

/* ---- Footer -------------------------------------------------- */
footer { border-top: 1px solid var(--rule); padding-block: 2.6rem; color: var(--sage); }
footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.footer-icon {
  color: var(--sage); transition: color .2s ease;
  display: inline-flex; align-items: center; text-decoration: none;
}
.footer-icon:hover { color: var(--paper); }
.hn {
  font-family: var(--sans); font-size: .73rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--sage); text-decoration: none; transition: color .2s ease;
}
.hn:hover { color: var(--paper); }

/* ---- Scroll-reveal (Silk motion) ----------------------------- */
.rise {
  opacity: 0;
  transform: translateY(24px) scale(.985);
  transition:
    opacity  1.1s cubic-bezier(.16,.8,.3,1),
    transform 1.1s cubic-bezier(.16,.8,.3,1);
}
.rise.in { opacity: 1; transform: none; }

.rise-l {
  opacity: 0; transform: translateX(-32px);
  transition: opacity 1s cubic-bezier(.16,.8,.3,1), transform 1s cubic-bezier(.16,.8,.3,1);
}
.rise-l.in { opacity: 1; transform: none; }

.rise-r {
  opacity: 0; transform: translateX(32px);
  transition: opacity 1s cubic-bezier(.16,.8,.3,1), transform 1s cubic-bezier(.16,.8,.3,1);
}
.rise-r.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise,.rise-l,.rise-r { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---- Ticker tape --------------------------------------------- */
.ticker {
  overflow: hidden; padding-block: .9rem;
  border-block: 1px solid var(--rule);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.ticker-inner {
  display: flex; gap: 2.4rem; white-space: nowrap;
  animation: ticker 32s linear infinite; will-change: transform;
}
.ticker-item {
  display: flex; align-items: center; gap: 2.4rem;
  font-family: var(--sans); font-size: .73rem; letter-spacing: .03em;
  text-transform: uppercase; color: var(--sage); flex-shrink: 0;
}
.ticker-item .bull { color: var(--turmeric-dim); font-size: .5rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-inner { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ticker-inner { animation: none; } }

/* ---- Mobile hamburger nav ------------------------------------ */
.ham-btn {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 44px; height: 44px; background: transparent; border: none;
  cursor: pointer; gap: 5px; padding: 0; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.ham-btn span {
  display: block; width: 22px; height: 2px; background: var(--paper);
  border-radius: 1px; transition: transform .3s ease, opacity .3s ease;
}
.ham-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ham-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: flex; position: fixed; inset: 0; z-index: 48;
  background: var(--ground);
  flex-direction: column; align-items: center; justify-content: center;
  padding-top: env(safe-area-inset-top,0); padding-bottom: env(safe-area-inset-bottom,0);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper); text-decoration: none;
  padding: .9rem 2rem; min-height: 44px;
  display: flex; align-items: center; width: 100%; justify-content: center;
  transition: color .2s ease; border-bottom: 1px solid var(--rule);
}
.mobile-nav a:first-of-type { border-top: 1px solid var(--rule); }
.mobile-nav a:hover,.mobile-nav a.here { color: var(--turmeric); }
.mobile-nav .mobile-nav-cta { margin-top: 1.8rem; border: none; }

/* ---- Responsive base ----------------------------------------- */
@media (max-width: 768px) {
  .ham-btn     { display: flex; }
  .navlinks    { display: none !important; }
  .mast > .wrap > .btn { display: none; }
  .mast .wrap  { padding-block: .65rem; flex-wrap: nowrap; }
  .mast        { padding-top: env(safe-area-inset-top,0); }
  body::after  { opacity: .04; }
  body         { font-size: 16px; }
  h1 { font-size: clamp(2.2rem,8.5vw,3.4rem); }
  h2 { font-size: clamp(1.6rem,5.5vw,2.6rem); }
  .lede    { font-size: 1rem; }
  .btn     { padding: .85rem 1.5rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  footer .wrap { flex-direction: column; text-align: center; align-items: center; }
  .footer-links { justify-content: center; }
  .plate img { box-shadow: 0 10px 28px -10px rgba(0,0,0,.65), 0 2px 8px -2px rgba(0,0,0,.3); }
  :root { --gap: clamp(2.5rem,8vw,5rem); }
  footer { padding-bottom: calc(2.6rem + env(safe-area-inset-bottom,0)); }
}
@media (max-width: 480px) {
  :root { --pad: clamp(1rem,4vw,1.5rem); }
  h1 { font-size: clamp(2rem,8vw,2.5rem); }
  h2 { font-size: clamp(1.45rem,5.5vw,1.9rem); }
}

/* ---- Inline scroll-reveal script ----------------------------- */
