/* Aldir Fasteignir — from Figma "Vefsíða" (Aldir-Vefur: 1440 / 2000 / mobile 393) */

/* Figtree, self-hosted (SIL OFL, see assets/font/OFL.txt). Variable font:
   one file per subset covers both weights used (500, 600). */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("assets/font/figtree-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;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("assets/font/figtree-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #325048;
  --dark-green: #1e2623;
  --white: #ffffff;

  /* Design font is ABC Solar (commercial). Figtree is the stand-in until the
     licensed webfont files are added. */
  --font: "ABC Solar", "Figtree", system-ui, sans-serif;
  --display-features: "ss05" 1, "ss06" 1, "ss08" 1;
  --number-features: "onum" 1, "pnum" 1;

  --page-max: 1344px;
  --gutter: 40px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--green);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.page {
  max-width: var(--page-max);
  margin: 0 auto;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 128px;
  padding: 0 var(--gutter);
  background: var(--white);
}

.logo img { width: 313px; height: 48px; }

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 43px;
  padding: 0 20px;
  border-radius: 24px;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.48;
  letter-spacing: -0.48px;
  font-feature-settings: var(--display-features);
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
  transition: background-color 0.15s ease;
}
.contact-button:hover { background: var(--dark-green); }

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 1344 / 655;
  padding: 0 0 56px var(--gutter);
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: top;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 65.267%, rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.hero__title {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-weight: 600;
  font-size: 64px;
  line-height: normal;
  letter-spacing: -1.92px;
}

/* Intro */
.intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 97px;
  padding: 80px var(--gutter);
}

.intro__logo img { width: 367px; height: 30px; }

.intro__text {
  width: 731px;
  flex-shrink: 1;
  color: var(--green);
  letter-spacing: -0.96px;
  font-feature-settings: var(--display-features);
}

.intro__lead {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.28;
  margin-bottom: 1.28em; /* the empty 32px line between the paragraphs */
}

.intro__body {
  font-size: 26px;
  line-height: 1.48;
}

/* Wide screens (2000px frame): the text fills the space next to the logo */
@media (min-width: 1600px) {
  .intro { justify-content: flex-start; }
  .intro__text { width: auto; flex: 1 1 0; }
}

/* Staff */
.staff {
  padding: 40px var(--gutter);
}

.staff__title {
  color: var(--green);
  font-weight: 600;
  font-size: 40px;
  line-height: normal;
  letter-spacing: -1.2px;
  margin-bottom: 64px;
}

.staff__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 64px;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.person__photo {
  width: 100%;
  aspect-ratio: 304 / 365;
  object-fit: cover;
  background: #d9d9d9;
}

.person__name {
  color: var(--dark-green);
  font-weight: 600;
  font-size: 24px;
  line-height: normal;
  letter-spacing: -0.48px;
}

.person__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--green);
  font-size: 16px;
  line-height: normal;
  letter-spacing: 0.04px;
  font-feature-settings: var(--number-features);
}

.person__info > * {
  text-box: trim-both cap alphabetic;
  overflow-wrap: anywhere;
}

.person__info a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px var(--gutter);
  background: var(--white);
}

.site-footer__logo { width: 313px; height: 48px; flex-shrink: 0; }

.site-footer__info {
  color: var(--green);
  font-size: 16px;
  line-height: normal;
  font-feature-settings: var(--number-features);
  text-align: right;
  text-box: trim-both cap alphabetic;
}

.site-footer__info strong { font-weight: 600; }
.site-footer__info .sep { white-space: pre; }
.site-footer__info .sep::before,
.site-footer__info .sep::after { content: " "; }

/* In-between widths: fewer columns, stacked intro */
@media (max-width: 1100px) {
  .staff__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro { flex-direction: column; gap: 48px; }
  .intro__text { width: auto; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer__info { text-align: left; }
}

@media (max-width: 820px) {
  .staff__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__title { font-size: 48px; letter-spacing: -1.44px; }
}

/* Mobile (393 frame) */
@media (max-width: 600px) {
  :root { --gutter: 20px; }

  .site-header { height: 83px; padding: 0 var(--gutter); }
  /* height: auto so the logo scales down evenly on very narrow screens
     (the SVGs use preserveAspectRatio="none" and would stretch) */
  .logo img { width: 182px; height: auto; aspect-ratio: 182 / 28; }
  .contact-button {
    height: 37px;
    padding: 0 16px;
    font-size: 13px;
    letter-spacing: -0.39px;
  }

  .hero {
    aspect-ratio: auto;
    height: 300px;
    padding-bottom: 40px;
  }
  .hero__image {
    inset: 0 auto auto -10.92%;
    width: 128.66%;
    height: 112.33%;
  }
  .hero__title {
    font-size: 32px;
    letter-spacing: -0.96px;
  }

  .intro {
    gap: 40px;
    padding: 40px var(--gutter);
    opacity: 0.8;
  }
  .intro__logo img { width: 245px; height: 20px; }
  .intro__text { letter-spacing: -0.6px; }
  .intro__lead { font-size: 20px; margin-bottom: 1.28em; }
  .intro__body { font-size: 20px; }

  .staff { padding: 20px var(--gutter); }
  .staff__title {
    font-size: 32px;
    letter-spacing: -0.96px;
    margin-bottom: 40px;
  }
  .staff__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }
  .person { gap: 16px; }
  .person__photo { aspect-ratio: 353 / 445; }

  .site-footer {
    gap: 122px;
    padding: 80px var(--gutter);
  }
  .site-footer__logo { width: 313px; height: auto; aspect-ratio: 313 / 48; max-width: 100%; }
  .site-footer__info .sep { display: none; }
  .site-footer__info > * { display: block; }
}
