/* Eidehli AS — site styles
   Brand: 2009 profile manual. Body type: Jost (OFL), a free substitute for Futura.
   No build step: edit this file directly. */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-wght.woff2") format("woff2-variations"),
       url("../fonts/jost-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Brand colours (profile manual) */
  --navy: #002B5C;
  --blue: #788BAF;
  --ink: #231F20;
  --grey-1: #464547;
  --grey-2: #636466;
  --grey-3: #939598;
  --grey-4: #ADAFB2;

  /* Surfaces */
  --paper: #FBFBF9;
  --hairline: #E3E4E6;
  --tint: #F1F3F7;

  /* Type */
  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);

  /* Layout */
  --measure: 38rem;
  --page: 68rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-gap: clamp(3.5rem, 8vw, 6.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 350;
  line-height: 1.65;
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(120, 139, 175, 0.28); }

img { display: block; max-width: 100%; height: auto; }

p { margin: 0 0 1.1em; text-wrap: pretty; hanging-punctuation: first; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; }

a {
  color: var(--navy);
  text-decoration-line: underline;
  text-decoration-color: rgba(120, 139, 175, 0.55);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
a:hover { text-decoration-color: var(--navy); }
a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  padding: 0.5rem 0.9rem;
  background: var(--navy);
  color: #fff;
  font-size: var(--step--1);
  text-decoration: none;
  z-index: 10;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: clamp(1.5rem, 4vw, 2.75rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.brand { display: inline-block; line-height: 0; }
.brand img { width: clamp(150px, 22vw, 205px); height: auto; }

.lang {
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  font-weight: 450;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin: 0 0.55rem 0 0.4rem;
  background: var(--grey-4);
  vertical-align: -0.1em;
}
.lang a { color: var(--grey-2); text-decoration: none; padding: 0.35rem 0.2rem; }
.lang a:hover { color: var(--navy); }
.lang a[aria-current="page"] { color: var(--navy); font-weight: 550; }

/* ---------- Sections ---------- */

main.wrap { padding-bottom: var(--section-gap); }

.nw { white-space: nowrap; }

.section {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  column-gap: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  margin-top: var(--section-gap);
  border-top: 1px solid var(--hairline);
  position: relative;
}
/* Short brand-gradient accent sitting on the hairline */
.section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
}

.section-label {
  margin: 0.35rem 0 1.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.4;
}

.section-body { max-width: var(--measure); }

/* Company: the opening statement */
.intro { margin-top: clamp(1.5rem, 5vw, 4rem); }
.lead {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.note { color: var(--grey-1); }

/* Founder */
.founder {
  display: grid;
  grid-template-columns: clamp(7.5rem, 14vw, 10.5rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 3.5vw, 2.5rem);
  align-items: start;
  max-width: calc(var(--measure) + 13rem);
}
.portrait {
  margin: 0.35rem 0 0;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  background: #111;
  box-shadow: 0 0 0 1px rgba(0, 43, 92, 0.08), 0 10px 30px -12px rgba(0, 43, 92, 0.35);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.more {
  margin-top: 1.6rem;
  font-weight: 450;
}
.more a { text-decoration: none; border-bottom: 1px solid rgba(120, 139, 175, 0.55); padding-bottom: 0.1em; }
.more a:hover { border-bottom-color: var(--navy); }
.more .arrow { display: inline-block; transition: transform 0.2s ease; margin-left: 0.2em; }
.more a:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .more .arrow { transition: none; } }

/* Contact */
.email {
  font-size: var(--step-1);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  overflow-wrap: anywhere;
}
address { font-style: normal; color: var(--grey-1); }
.legal {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
  font-size: var(--step--1);
  color: var(--grey-2);
  line-height: 1.6;
}
.legal p { margin-bottom: 0.35rem; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
}
.site-footer .wrap { display: flex; justify-content: center; }
.site-footer img { width: 14px; height: auto; opacity: 0.9; }

/* ---------- Small screens ---------- */

@media (max-width: 46rem) {
  .section { grid-template-columns: minmax(0, 1fr); }
  .section-label { margin-bottom: 1.25rem; }
}
@media (max-width: 30rem) {
  .founder { grid-template-columns: minmax(0, 1fr); }
  .portrait { width: 8.5rem; margin-bottom: 0.25rem; }
}

/* ---------- Print ---------- */

@media print {
  body { background: #fff; font-size: 11pt; }
  .lang, .skip-link, .site-footer { display: none; }
  .section { break-inside: avoid; margin-top: 2rem; }
  a { text-decoration: none; }
  .more a::after { content: " (" attr(href) ")"; font-size: 9pt; color: var(--grey-2); }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 404 page ---------- */
.notfound-no { margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--hairline); }
