/* Where Is Chef Jason? — design tokens + base
   Inherits Jason's Cooking Club vocabulary, dialed darker and more editorial-cinema.
*/

:root {
  /* Paper & ink */
  --paper: #F4EFE7;
  --paper-2: #EBE4D7;
  --paper-3: #DDD3C2;
  --ink: #1A1713;
  --ink-2: #3A342C;
  --ink-3: #6B6257;
  --ink-4: #9C9388;

  /* Accents */
  --persimmon: oklch(0.64 0.16 42);
  --persimmon-deep: oklch(0.52 0.17 38);
  --persimmon-soft: oklch(0.88 0.06 50);

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --garamond: "EB Garamond", "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ---- Typography classes ---- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }
.serif-tight { font-family: var(--serif); font-weight: 400; letter-spacing: -0.035em; line-height: 0.9; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.mono-sm { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.mono-xs { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---- Placeholders ---- */
.ph {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(26,23,19,0.06) 0 1px, transparent 1px 9px),
    var(--paper-2);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: var(--ink-3);
}
.ph.dark {
  background:
    repeating-linear-gradient(135deg, rgba(244,239,231,0.08) 0 1px, transparent 1px 9px),
    #2A2520;
  color: rgba(244,239,231,0.7);
}
.ph.persimmon {
  background:
    repeating-linear-gradient(135deg, rgba(26,23,19,0.08) 0 1px, transparent 1px 9px),
    oklch(0.78 0.12 45);
  color: var(--ink);
}
.ph .ph-cap {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 12px;
  max-width: 80%;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--persimmon-deep); border-color: var(--persimmon-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn-ghost-dark { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost-dark:hover { background: var(--paper); color: var(--ink); transform: translateY(-1px); }
.btn-persimmon { background: var(--persimmon); border-color: var(--persimmon); color: var(--paper); }
.btn-persimmon:hover { background: var(--persimmon-deep); border-color: var(--persimmon-deep); }
.btn-small { padding: 9px 14px; font-size: 12px; }

/* ---- Fields ---- */
.field {
  display: block;
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  font-size: 18px;
  font-family: var(--sans);
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.field:focus { border-bottom-color: var(--persimmon); }
.field::placeholder { color: var(--ink-4); }
.field-dark {
  border-bottom-color: rgba(244,239,231,0.5);
  color: var(--paper);
}
.field-dark::placeholder { color: rgba(244,239,231,0.4); }
.field-dark:focus { border-bottom-color: var(--persimmon); }

/* ---- Rules ---- */
.rule { height: 1px; background: var(--ink); opacity: 0.9; }
.rule-soft { height: 1px; background: var(--ink); opacity: 0.15; }
.rule-dark { height: 1px; background: rgba(244,239,231,0.2); }

/* ---- Marquee ---- */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 90s linear infinite;
  padding-right: 56px;
}
.marquee-track.slow { animation-duration: 140s; }

/* ---- Scroll ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,23,19,0.2); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,23,19,0.4); }

/* ---- Utility ---- */
.noise {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.3; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.noise-dark {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.88 0 0 0 0 0.82 0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---- Animations ---- */
@keyframes steam-rise {
  0%   { transform: translateY(10px) scale(0.9);  opacity: 0; }
  20%  { opacity: 0.5; }
  100% { transform: translateY(-80px) scale(1.4); opacity: 0; }
}
.steam {
  position: absolute; pointer-events: none;
  width: 40px; height: 80px;
  background: radial-gradient(ellipse at center, rgba(244,239,231,0.6) 0%, rgba(244,239,231,0) 70%);
  border-radius: 50%;
  animation: steam-rise 3.2s ease-in-out infinite;
  filter: blur(6px);
}

@keyframes boil {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.55; }
}
.boil { animation: boil 1.6s ease-in-out infinite; }

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.72; }
  75%      { opacity: 0.92; }
}
.flicker { animation: flicker 2.4s ease-in-out infinite; }

@keyframes knife-cut {
  from { transform: scaleX(0); transform-origin: left center; }
  to   { transform: scaleX(1); transform-origin: left center; }
}

.phase-enter { animation: phaseIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes phaseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Tweaks panel ---- */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 300px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  font-size: 12px;
}
.tweaks-panel h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}
.tweaks-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.tweaks-row label { color: var(--ink-3); font-size: 11px; }
.tweaks-row .swatches { display: flex; gap: 6px; }
.tweaks-row .sw { width: 22px; height: 22px; border: 1px solid var(--ink); cursor: pointer; border-radius: 0; }
.tweaks-row .sw.active { outline: 2px solid var(--ink); outline-offset: 2px; }
.tweaks-select {
  background: transparent;
  border: 1px solid var(--ink);
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

/* ---- Tour grid row hover ---- */
.tour-row {
  transition: background 0.2s ease;
}
.tour-row:hover {
  background: var(--paper-2);
}
.tour-row.dark:hover {
  background: #201C18;
}

/* ---- Episode card hover ---- */
.episode-card {
  transition: transform 0.25s ease;
}
.episode-card:hover {
  transform: translateY(-2px);
}
.episode-card:hover .episode-thumb::after {
  opacity: 1;
}
.episode-thumb {
  position: relative;
}
.episode-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(26,23,19,0.15);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

/* ---- Display number ---- */
.big-num {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.04em;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr !important; }
  .grid-3 { grid-template-columns: 1fr !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .wall-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .mobile-hide { display: none !important; }
  .nav-desktop { display: none !important; }
  .nav-mobile  { display: flex !important; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  input, textarea, select { font-size: 16px !important; }
  button, .btn { min-height: 40px; }

  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="border-right: 1px solid"] { border-right: none !important; }

  [style*="padding: 120px"] { padding: 48px 18px !important; }
  [style*="padding: 100px"] { padding: 44px 18px !important; }
  [style*="padding: 80px"]  { padding: 36px 18px !important; }
  [style*="padding: 72px"]  { padding: 32px 18px !important; }
  [style*="padding: 60px"]  { padding: 28px 18px !important; }
  [style*="padding: 56px"]  { padding: 26px 18px !important; }
  [style*="padding: 48px"]  { padding: 22px 16px !important; }
  [style*="padding: 40px"]  { padding: 20px 16px !important; }
  [style*="padding: 32px"]  { padding: 18px 14px !important; }
  [style*="padding: 24px"]  { padding: 14px 12px !important; }

  [style*="font-size: 200px"] { font-size: 60px !important; line-height: 0.95 !important; }
  [style*="font-size: 180px"] { font-size: 56px !important; line-height: 0.95 !important; }
  [style*="font-size: 160px"] { font-size: 52px !important; line-height: 0.95 !important; }
  [style*="font-size: 140px"] { font-size: 44px !important; line-height: 1 !important; }
  [style*="font-size: 120px"] { font-size: 42px !important; line-height: 1 !important; }
  [style*="font-size: 108px"] { font-size: 40px !important; line-height: 1.02 !important; }
  [style*="font-size: 96px"]  { font-size: 38px !important; line-height: 1.02 !important; }
  [style*="font-size: 88px"]  { font-size: 36px !important; line-height: 1.05 !important; }
  [style*="font-size: 80px"]  { font-size: 34px !important; line-height: 1.05 !important; }
  [style*="font-size: 72px"]  { font-size: 32px !important; line-height: 1.05 !important; }
  [style*="font-size: 64px"]  { font-size: 30px !important; }
  [style*="font-size: 56px"]  { font-size: 28px !important; }
  [style*="font-size: 48px"]  { font-size: 24px !important; }
  [style*="font-size: 40px"]  { font-size: 22px !important; }
  [style*="font-size: 36px"]  { font-size: 20px !important; }
  [style*="font-size: 32px"]  { font-size: 19px !important; }

  [style*="gap: 80px"] { gap: 22px !important; }
  [style*="gap: 60px"] { gap: 20px !important; }
  [style*="gap: 48px"] { gap: 16px !important; }
  [style*="gap: 40px"] { gap: 14px !important; }
  [style*="gap: 32px"] { gap: 12px !important; }
  [style*="gap: 24px"] { gap: 10px !important; }

  [style*="height: 560px"] { height: 280px !important; }
  [style*="height: 480px"] { height: 240px !important; }
  [style*="height: 420px"] { height: 220px !important; }
  [style*="height: 380px"] { height: 200px !important; }
  [style*="height: 320px"] { height: 200px !important; }

  [style*="max-width: 1400px"],
  [style*="max-width: 1200px"] { max-width: 100% !important; }

  img, iframe, video { max-width: 100% !important; }

  .tweaks-panel { display: none !important; }

  /* Hide decorative hero image on small screens — the b-roll banner already shows */
  .hide-on-mobile { display: none !important; }

  /* Tighten the 4-up stat band under the hero */
  .hero-stat-band { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-stat-band > div:nth-child(2n) { border-right: none !important; }
  .hero-stat-band > div:nth-child(-n+2) { border-bottom: 1px solid rgba(244,239,231,0.2); }

  /* Shorter b-roll banner */
  .broll-banner { min-height: 320px !important; max-height: 520px !important; }

  /* Force button groups to stretch full width and be tappable */
  .btn { width: auto; min-height: 44px; padding: 12px 18px; }
  .btn-group-full .btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }
}

/* Hero title — scale down below tablet width so it never overflows */
@media (max-width: 520px) {
  .broll-banner h1 {
    font-size: clamp(36px, 11vw, 64px) !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    padding: 0 16px !important;
  }
}

