/* Client canteen pages (also borrowed by Um okkur and Fólkið okkar for .back and .cta).
   Shared tokens, type, buttons, nav and footer are in ../site.css */
.cta :focus-visible { outline-color: var(--oat); }

/* Header */
.back { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; margin: 20px 0 28px; font-weight: 700; font-size: 14px; text-decoration: none; }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
.head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: 40px; }
.client-logo { height: calc(var(--h, 26px) * 1.3); width: auto; max-width: 100%; margin-bottom: 28px; }

/* Hero image */
.hero { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 21/9; }
.hero img { width: 100%; height: 100%; object-fit: cover; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); margin-top: 48px; }
.facts div { padding: 20px 20px 0 0; }
.facts dt { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.facts dd { font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.015em; line-height: 1.05; }

/* Story */
.story { padding: var(--section) 0; }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.story .h2 { margin: 18px 0 24px; }
.story p + p { margin-top: 16px; }
.day { background: var(--seaglass); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); align-self: start; }
.day h3 { margin-bottom: 16px; }
.day ol { list-style: none; }
.day li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.day time { font-family: var(--accent); font-style: italic; font-weight: 300; font-size: 22px; color: var(--deep); line-height: 1.1; }
.day b { display: block; }

/* Head chef */
.chef { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; background: var(--rye); border-radius: var(--r-card); padding: clamp(20px, 3vw, 32px); margin-bottom: var(--section); }
.chef img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-img); }
.chef .h2 { margin: 18px 0 10px; }
.chef .role { font-weight: 700; color: var(--deep); margin-bottom: 20px; }
.chef p + p { margin-top: 14px; }
/* Photo slot for chefs not yet photographed: same frame as the real photo */
.chef-photo { aspect-ratio: 4/5; border-radius: var(--r-img); display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--oat) 0 14px, var(--rye-deep) 14px 28px); }
/* Kitchen team under the head chef: small portraits, name and title */
.crew { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }
.crew ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 210px)); gap: 20px 16px; margin-top: 16px; }
.crew img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 10px; }
.crew b { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.1; letter-spacing: -.01em; }
.crew li > span:not(.ph) { font-size: 14px; font-weight: 700; color: var(--deep); }
.crew li > .ph { margin-top: 6px; }
.crew-photo { aspect-ratio: 4/5; border-radius: var(--r-sm); margin-bottom: 10px; background: repeating-linear-gradient(135deg, var(--oat) 0 12px, var(--rye-deep) 12px 24px); }
.ph-title { font-family: var(--display); font-size: .6em; font-weight: 400; letter-spacing: -.01em; min-width: 7em; padding: 6px 18px 10px; }
/* Faint text lines standing in for the chef's bio */
.ph-lines { display: grid; gap: 10px; margin-top: 18px; max-width: 46ch; }
.ph-lines i { display: block; height: 10px; border-radius: 5px; background: rgba(20, 39, 42, .08); }
.ph-lines i:nth-child(2) { width: 92%; }
.ph-lines i:nth-child(3) { width: 64%; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.gallery figure { position: relative; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4/5; }
.gallery figure:first-child { aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
/* The wide photo takes its height from the row, so all three line up top and bottom */
.gallery figure:first-child img { position: absolute; inset: 0; }

/* Others + CTA */
.others { padding: var(--section) 0 0; }
.others h2 { margin-bottom: 20px; }

.cta { background: var(--deep); color: var(--oat); border-radius: var(--r-card); margin: var(--section) 0 clamp(24px, 4vw, 48px); padding: clamp(40px, 6vw, 80px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta .h2 { max-width: 16ch; }

@media (max-width: 860px) {
  .head, .story-inner, .chef { grid-template-columns: 1fr; }
  .chef > div { padding: 0 4px 12px; }
  .hero { aspect-ratio: 4/3; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 4/3; }
}

/* Client quote sits between the story and the head chef */
main > .quote { margin-bottom: var(--section); }
/* A notch smaller than the homepage feature so it doesn't outweigh the story around it */
main > .quote { padding: clamp(20px, 3.2vw, 40px); }
main > .quote::before { font-size: clamp(80px, 7.5vw, 112px); }
main > .quote blockquote { font-size: clamp(17px, 1.4vw, 20px); max-width: 62ch; }
main > .quote figcaption { margin-top: 18px; }
main > .quote .quote-face { width: 44px; height: 44px; }
@media (max-width: 600px) { main > .quote::before { font-size: 84px; } }
