/* Shared by every page: tokens, base, type, buttons, nav, footer, logo wall, tags.
   Page-specific layout lives in each page's <style> or in vidskiptavinir/client.css.
   Breakpoints used across the site: 1000px (nav collapses), 860px (columns stack), 520px (small phones). */
:root {
  /* Palette A (2 Nov 2026): built around the badge teal on cream. Teal family for brand, bands and buttons; warm sand kept for cards */
  --oat: #f2eee3;          /* cream page */
  --seaglass: #dbe8e4;     /* pale teal band (was sage) */
  --rye: #ebdfcb;          /* warm sand cards */
  --rye-deep: #e4d6bf;
  --paper: #fbf9f3;
  --ticket: #fffdf6;
  --deep: #0f4146;         /* deep teal: dark bands, outlines, links (was navy) */
  --teal: #256f78;         /* button and text teal: 5:1 on cream, 5.8:1 under white text (was orange) */
  --brand-teal: #3A919C;   /* light teal accent: eyebrow dots, quote mark (the logo itself is deep teal since the Canteen Seal) */
  --ink: #14272a;
  --ink-soft: #33474a;
  --stone: #56605f;
  --faint: #879290;
  --error: #b3261e;
  --line: rgba(20, 39, 42, .16);
  --line-strong: rgba(20, 39, 42, .55); /* borders of controls (chips, filters, inputs): 3:1 or more on cream and sand */

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --accent: 'Fraunces', Georgia, serif;
  --text: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --r-img: 20px;
  --r-card: 24px;
  --r-sm: 14px;             /* small portraits */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
/* Anchor targets land below the sticky menu bar */
main[id], main [id] { scroll-margin-top: 100px; }
/* Reduced motion: no smooth scrolling, and every animation and transition finishes at once */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  background: var(--oat); color: var(--ink);
  font-family: var(--text); font-size: 16px; line-height: 1.5; letter-spacing: .012em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-teal); }
.display { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 9vw, 128px); line-height: .86; letter-spacing: -.03em; }
/* Subpage page titles (the homepage hero uses .display) */
.title { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7.6vw, 104px); overflow-wrap: break-word; line-height: .88; letter-spacing: -.03em; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.6vw, 72px); line-height: .9; letter-spacing: -.02em; }
.h3 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -.015em; }
h1, h2, .display, .title, .h2, .h3 { text-wrap: balance; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; max-width: 44ch; }
.muted { color: var(--stone); }
/* Skip link: hidden until it gets keyboard focus */
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--deep); color: var(--oat); font-weight: 700; padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1 var(--text); letter-spacing: .02em; text-decoration: none; white-space: nowrap; padding: 17px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--deep); }
/* On the deep-teal bands a teal button would disappear, so it turns cream */
.events .btn-primary, .cta .btn-primary { background: var(--oat); color: var(--deep); }
.events .btn-primary:hover, .cta .btn-primary:hover { background: #fff; }
/* Smaller filled button: the menu bar's Fá tilboð */
.btn-sm { padding: 12px 20px; font-size: 14px; }
.btn-outline { border-color: var(--deep); color: var(--deep); padding: 12px 20px; font-size: 14px; }
.btn-outline:hover { background: var(--deep); color: var(--oat); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); padding: 15px 22px; }
.btn-outline-dark:hover { background: var(--ink); color: var(--oat); }

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; border-radius: 4px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(242, 238, 227, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.logo { display: inline-flex; flex: none; text-decoration: none; }
/* The Réttur dagsins badge: one vector file (images/brand/rettur-dagsins.svg, transparent background). Swap that file for the designer's original when it arrives; the footer one is larger */
/* Menu bar: the horizontal logo (circle mark + lettering, 2.456:1); footer: the round badge */
.logo img { display: block; height: 58px; width: auto; }
footer .logo img { width: 80px; height: 80px; }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 36px); list-style: none; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
/* Narrow desktops (until the menu collapses at 1000px): smaller labels so they stay on one line beside the wide logo */
@media (min-width: 1001px) and (max-width: 1180px) { .nav-links { gap: 18px; } .nav-links a { font-size: 14px; letter-spacing: .04em; } }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--deep); text-decoration: underline; text-underline-offset: 6px; }
.menu-btn { display: none; align-items: center; gap: 8px; font: 700 14px var(--text); color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.menu-btn i { width: 14px; height: 2px; background: currentColor; position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 14px; height: 2px; background: currentColor; }
.menu-btn i::before { top: -5px; } .menu-btn i::after { top: 5px; }
.nav.open .menu-btn i { background: transparent; }
.nav.open .menu-btn i::before { top: 0; transform: rotate(45deg); } .nav.open .menu-btn i::after { top: 0; transform: rotate(-45deg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn, .menu-btn { min-height: 44px; }

/* ---------- Footer ---------- */
/* Footer: a hairline and generous room above it, badge and teal links on one centred row, then the wordmark with even space above and below */
footer { border-top: 1px solid var(--line); margin-top: clamp(32px, 5vw, 64px); padding: clamp(40px, 5vw, 64px) 0 28px; font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot ul { list-style: none; display: flex; gap: 0 24px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
/* Padding makes each footer link a 44px-tall touch target */
.foot ul a { display: inline-block; padding: 11px 0; color: var(--teal); font-weight: 700; font-size: 15px; }
.foot a:hover { text-decoration: underline; }
/* Footer wordmark: the Canteen Seal lettering (images/brand/rettur-dagsins-wordmark.svg), full footer width */
.wordmark { display: block; width: 100%; height: auto; margin: clamp(28px, 4.5vw, 56px) 0 clamp(24px, 3.5vw, 44px); }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--stone); }
.legal a { color: inherit; font-weight: 700; }
/* The kennitala is a hidden link to the Fiskur dagsins pitch pages (fiskur-dagsins/): it must look like plain text */
.legal a.kt { font-weight: inherit; text-decoration: none; cursor: text; }

/* ---------- Logo wall: client logos in a ruled grid (homepage, Um okkur, client pages) ---------- */
.logo-wall { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-wall a { position: relative; height: clamp(110px, 11vw, 140px); display: grid; place-items: center; padding: 24px; text-decoration: none; transition: background .3s; }
.logo-wall a:hover, .logo-wall a:focus-visible { background: var(--paper); }
.logo-wall img { height: calc(var(--h, 26px) * var(--logo-scale, 1)); width: auto; max-width: 90%; object-fit: contain; filter: brightness(0); opacity: .78; transition: filter .3s, opacity .3s, transform .3s; }
.logo-wall a:hover img, .logo-wall a:focus-visible img { filter: none; opacity: 1; }
/* Full client walls (homepage, Um okkur): 4 × 2 grid filled column by column, so the alphabetical
   order reads down each column then left to right (Alvotech above Arion…); the eighth cell asks for a quote */
.logo-wall.wall-grid { grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.logo-cta a { align-content: center; gap: 6px; text-align: center; color: var(--deep); }
.logo-cta b { font-family: var(--display); font-weight: 400; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em; line-height: 1.1; color: var(--ink); }
.logo-cta span { font-size: 14px; font-weight: 700; }
/* "Fleiri mötuneyti" on client pages: six logos in one row, so a little smaller */
.others .logo-wall { --logo-scale: .66; }
@media (min-width: 861px) and (max-width: 1100px) { .logo-wall.wall-grid { --logo-scale: .85; } .others .logo-wall { --logo-scale: .5; } }
@media (min-width: 861px) and (max-width: 1000px) { .logo-wall.wall-grid { --logo-scale: .72; } .others .logo-wall { --logo-scale: .44; } }
/* Logo sizes: each SVG has different proportions, padding and weight. These heights give every
   wordmark roughly the same letter height as the VÍS logo (Icelandair's letters are only about a third
   of its frame; the tail fin is the rest). The walls, client page header and phone layout all scale from --h. */
img[src$="alvotech.svg"] { --h: 36px; }
img[src$="arion.svg"] { --h: 32px; }
img[src$="icelandair.svg"] { --h: 48px; }
img[src$="marel.svg"] { --h: 23.5px; }
img[src$="sjova.svg"] { --h: 37px; }
img[src$="vis.svg"] { --h: 36px; }
img[src$="ossur.svg"] { --h: 28px; }

/* ---------- Client quote: one per client page, one featured on the homepage ---------- */
.quote { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: clamp(16px, 3vw, 40px); align-content: start; background: var(--paper); border-radius: var(--r-card); padding: clamp(24px, 4vw, 48px); }
.quote::before { content: "\201C"; grid-row: span 4; font-family: var(--accent); font-style: italic; font-weight: 200; font-size: clamp(96px, 9vw, 132px); line-height: .8; margin-top: -.06em; color: var(--brand-teal); }
.quote blockquote { margin: 12px 0 0; font-family: var(--display); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; letter-spacing: -.005em; max-width: 58ch; }
.quote figcaption { margin-top: 22px; font-size: 15px; color: var(--stone); display: flex; align-items: center; gap: 14px; }
/* Small round portrait of the person quoted */
.quote-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.quote figcaption b { display: block; color: var(--ink); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
/* Faint lines standing in for the quote text */
.quote-lines { display: grid; gap: 14px; margin-top: 18px; }
.quote-lines i { display: block; height: 14px; border-radius: 7px; background: rgba(20, 39, 42, .08); }
.quote-lines i:nth-child(2) { width: 88%; }
.quote-lines i:nth-child(3) { width: 56%; }

/* ---------- Placeholders: values and photos still to come from SV ---------- */
.ph { display: inline-block; font-family: var(--text); font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--stone); background: rgba(255, 255, 255, .3); border: 1px dashed rgba(86, 96, 95, .55); border-radius: 6px; padding: 3px 9px; letter-spacing: .02em; vertical-align: middle; }
/* "Dæmi" tag on stock photos that will be replaced */
.demo-tag, .ph-tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(242, 238, 227, .88); backdrop-filter: blur(6px); color: var(--ink); font: 700 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .quote { grid-template-columns: 1fr; }
  .quote::before { grid-row: auto; font-size: 96px; height: .45em; margin-top: -.05em; }
}
@media (max-width: 860px) {
  .logo-wall, .logo-wall.wall-grid { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  /* Two narrow columns: shrink every logo by the same amount so the wide ones aren't squeezed alone */
  .logo-wall, .others .logo-wall { --logo-scale: .7; }
  .logo-wall a { padding: 20px 12px; }
  .logo-wall li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--oat); border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 12px; box-shadow: 0 20px 30px -24px rgba(20, 39, 42, .4); }
  .nav.open .nav-links { display: flex; }
  .nav-links li + li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 15px 0; font-size: 15px; }
}
/* Small phones: the stacked logo, slightly smaller; menu button shrinks to its icon */
@media (max-width: 520px) {
  /* Long Icelandic words (e.g. "rannsóknarstofunni") must still fit a 320px screen */
  .title { font-size: clamp(32px, 10.5vw, 48px); }
  .nav-inner { gap: 12px; }
  .nav-inner { height: 76px; }
  .logo img { height: 44px; }
  footer .logo img { width: 68px; height: 68px; }
  .nav-actions { gap: 8px; }
  .nav .btn { padding: 10px 14px; font-size: 13px; }
  /* Section headings a step below the page title, so the h1 stays the largest type on a phone */
  .h2 { font-size: clamp(30px, 8.4vw, 40px); overflow-wrap: break-word; }
  .menu-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
