/* hananu.is — skref 0. Sami rammi (borði, haus, fótur) og á vedurkort.is;
   sjá marketing-site/src/style.css. Breytist annar, skal hinn fylgja. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --hn-paper: #FAFAF7;
  --hn-ink: #121212;
  --hn-sun: #FFDD1F;
  --hn-rule: 2px solid var(--hn-ink);
  --hn-gutter: clamp(1.25rem, 2.5vw, 2rem);
  --hn-banner-h: 2.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--hn-paper);
  color: var(--hn-ink);
  font: 400 17px/1.55 Archivo, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--hn-sun);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

/* ─── borði og haus ─────────────────────────────────────────────────────── */

.hn-top {
  position: sticky;
  top: calc(-1 * var(--hn-banner-h));
  z-index: 40;
}

.hn-banner {
  align-items: center;
  background: var(--hn-ink);
  color: var(--hn-paper);
  display: flex;
  font-size: clamp(0.6875rem, 2.9vw, 0.8125rem);
  font-weight: 600;
  height: var(--hn-banner-h);
  justify-content: center;
  letter-spacing: 0.02em;
  padding: 0 var(--hn-gutter);
  white-space: nowrap;
}

.hn-header {
  align-items: center;
  background: var(--hn-paper);
  border-bottom: var(--hn-rule);
  display: flex;
  gap: var(--hn-gutter);
  justify-content: space-between;
  padding: 0.9rem var(--hn-gutter);
}

.hn-logo img {
  display: block;
  height: 34px;
  width: auto;
}

.hn-nav {
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hn-nav a {
  white-space: nowrap;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  padding-block: 0.35em;
  transition: background-size 0.25s ease;
}

.hn-nav a:hover {
  background-size: 100% 2px;
}

/* ─── efni ──────────────────────────────────────────────────────────────── */

.hn-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hn-hero {
  border-bottom: var(--hn-rule);
  padding: clamp(3rem, 9vw, 7rem) var(--hn-gutter) clamp(2.5rem, 6vw, 4.5rem);
}

.hn-hero h1 {
  font-size: clamp(2.5rem, 6.6vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 14ch;
}

.hn-hero p {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  max-width: 34ch;
}

.hn-feature {
  background: var(--hn-sun);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.hn-feature__media {
  border-right: var(--hn-rule);
  display: block;
}

.hn-feature__media img {
  display: block;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  width: 100%;
}

.hn-feature__body {
  align-content: space-between;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  justify-items: start;
  padding: clamp(2rem, 5vw, 4rem) var(--hn-gutter);
}

.hn-feature__body h2 {
  font-size: clamp(2rem, 3.8vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 1rem;
  max-width: 16ch;
}

.hn-btn {
  background: var(--hn-ink);
  border: var(--hn-rule);
  border-radius: 999px;
  color: var(--hn-paper);
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 1.05rem 1.9rem;
  text-transform: uppercase;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hn-btn:hover,
.hn-btn:focus-visible {
  background: var(--hn-paper);
  color: var(--hn-ink);
}

/* ─── fótur ─────────────────────────────────────────────────────────────── */

.hn-footer {
  background: var(--hn-ink);
  color: var(--hn-paper);
  padding: clamp(2rem, 5vw, 4rem) var(--hn-gutter) var(--hn-gutter);
}

.hn-footer a:hover {
  color: var(--hn-sun);
}

.hn-footer__nav {
  display: grid;
  font-size: 14px;
  font-weight: 700;
  gap: 0.55rem;
  justify-items: start;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hn-footer__mark {
  display: block;
  filter: invert(1) brightness(0.98);
  margin: clamp(2rem, 5vw, 4rem) 0 1rem;
  width: 100%;
}

.hn-footer__legal {
  border-top: 2px solid var(--hn-paper);
  font-size: 14px;
  letter-spacing: 0.06em;
  opacity: 0.7;
  padding-top: 1rem;
  text-transform: uppercase;
}

/* ─── 404 ───────────────────────────────────────────────────────────────── */

.hn-hero--stutt {
  border-bottom: 0;
  min-height: 55vh;
}

.hn-hero--stutt .hn-btn {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 760px) {
  .hn-feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .hn-feature__media {
    border-bottom: var(--hn-rule);
    border-right: 0;
  }

  .hn-feature__media img {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .hn-logo img {
    height: 28px;
  }

  .hn-nav {
    font-size: 12px;
    gap: 0.9rem;
  }
}
