/* Fiskur dagsins pieces shared by every page: subpage header, prose, dark band, order card.
   The common look (tokens, type, buttons, nav, footer) is in site.css, copied from Réttur dagsins. */

/* ---------- Fiskur tokens (site.css stays a straight copy of the Réttur dagsins file) ---------- */
:root {
  --ember-text: #ad3f1c;                 /* ember for small text: 4.5:1 or more on oat, paper and rye (--ember-ink is for large type and the logo) */
  --line-strong: rgba(22, 26, 23, .55);  /* borders of form controls: 3:1 or more on oat and paper (WCAG 1.4.11) */
}
/* Anchors land below the sticky header (and above the phone order bar) */
html { scroll-padding-top: 92px; }
@media (max-width: 860px) { html { scroll-padding-bottom: 88px; } }
main:focus { outline: none; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--fjord); color: var(--oat); font-weight: 700; padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Subpage header ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 56px); }
.page-head .title { margin: 18px 0 24px; }

/* ---------- Long text (Um okkur, Skilmálar) ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.015em; line-height: 1.1; margin: 40px 0 12px; }
.prose p + p { margin-top: 14px; }
.prose a { color: var(--fjord); font-weight: 700; }

/* ---------- Dark band (chefs) ---------- */
.band { background: var(--fjord); color: var(--oat); padding: var(--section) 0; }
.band :focus-visible { outline-color: var(--oat); }
.band .muted { color: rgba(242, 238, 227, .8); }
.band .people-link { color: var(--oat); }

/* ---------- Chef cards: small black-and-white portrait beside the credentials ---------- */
.chef-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chef-card { border-radius: var(--r-card); background: var(--paper); display: grid; grid-template-columns: clamp(96px, 11vw, 140px) 1fr; gap: clamp(18px, 2.4vw, 28px); align-items: start; padding: clamp(20px, 2.6vw, 32px); }
.chef-card img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 25%; border-radius: 14px; filter: grayscale(1); }
.chef-card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 12px; }
.chef-card small { display: block; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-text); margin-bottom: 8px; }
.chef-card ul { list-style: none; }
.chef-card li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }

.people-link { display: inline-flex; gap: 8px; margin-top: 24px; font-weight: 700; text-decoration: none; color: var(--fjord); }
.people-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Reveal ---------- */
/* Only hidden when JS runs (the <head> adds .js), so content never stays invisible */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Phones: section headings step down so they don't match the page title */
@media (max-width: 520px) { .h2 { font-size: clamp(34px, 9.6vw, 40px); } }

@media (max-width: 860px) { .chef-cards { grid-template-columns: 1fr; } }

/* ---------- Nav fit: labels stay on one line; tighter gaps on small laptops before the menu collapses ---------- */
.nav-links a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1140px) { .nav-links { gap: 22px; } }

/* ---------- Um okkur: story beside a contact card ---------- */
.about-grid { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-grid .prose h2:first-child { margin-top: 0; }
.info-card { background: var(--rye); border-radius: var(--r-card); padding: clamp(24px, 3vw, 36px); }
.info-card h2 { font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-text); margin-bottom: 8px; }
.info-card p + h2 { margin-top: 24px; }
.info-card a { color: var(--fjord); font-weight: 700; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Skilmálar: terms beside a sticky table of contents ---------- */
.terms-grid { display: grid; grid-template-columns: 1fr minmax(200px, 280px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.terms-grid .prose { grid-row: 1; grid-column: 1; }
.terms-grid .prose h2 { scroll-margin-top: 96px; }
.toc { grid-column: 2; position: sticky; top: 100px; background: var(--paper); border-radius: var(--r-card); padding: 24px; }
.toc h2 { font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-text); margin-bottom: 8px; }
.toc ol { list-style: none; }
.toc a { display: block; padding: 7px 0; font-size: 15px; text-decoration: none; border-top: 1px solid var(--line); }
.toc li:first-child a { border-top: 0; }
.toc a:hover { color: var(--fjord); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .terms-grid { grid-template-columns: 1fr; } .toc { display: none; } }
