/* ==========================================================
   Chef JonnyG — chefjonnyg.com
   Colors live here. Change --accent to shift the whole blue.
   ========================================================== */
:root {
  --bg: #F4F7FC;
  --ink: #0E1B3D;
  --accent: #1D4ED8;
  --deep: #0F2A6B;
  --soft: #DCE6FA;
  --soft-2: #EAF0FB;
  --line: #C9D6F2;
  --muted: #4A5878;
  --joy: #F5C04A;          /* warm gold, used sparingly */
  --white: #FFFFFF;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 6vw, 96px);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.05; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--joy); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--deep); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--accent); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; min-height: 54px; font-size: 16px; }

.link-btn {
  background: none; border: 0; padding: 10px 0; margin-top: auto;
  font: 700 15px var(--sans); color: var(--accent); cursor: pointer;
  text-align: left; text-decoration: underline; text-underline-offset: 4px;
}
.link-btn:hover { color: var(--deep); }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
}
.wordmark {
  font-family: var(--serif); font-size: 32px; color: var(--ink); text-decoration: none; line-height: 1;
}
.wordmark em { color: var(--accent); }
.wordmark:hover { color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--ink);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 560px) minmax(0, .85fr);
  gap: 24px; align-items: center;
  padding: 8px var(--pad) 24px;
}
.pill {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: var(--soft); color: var(--deep); font-size: 14px; font-weight: 700;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero h1 { font-size: clamp(64px, 7vw, 104px); line-height: .95; letter-spacing: -1px; }
.hero h1 em { color: var(--accent); }
.aka { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); color: var(--accent); margin-top: -10px; }
.lede { color: var(--muted); font-size: 18px; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-figure {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 620 / 740; width: 100%;
}
.plate {
  position: absolute; width: 96%; aspect-ratio: 1; border-radius: 50%;
  background: var(--white); box-shadow: 0 30px 60px rgba(14, 27, 61, .12);
  display: grid; place-items: center;
}
.plate::before {
  content: ""; width: 84%; aspect-ratio: 1; border-radius: 50%; background: var(--accent);
  grid-area: 1 / 1;
}
.plate-rim {
  grid-area: 1 / 1; width: 77%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
}
.hero-figure picture { position: relative; height: 95%; display: flex; justify-content: center; }
.hero-figure img { height: 100%; width: auto; }

/* The slow side-to-side tilt */
.sway { animation: sway 6s ease-in-out infinite alternate; transform-origin: 50% 55%; }
@keyframes sway { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
@media (prefers-reduced-motion: reduce) { .sway { animation: none; } html { scroll-behavior: auto; } }

.hero-cards { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.card { width: 100%; max-width: 310px; padding: 26px; border-radius: 24px; display: flex; flex-direction: column; gap: 10px; }
.card-kicker { font-size: 14px; font-weight: 800; }
.card-deep { background: var(--deep); color: var(--white); }
.card-deep .card-kicker { color: var(--joy); }
.card-deep a { color: var(--white); font-weight: 700; }
.card-deep a:hover { color: var(--joy); }
.card-big { font-family: var(--serif); font-size: 28px; line-height: 1.12; }
.card-light { background: var(--white); border: 1px solid var(--soft); }
.card-light .card-kicker { color: var(--accent); }
.card-mid { color: var(--muted); font-size: 16px; line-height: 1.5; }
.card-light a { font-weight: 700; }

/* ---------- Tabs ---------- */
.tabs-wrap { padding: 0 var(--pad); position: sticky; top: 0; z-index: 10; padding-top: 10px; padding-bottom: 10px; background: var(--bg); }
.tabs {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
  padding: 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--soft);
}
.tabs button {
  min-height: 54px; border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font: 700 16px var(--sans); cursor: pointer; white-space: nowrap; padding: 0 16px;
  transition: background-color .2s ease, color .2s ease;
}
.tabs button:hover { background: var(--soft-2); }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--white); }

/* ---------- Panels ---------- */
main { padding: 48px var(--pad) 80px; min-height: 60vh; }
.panel { animation: panelIn .35s ease; scroll-margin-top: 100px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .panel { animation: none; } }
.panel h2 { font-size: clamp(40px, 4.5vw, 60px); }
.panel-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; max-width: 760px; }
.panel-head p { color: var(--muted); font-size: 18px; }

.photo {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--soft-2); border: 2px dashed #A9BCE6;
  display: grid; place-items: center; text-align: center;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo:has(img) { border: 0; }
.photo-art { background: var(--accent); border: 0; place-items: end center; }
.photo-art img { width: auto; height: 94%; object-fit: contain; }
.ph { color: var(--muted); font-size: 15px; padding: 16px; }
.ph strong { color: var(--ink); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 64px; align-items: start; }
.photo-tall { aspect-ratio: 4 / 5; }
.about-copy { display: flex; flex-direction: column; gap: 20px; }
.about-copy p { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 62ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 0; max-width: 720px; }
.facts div { background: var(--white); border: 1px solid var(--soft); border-radius: 16px; padding: 18px 20px; }
.facts dt { font-size: 14px; font-weight: 700; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 18px; font-weight: 800; }

/* Personal chef */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service {
  background: var(--white); border: 1px solid var(--soft); border-radius: var(--radius-md);
  padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 240px;
}
.service h3 { font-size: 28px; }
.service p { color: var(--muted); font-size: 16px; }
.how {
  margin-top: 28px; background: var(--deep); color: var(--white); border-radius: var(--radius-lg);
  padding: 36px; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 32px; align-items: center;
}
.how h3 { font-size: 34px; }
.how ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: #D5E0FA; }
.how ol strong { color: var(--white); }
.how li::marker { color: var(--joy); font-weight: 800; }
.how .btn-accent { background: var(--white); color: var(--deep); }
.how .btn-accent:hover { background: var(--joy); color: var(--ink); }

/* Dishes */
.dish-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.dish { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.dish .photo { aspect-ratio: 1; border-radius: var(--radius-md); }
.dish figcaption strong { display: block; font-size: 18px; font-weight: 800; }
.dish figcaption span { color: var(--muted); font-size: 15px; }
.ig-more { margin-top: 28px; }

/* Merch */
.merch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.merch { background: var(--white); border: 1px solid var(--soft); border-radius: 24px; overflow: hidden; }
.merch-art { aspect-ratio: 1; background: var(--soft-2); display: grid; place-items: center; }
.merch-art-blue { background: var(--accent); place-items: end center; overflow: hidden; }
.merch-art-blue img { height: 92%; width: auto; }
.merch-art-type { background: var(--soft); padding: 32px; text-align: center; }
.merch-art-type span { font-family: var(--serif); font-size: clamp(34px, 3.4vw, 48px); line-height: 1.05; color: var(--deep); }
.merch-art-deep { background: var(--deep); }
.merch-art-deep span { color: var(--joy); font-style: italic; }
.alt-card { margin-top: 32px; max-width: 560px; padding: 24px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--soft); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.alt-contact h3 { font-size: 36px; }
.alt-contact p { color: var(--muted); }
.merch h3 { font-size: 26px; padding: 20px 24px 0; }
.merch p { color: var(--muted); padding: 4px 24px 22px; font-weight: 700; }
.notify { margin-top: 32px; max-width: 560px; display: flex; flex-direction: column; gap: 10px; }
.notify label { font-weight: 800; }
.notify-row { display: flex; gap: 10px; }
.notify-row input { flex: 1; }

/* Forms */
input, select, textarea {
  font: 16px var(--sans); color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  min-height: 50px; padding: 0 14px; width: 100%;
}
textarea { padding: 12px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--soft); }
.form-status { font-weight: 700; min-height: 1.4em; }
.form-status.ok { color: #166534; }
.form-status.err { color: #B42318; }

/* Connect */
.connect-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; align-items: start; }
.connect-copy { display: flex; flex-direction: column; gap: 20px; }
.connect-copy > p { color: var(--muted); font-size: 18px; max-width: 46ch; }
.social-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; max-width: 460px; }
.social-list a {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px;
  border-radius: 18px; background: var(--white); border: 1px solid var(--soft);
  color: var(--ink); text-decoration: none;
}
.social-list a:hover { border-color: var(--accent); }
.social-list .ico { width: 46px; height: 46px; border-radius: 999px; background: var(--soft); color: var(--deep); display: grid; place-items: center; flex: none; }
.social-list strong { display: block; font-size: 17px; }
.social-list small { color: var(--muted); font-size: 14px; }
.contact {
  background: var(--white); border: 1px solid var(--soft); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 800; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--deep); color: #D5E0FA; padding: 48px var(--pad) 32px; }
.footer .wordmark { color: var(--white); }
.footer .wordmark em { color: var(--joy); }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.verse { margin: 0; max-width: 620px; }
.verse p { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; color: var(--white); }
.verse cite { display: block; margin-top: 10px; }
.verse cite { font-style: normal; font-size: 14px; font-weight: 700; color: var(--joy); }
.footer-bottom { padding-top: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.fine { font-size: 12.5px; color: #AFC0E6; max-width: 80ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-cards { grid-column: 1 / -1; flex-direction: row; justify-content: center; align-items: stretch; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how { grid-template-columns: 1fr; }
  .connect-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .photo-tall { max-width: 480px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar .socials { display: none; }
  .wordmark { font-size: 28px; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-figure { order: -1; max-width: 460px; margin: 0 auto; }
  .hero-cards { flex-direction: column; align-items: stretch; }
  .card { max-width: none; }
  .tabs { display: flex; overflow-x: auto; border-radius: 999px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; min-height: 48px; font-size: 15px; }
  main { padding-top: 32px; }
  .services, .merch-grid { grid-template-columns: 1fr; }
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .contact, .how { padding: 24px; }
  .notify-row { flex-direction: column; }
}
