/* skuta.is: litir úr merkinu (dökkblár sjór, rjómahvítt segl) */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-ext.woff2") format("woff2");
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  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;
}

:root {
  --sjor: #0a3d66;
  --djup: #072c4a;
  --segl: #fbf8f1;
  --sandur: #f1ece1;
  --texti: #1d2a36;
  --daufur: #5a6977;
  --lina: #dcd5c6;
  --max: 46rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--texti);
  background: var(--segl);
  line-height: 1.65;
  font-size: 1.0625rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--sjor); text-underline-offset: 3px; }
a:hover { color: var(--djup); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.wide { max-width: 64rem; }

/* Haus (fastur) */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--sjor); color: var(--segl);
  box-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--segl); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand:hover { color: #fff; }

/* Forsíðuborði */
.hero {
  position: relative; color: #fff;
  background: var(--djup) url("/assets/img/segl.jpg") center 30% / cover no-repeat;
  min-height: 22rem; display: flex; align-items: flex-end;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,44,74,0) 30%, rgba(7,44,74,.75)); }
.hero .wrap { position: relative; z-index: 1; padding-top: 4rem; padding-bottom: 2.5rem; width: 100%; }
.hero h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; }
.hero p { margin: .5rem 0 0; font-size: 1.2rem; opacity: .92; }

.content { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.content h2 { color: var(--djup); font-size: 1.35rem; margin: 2.2rem 0 .6rem; }
.content p { margin: 0 0 1rem; }
.content hr { border: 0; border-top: 1px solid var(--lina); margin: 2rem 0; }
.source { font-size: .92rem; color: var(--daufur); font-style: italic; }

.notice {
  background: #fff; border: 1px solid var(--lina); border-left: 4px solid var(--sjor);
  border-radius: 8px; padding: .9rem 1.1rem; margin: 0 0 2rem;
}

blockquote {
  margin: 1.5rem 0; padding: 1.2rem 1.4rem; background: var(--sjor); color: var(--segl);
  border-radius: 10px; font-size: 1.15rem; line-height: 1.5;
}
blockquote p { margin: 0; }

ul.plain { padding-left: 1.2rem; }
ul.plain li { margin: .2rem 0; }

/* Fótur (fastur) */
.site-footer {
  position: sticky; bottom: 0; z-index: 20;
  background: var(--djup); color: rgba(251,248,241,.85); font-size: .9rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem 1rem; padding-top: .7rem; padding-bottom: .7rem; }
.site-footer a { color: var(--segl); }

@media (max-width: 640px) {
  .hero { min-height: 16rem; }
  .site-footer .wrap { font-size: .82rem; }
}
