/* wahss.se – två ingångar. Kräver tokens.css. */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 23px;
}

/* Logotyper: svart i ljust tema, ljus i mörkt. Två bilder, en syns. */
.theme-dark-only { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-light-only { display: none !important; }
  :root:not([data-theme="light"]) .theme-dark-only { display: block !important; }
}
:root[data-theme="dark"] .theme-light-only { display: none !important; }
:root[data-theme="dark"] .theme-dark-only { display: block !important; }

.page { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: var(--space-6) var(--space-3); }
.entries { width: 100%; max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }

.entry { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-5); min-height: 280px; padding: var(--space-5) 32px; color: var(--ink); text-decoration: none; border: var(--rule-hair) solid var(--line); border-top: var(--rule-strong) solid var(--line-strong); }
.entry:hover { background: var(--paper-alt); }
.entry:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.entry__logo { display: block; line-height: 0; }
/* Bredd i stället för höjd, så att logotypen krymper på smala skärmar: 320px ≈ 36px hög, 179px ≈ 48px hög. */
.entry__logo img { width: 100%; height: auto; }
.entry__logo--labs img { max-width: 320px; }
.entry__logo--media img { max-width: 179px; }
.entry__body { display: flex; flex-direction: column; gap: var(--space-3); }
.entry__text { font-size: 18px; line-height: 28px; }
.entry__url { font-size: 15px; line-height: 23px; font-weight: 500; }
.entry:hover .entry__url { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .entries { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .entry { padding: var(--space-4); min-height: 0; }
}
