/* sameinada.is, the publisher's own site (templates/vefir/sameinada/page.html, outlets/vefir.py): its logo's black and
   paper colour, its mark and name in a black head and foot, Archivo (its fonts here, OFL: fonts/OFL.txt). The outlets'
   cards in their own marks and colours on white. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin.woff2?v=2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-ext.woff2?v=2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root { --ink: #0f0f0f; --black: #000; --paper: #f5ebe2; --page: #faf6f1; --card: #fff; --muted: #5c5650; --hair: #e3dad1; --link: #0f0f0f;
  --on-black: #cfc6bc; --rule-on-black: #4a4540; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.6 "Archivo", "Helvetica Neue", Arial, sans-serif; font-stretch: 100%; }
a { color: var(--link); }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* (For the keyboard: past the head to the page, seen when it has the focus.) */
.sv-skip { position: absolute; left: -9999px; top: 8px; padding: 8px 14px; background: var(--paper); color: var(--ink); font-weight: 700; z-index: 20; }
.sv-skip:focus { left: 8px; }
.sv-wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

.sv-preview { background: #ffd37a; color: #000; font: 600 13px/1.3 "Archivo", sans-serif; text-align: center; padding: 6px 12px; }

/* The head: mark and name, the menu */
.sv-head { background: var(--black); color: var(--paper); }
.sv-head__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.sv-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.sv-brand .mark { width: 42px; height: 42px; fill: var(--paper); flex: none; }
.sv-word { font: 700 20px/1.02 "Archivo", sans-serif; font-stretch: 72%; letter-spacing: -.005em; }
.sv-nav--narrow { display: none; }
.sv-nav ul { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; list-style: none; }
.sv-nav a { color: var(--paper); text-decoration: none; font-weight: 500; font-size: 15px; }
.sv-nav a:hover, .sv-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* The page */
.sv-main { padding: 48px 0 64px; }
.sv-main h1 { font: 700 44px/1.04 "Archivo", sans-serif; font-stretch: 72%; letter-spacing: -.01em; margin: 0 0 14px; max-width: 20ch; text-wrap: balance; }
.sv-main--front h1 { font-size: clamp(40px, 6vw, 64px); }
.sv-intro { font-size: 20px; line-height: 1.5; color: #2b2723; max-width: 60ch; margin: 0 0 8px; }
.sv-body { margin-top: 28px; }
.sv-body > p, .sv-body > ul, .sv-body > ol, .sv-body > h2, .sv-body > h3, .sv-body > blockquote, .sv-body > table { max-width: 68ch; }
/* (a section's heading under a black rule, as a paper's) */
.sv-body > h2, .sv-folk h2 { font: 700 34px/1.08 "Archivo", sans-serif; font-stretch: 72%; letter-spacing: -.005em; margin: 56px 0 14px; padding-top: 16px; border-top: 2px solid var(--ink); max-width: none; }
.sv-body > h2:first-child, .sv-body > .sv-folk:first-child h2 { margin-top: 8px; }
.sv-body h3 { font: 700 20px/1.25 "Archivo", sans-serif; margin: 28px 0 6px; }
.sv-body p { margin: 0 0 14px; }
.sv-body a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sv-body table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.sv-body th, .sv-body td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--hair); }

/* The front: its title on black beside the mark, a few facts under it */
.sv-main--front { padding-top: 0; }
.sv-hero { background: var(--black); color: var(--paper); margin-bottom: 48px; }
.sv-hero__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 44px; }
.sv-main--front .sv-hero h1 { color: var(--paper); font-size: clamp(44px, 6vw, 64px); max-width: 14ch; margin-bottom: 18px; }
.sv-hero .sv-intro { color: var(--paper); max-width: 46ch; margin: 0; }
.sv-hero__mark { width: clamp(120px, 17vw, 210px); height: auto; fill: var(--paper); flex: none; }
.sv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 32px; margin: 0; border-top: 1px solid var(--rule-on-black); }
.sv-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 20px 0 30px; }
.sv-facts dd { margin: 0; font: 700 44px/1 "Archivo", sans-serif; font-stretch: 72%; font-variant-numeric: tabular-nums; }
.sv-facts dt { margin-top: 8px; font-size: 15px; color: var(--on-black); }

/* [[stjorn]]: a card for each person */
.sv-folk { margin: 0 0 8px; }
.sv-folk__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.sv-person { display: flex; gap: 18px; align-items: flex-start; padding: 20px; background: var(--card); border: 1px solid var(--hair); }
.sv-person__pic { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.sv-person__pic--initials { display: flex; align-items: center; justify-content: center; background: var(--black); color: var(--paper); font: 700 28px/1 "Archivo", sans-serif; font-stretch: 72%; }
.sv-person h3 { font: 700 20px/1.2 "Archivo", sans-serif; margin: 2px 0 4px; }
.sv-person p { margin: 0 0 4px; }
.sv-person__role { font-weight: 600; font-size: 15px; }
.sv-person__text { font-size: 15px; line-height: 1.5; color: var(--muted); }
.sv-person__mail { font-size: 14px; }

/* [[erindi]]: whom to write to, a card each */
.sv-erindi { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 8px 0 32px; }
.sv-erindi__card { padding: 22px 22px 18px; background: var(--card); border: 1px solid var(--hair); border-top: 2px solid var(--ink); }
.sv-erindi__card h2 { font: 700 22px/1.2 "Archivo", sans-serif; font-stretch: 78%; margin: 0 0 6px; }
.sv-erindi__card p { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.sv-erindi__card ul { list-style: none; margin: 0; padding: 0; }
.sv-erindi__card li { padding: 6px 0; border-top: 1px solid var(--hair); font-size: 15px; overflow-wrap: anywhere; }
.sv-erindi__card li span { display: block; font-size: 14px; color: var(--muted); }

/* [[midlar]]: a card for each outlet */
.sv-midlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--ink); background: var(--card); margin: 8px 0 32px; }
.sv-midill { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 26px; text-decoration: none; color: var(--ink); border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); min-width: 0; }
.sv-midill:hover .sv-midill__go { text-decoration: underline; }
.sv-midill__logo { height: 34px; display: flex; align-items: center; }
.sv-midill__logo svg { height: 100%; width: auto; max-width: 100%; fill: #141414; }
.sv-midill--mannlif .sv-midill__logo svg { fill: #e4002b; }
/* (each in its own colour: Heimilisblaðið's green, its --st-logo-color; Vísbending's --v-main, from visbending.is) */
.sv-midill--heimilisbladid .sv-midill__logo svg { fill: hsl(174, 100%, 28%); }
.sv-midill--visbending .sv-midill__logo svg { fill: hsl(189, 100%, 14%); }
.sv-midill__name { font: 700 26px/1 "Archivo", sans-serif; font-stretch: 85%; color: #0b3d5c; }
.sv-midill__text { font-size: 15px; line-height: 1.5; color: #3a3530; }
.sv-midill__facts { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--muted); }
.sv-midill__go { margin-top: auto; font-weight: 600; font-size: 14px; }

/* [[hluthafar]]: the register */
.sv-hlut { max-width: 760px; margin: 8px 0 32px; }
.sv-hlut h2 { font: 700 22px/1.2 "Archivo", sans-serif; margin: 0 0 4px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.sv-hlut__meta { color: var(--muted); font-size: 14px; margin: 8px 0 4px; }
.sv-hlut ol { list-style: none; margin: 0; padding: 0; }
.sv-hlut li { border-bottom: 1px solid var(--hair); }
.sv-hlut__row, .sv-hlut summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 4.5em; align-items: center; gap: 20px; padding: 11px 0; }
.sv-hlut__bar { display: block; height: 10px; background: var(--hair); }
.sv-hlut__bar span { display: block; height: 100%; background: var(--ink); }
.sv-hlut__bar--own span { background: var(--muted); }
.sv-hlut__cap { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.sv-hlut summary { cursor: pointer; list-style: none; }
/* (That a company's row opens: a plus after its name, a minus while it is open.) */
.sv-hlut summary .sv-hlut__name::after { content: " +"; color: var(--muted); }
.sv-hlut details[open] summary .sv-hlut__name::after { content: " −"; }
.sv-hlut summary::-webkit-details-marker { display: none; }
.sv-hlut__name--co { text-decoration: underline; text-decoration-color: #a39a90; text-underline-offset: 4px; }
.sv-hlut__pct { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.sv-hlut details p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }

/* The foot */
.sv-foot { background: var(--black); color: var(--on-black); padding: 32px 0 40px; font-size: 14px; }
.sv-foot__in { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-start; justify-content: space-between; }
.sv-brand--small .mark { width: 32px; height: 32px; }
.sv-brand--small .sv-word { font-size: 16px; }
.sv-foot__text p { margin: 0 0 6px; }
.sv-foot a { color: var(--paper); }

@media (max-width: 760px) {
  .sv-head__in { min-height: 64px; }
  .sv-brand .mark { width: 34px; height: 34px; }
  .sv-word { font-size: 17px; }
  .sv-nav--wide { display: none; }
  .sv-nav--narrow { display: block; }
  .sv-nav__btn { display: block; cursor: pointer; width: 44px; height: 44px; margin: -12px -8px; padding: 0; border: 0; background: none; position: relative; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .sv-nav__btn span, .sv-nav__btn::before, .sv-nav__btn::after { content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: var(--paper); }
  .sv-nav__btn::before { top: 12px; } .sv-nav__btn span { top: 21px; } .sv-nav__btn::after { bottom: 12px; }
  .sv-nav--narrow nav { display: none; }
  .sv-nav--narrow.is-open nav { display: block; position: absolute; left: 0; right: 0; top: 64px; background: var(--black); padding: 8px 20px 20px; z-index: 10; border-top: 1px solid var(--rule-on-black); border-bottom: 2px solid var(--paper); }
  /* (open: the three bars become an X, the sign that the same button closes it) */
  .sv-nav--narrow.is-open .sv-nav__btn span { opacity: 0; }
  .sv-nav--narrow.is-open .sv-nav__btn::before { top: 21px; transform: rotate(45deg); }
  .sv-nav--narrow.is-open .sv-nav__btn::after { bottom: 21px; transform: rotate(-45deg); }

  .sv-nav--narrow.is-open ul { flex-direction: column; gap: 14px; }
  .sv-head { position: relative; }
  /* (iPhones send a tap on a plain area to the page only where it looks clickable: outside the open menu it closes it) */
  .sv-menu-open body { cursor: pointer; }
  .sv-main { padding: 32px 0 48px; }
  .sv-main h1 { font-size: 34px; }
  .sv-main--front { padding-top: 0; }
  .sv-main--front .sv-hero h1 { font-size: 40px; }
  .sv-intro { font-size: 18px; }
  .sv-midill { border-right: 0; }
  .sv-hero__in { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; padding-bottom: 28px; }
  .sv-hero__mark { order: -1; width: 72px; }
  .sv-hero .sv-intro { font-size: 18px; }
  .sv-facts { grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
  .sv-facts div { padding: 16px 0 22px; }
  .sv-facts dd { font-size: 34px; }
  .sv-facts dt { font-size: 14px; }
  .sv-body > h2, .sv-folk h2 { font-size: 28px; margin-top: 44px; }
  .sv-hlut__row, .sv-hlut summary { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .sv-hlut__bar { grid-column: 1 / -1; grid-row: 2; height: 6px; }
  .sv-folk__grid { grid-template-columns: 1fr; }
  .sv-person__pic { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
