/* Chef Justin Kehoe — mobile-first styles */

:root {
  --ink: #212320;
  --ink-2: #2d302b;
  --stone: #e3e3e1;
  --paper: #ffffff;
  --muted: #5f625b;
  --line: #d6d6d2;
  --gold: #c9b48f;
  --accent: #8a7350;
  --radius: 4px;
  --gutter: 20px;
  --header-h: 60px;
  --serif: 'Marcellus', Georgia, 'Times New Roman', serif;
  --sans: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
strong { font-weight: 500; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font: 400 .75rem/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  color: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { font-family: var(--serif); font-size: 1.2rem; text-decoration: none; letter-spacing: .01em; margin: 0; }

.menu-toggle {
  display: grid; gap: 5px; place-content: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: #fff; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--ink);
  display: flex; flex-direction: column;
  padding: 8px var(--gutter) 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav.open { transform: none; opacity: 1; visibility: visible; }
.nav a {
  text-decoration: none; color: #e9e9e6;
  padding: 14px 0; font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav a.nav-cta {
  margin-top: 16px; border: 1px solid var(--gold); color: var(--gold);
  text-align: center; border-radius: var(--radius); padding: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 1.4em;
  border-radius: var(--radius);
  font: 400 .95rem/1 var(--sans); letter-spacing: .02em;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--stone); }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(33,35,32,.72) 0%, rgba(33,35,32,.86) 100%),
    url('images/hero.jpg') center / cover no-repeat;
  min-height: min(88svh, 720px);
  display: flex; align-items: center;
  padding: 64px 0 72px;
  text-align: center;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2.6rem, 11vw, 4.6rem); margin-bottom: .35em; }
.hero .lede { font-size: 1.08rem; color: #e3e3e1; max-width: 32ch; margin: 0 auto 2rem; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; max-width: 340px; margin: 0 auto; }

/* ---------- Contact links ---------- */
.contact-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.contact-links a {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 44px; text-decoration: none;
  transition: color .2s;
}
.contact-links svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-contact { align-items: center; margin-top: 1.5rem; }
.hero-contact a { color: #e3e3e1; font-size: 1rem; }
.hero-contact a:hover { color: var(--gold); }
.hero-contact svg { stroke: var(--gold); }
.footer-contact { margin-top: .75rem; }
.footer-contact a { color: #e9e9e6; }
.footer-contact a:hover { color: var(--gold); }

/* ---------- About ---------- */
.about { background: var(--stone); padding: 64px 0; }
.about-grid { display: grid; gap: 32px; }
.portrait { margin: 0; max-width: 300px; width: 100%; justify-self: center; }
.portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius); width: 100%; height: auto; }
.about h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); margin-bottom: 1rem; }
.about-text p { color: #3a3d37; }

.highlights { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.highlights li { background: var(--stone); padding: 14px 16px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.highlights strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.highlights span { color: var(--muted); font-size: .92rem; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); margin-bottom: .5rem; }
.section-head p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }

/* ---------- Documents ---------- */
.documents { padding: 64px 0; }
.doc-cards { display: grid; gap: 16px; }
.doc-card {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.doc-card:hover { border-color: var(--ink); box-shadow: 0 8px 24px rgba(33,35,32,.08); transform: translateY(-2px); }
.doc-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.doc-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.doc-body { display: flex; flex-direction: column; gap: 4px; }
.doc-body strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.doc-body span { color: var(--muted); font-size: .95rem; }
.doc-body small { color: var(--accent); font-size: .8rem; letter-spacing: .04em; margin-top: 4px; }
.doc-action {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; border-radius: var(--radius);
  background: var(--ink); color: #fff; font-weight: 400;
}
.doc-action::before {
  content: ""; width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m0 0-5-5m5 5 5-5M5 21h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Gallery ---------- */
.gallery { background: var(--stone); padding: 64px 0; }
.gallery .wrap { container-type: inline-size; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: calc((100cqi - 8px) / 2); grid-auto-flow: dense; gap: 8px; }
.gallery-grid li.big { grid-column: span 2; grid-row: span 2; }
.gallery-grid li.big img { object-position: 50% 45%; }
.gallery-grid button {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--line); border-radius: var(--radius); overflow: hidden;
}
.gallery-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid button:hover img { transform: scale(1.04); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: rgba(20,21,19,.96);
  overscroll-behavior: contain;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(20,21,19,.96); }
.lightbox img { max-width: calc(100vw - 24px); max-height: calc(100dvh - 120px); object-fit: contain; border-radius: var(--radius); }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.1); color: #fff;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
.lb-prev, .lb-next { bottom: max(16px, env(safe-area-inset-bottom)); }
.lb-prev { left: calc(50% - 60px); }
.lb-next { right: calc(50% - 60px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9e9e6; padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 24px; }
.site-footer .brand { font-size: 1.4rem; margin-bottom: .25rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a { text-decoration: none; padding: 6px 0; color: #e9e9e6; }
.site-footer nav a:hover { color: var(--gold); }
.muted { color: #a9aba4; margin: 0; }
.small { font-size: .85rem; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero-actions { flex-direction: row; max-width: none; justify-content: center; }
  .hero-contact { flex-direction: row; justify-content: center; gap: 4px 28px; }
  .doc-cards { grid-template-columns: 1fr 1fr; }
  .doc-card { grid-template-rows: auto 1fr auto; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: calc((100cqi - 36px) / 4); gap: 12px; }
  .gallery-grid li.wide { grid-column: span 2; }
  .highlights { grid-template-columns: repeat(3, 1fr); }
  .highlights li { flex-direction: column; gap: 2px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 32px;
    padding: 0; border: 0; background: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav a { border: 0; padding: 6px 0; font-size: .95rem; position: relative; }
  .nav a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--gold); transform: scaleX(0); transition: transform .25s;
  }
  .nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .nav a.nav-cta { margin: 0; padding: 10px 18px; }
  .nav a.nav-cta:hover { background: var(--gold); color: var(--ink); }

  .hero { padding: 96px 0; }
  .about, .documents, .gallery { padding: 104px 0; }
  .about-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .portrait { max-width: none; }
  .section-head { margin-bottom: 40px; }
  .doc-card { padding: 28px; gap: 20px; }
  .gallery-grid { grid-auto-rows: calc((100cqi - 48px) / 4); gap: 16px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-inner .small { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }
  .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
  .lightbox img { max-height: calc(100dvh - 64px); max-width: calc(100vw - 160px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
