/*
 * leveasy.dk – public company page.
 * Values are copied from direction A "Lysning" (clients/shared/tokens/src/index.ts, `export const lysning`)
 * and DESIGN.md. This static site cannot import the TypeScript tokens, so they are mirrored once here as
 * custom properties; change them there first, then here.
 */

/* ---------- fonts (OFL, self-hosted; see assets/fonts/ and README.md) ---------- */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-400-normal.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: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-ext-400-normal.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;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-600-normal.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: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-ext-600-normal.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;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk-latin-600-normal.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: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/hanken-grotesk-latin-ext-600-normal.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;
}

/* ---------- tokens (lysning) ---------- */
:root {
  --c-page: #f5f2ec;
  --c-surface: #ffffff;
  --c-sunk: #ebe6dd;
  --c-ink: #18211d;
  --c-muted: #4a544e;
  --c-line: rgba(24, 33, 29, 0.12);
  --c-line-heavy: #6b746f;
  --c-clay: #94442a;
  --c-clay-soft: #f6e6df;
  --c-pine: #1d3b31;
  --c-pine-hover: #12271f;
  --c-on-pine: #ffffff;
  --c-pine-soft: #e1eae3;
  --c-on-pine-soft: #cfe0d6;
  --c-link: #1f5c47;
  --c-hero-ring: #2b5244;
  --c-focus: #18211d;
  --c-focus-halo: #ffffff;

  --font-display: "Hanken Grotesk", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-body: 1.0625rem;   /* 17 px */
  --text-lead: 1.1875rem;   /* 19 px */
  --text-button: 1rem;      /* 16 px */
  --text-h2: 1.375rem;      /* 22 px */
  --text-display: clamp(1.875rem, 1.35rem + 2.1vi, 3rem);

  --s-1: 0.25rem;  /* xs 4 */
  --s-2: 0.5rem;   /* sm 8 */
  --s-3: 0.75rem;  /* smd 12 */
  --s-4: 1rem;     /* md 16 */
  --s-6: 1.5rem;   /* lg 24 */
  --s-8: 2rem;     /* xl 32 */
  --s-12: 3rem;    /* xxl 48 */
  --s-16: 4rem;    /* xxxl 64 */
  --pad-page: clamp(1rem, 4vi, 2.5rem);

  --r-control: 10px;
  --r-card: 14px;
  --r-sheet: 20px;
  --elev-card: 0 1px 2px rgba(24, 33, 29, 0.05), 0 8px 24px -16px rgba(24, 33, 29, 0.18);
  --elev-lift: 0 1px 2px rgba(24, 33, 29, 0.06), 0 18px 40px -20px rgba(24, 33, 29, 0.30);

  --measure: 38rem;
  --shell-max: 76rem;
  --d-fast: 120ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--c-page);
  color: var(--c-ink);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: 1.6;
  font-weight: 400;
}
img, svg { display: block; max-width: 100%; }
h1, h2 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: var(--text-display); line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: var(--text-h2); line-height: 1.2; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--c-link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--c-focus-halo);
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: -4rem;
  z-index: 30;
  background: var(--c-pine);
  color: var(--c-on-pine);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-control);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: var(--s-2); }

.wrap {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--pad-page);
}

/* ---------- header ---------- */
.site-header { padding-block: var(--s-6); }
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  /* clear space around the mark: at least 1/4 of the house width (about 8 px at this size) */
  padding: var(--s-2);
  margin-inline-start: calc(var(--s-2) * -1);
}
.brand img { width: auto; height: 2.5rem; }   /* about 158 px wide; never under 80 px */

/* ---------- main ---------- */
main { flex: 1 0 auto; padding-block: var(--s-8) var(--s-16); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-4); }
.prose > h1 + * { margin-top: var(--s-6); }
.prose > * + h2 { margin-top: var(--s-12); }
.prose > h2 + * { margin-top: var(--s-3); }
.lead { font-size: var(--text-lead); line-height: 1.45; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: var(--s-2) 1.25rem;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  font: 600 var(--text-button)/1.2 var(--font-ui);
  text-decoration: none;
  text-align: center;
  transition: background-color var(--d-fast) var(--ease-out);
}
.btn--primary { background: var(--c-pine); color: var(--c-on-pine); }
.btn--primary:hover { background: var(--c-pine-hover); }
@media (min-width: 64rem) { .btn { min-height: 2.75rem; } }

/* front page (coming soon): short text, then the official illustration on the page background.
   Stacked below the text on small screens; beside it from 64 rem. */
.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.home__art { margin: 0; justify-self: center; width: 100%; max-width: 34rem; }
.home__art img { width: 100%; height: auto; }
@media (min-width: 40rem) {
  .home { gap: var(--s-12); }
}
@media (min-width: 64rem) {
  .home { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding-block-start: var(--s-12); }
  .home__art { max-width: 44rem; justify-self: end; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--c-line); padding-block: var(--s-6) var(--s-8); color: var(--c-muted); }
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-8);
}
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a[aria-current="page"] { color: var(--c-ink); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
