/* ============================================================
   alksalt.com — 2026 redesign
   Calm Scandinavian editorial · quiet "instruction manual" craft
   System: warm paper, ink, one green accent, hairlines,
   serif display + grotesk body + mono labels.
   ============================================================ */

:root {
  --paper: #FAF8F3;
  --ink: #1D221E;
  --muted: #565D57;
  --faint: #8B918B;
  --hair: rgba(29, 34, 30, 0.14);
  --hair-strong: rgba(29, 34, 30, 0.32);

  --accent: #0C8A4D;
  --accent-ink: color-mix(in oklab, var(--accent), var(--ink) 32%);
  --accent-soft: color-mix(in oklab, var(--accent) 9%, var(--paper));

  --font-head: 'Newsreader', Georgia, serif;
  --font-body: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
  --head-weight: 500;
  --head-tracking: -0.015em;

  --sect-pad: clamp(72px, 10vw, 120px);
  --row-pad: 22px;
}




* { box-sizing: border-box; }

html { 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-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: color-mix(in oklab, var(--accent) 24%, var(--paper)); }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4.5vw, 48px);
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--accent-ink); text-decoration-color: color-mix(in oklab, var(--accent) 45%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent-ink); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--hair);
}

.brand {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.brand b { color: var(--accent-ink); font-weight: 600; }

.topbar-right { display: flex; align-items: center; gap: 20px; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  color: var(--muted);
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.top-cv {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ---------- hero — editorial masthead ---------- */

.hero { padding-top: clamp(36px, 5vw, 64px); }

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding-bottom: clamp(28px, 4vw, 48px);
}

.hero-top h1 {
  font-size: clamp(56px, 9.2vw, 132px);
  line-height: 0.94;
}
.hero-top h1 .indent {
  display: block;
  padding-left: clamp(36px, 7vw, 110px);
}
.hero-top h1 .dot { color: var(--accent); }

.mast-strip {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 40px;
  border-block: 1px solid var(--hair-strong);
  padding-block: 13px;
}
.mast-strip .mono { color: var(--ink); font-size: 13.5px; }
.mast-strip .mast-loc { color: var(--muted); flex-shrink: 0; }

.hero-low {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px);
}

.statement {
  font-family: var(--font-head);
  font-size: clamp(25px, 3vw, 37px);
  line-height: 1.3;
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
}
.statement em {
  font-style: italic;
  color: var(--accent-ink);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 8px;
  transition: background 140ms ease;
}
.btn:hover { background: color-mix(in oklab, var(--accent-ink), black 14%); }
.btn .arrow { font-family: var(--font-mono); font-weight: 400; }

.hero-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
}
.hero-contacts a { color: var(--ink); }

.hero-figure { width: clamp(170px, 21vw, 280px); margin: 0; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 4 / 5; display: block; object-fit: cover; border-radius: 14px; }

/* ---------- sections ---------- */

.section {
  border-top: 1px solid var(--hair);
  padding-block: var(--sect-pad);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 32px clamp(32px, 5vw, 72px);
  align-items: start;
}

.section-label { position: sticky; top: 28px; }
.section-label .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-ink);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.section-label .name {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 18px;
}

.section-intro {
  font-size: 18px;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 40px;
}

/* clinical — compact list */

.clin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.clin-list li {
  padding-block: 14px;
  border-top: 1px solid var(--hair);
  font-size: 17px;
  font-weight: 500;
}

/* clinical rows + definition rows */

.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: minmax(180px, 270px) minmax(0, 1fr);
  gap: 8px 32px;
  padding-block: var(--row-pad);
  border-top: 1px solid var(--hair);
}
.row:first-of-type { border-top-color: var(--hair-strong); }
.row dt, .row .row-t { font-weight: 600; font-size: 16.5px; }
.row dd, .row .row-d { margin: 0; color: var(--muted); font-size: 16px; }

.clin-role {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin-bottom: 28px;
}
.clin-role .role-name { font-size: 19px; font-weight: 600; }

.clin-extra { margin-top: 28px; font-size: 16px; color: var(--muted); max-width: 46em; }
.clin-langs { display: block; margin-top: 18px; }

/* projects */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 44px);
}

.proj {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proj .tag { color: var(--accent-ink); font-size: 12px; }
.proj h3 { font-size: 23px; }
.proj .desc { font-size: 16px; color: var(--ink); }
.proj .for { font-size: 15px; color: var(--muted); }
.proj .meta {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.proj .meta a { font-family: var(--font-mono); }

.proj-note {
  margin-top: 36px;
  font-size: 15px;
  color: var(--muted);
  padding: 14px 18px;
  background: var(--accent-soft);
  border-radius: 8px;
  max-width: 46em;
}

.also { margin-top: 56px; }
.also-title { margin-bottom: 8px; }
.also .row { grid-template-columns: minmax(120px, 180px) minmax(0, 1fr); }
.also .row-t a { color: var(--ink); }

/* timeline */

.tl { display: flex; flex-direction: column; }
.tl .row { grid-template-columns: 120px minmax(0, 1fr); }
.tl .row-t { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; color: var(--accent-ink); padding-top: 3px; }
.tl .row-d { color: var(--ink); }
.tl .row-d span { color: var(--muted); }

/* contact */

.contact h2 { font-size: clamp(34px, 4.6vw, 54px); }
.contact-links {
  display: flex;
  flex-direction: column;
  margin-top: 36px;
}
.contact-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
  border-top: 1px solid var(--hair);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  text-decoration: none;
}
.contact-links a:first-of-type { border-top-color: var(--hair-strong); }
.contact-links a .k { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-links a:hover { color: var(--accent-ink); }

.contact-cvs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hair-strong);
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease;
}
.btn-ghost:hover { border-color: var(--accent-ink); background: var(--accent-soft); }

/* footer */

footer {
  border-top: 1px solid var(--hair);
  padding-block: 28px 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent-ink); }

/* ---------- reveal (JS + motion-ok only) ---------- */

@media screen and (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms ease, transform 600ms ease;
  }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-low { grid-template-columns: 1fr; gap: 32px; }
  .section { grid-template-columns: 1fr; gap: 20px; }
  .section-label { position: static; display: flex; gap: 14px; align-items: baseline; }
  .proj-grid { grid-template-columns: 1fr; gap: 28px; }
  .clin-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero-top { grid-template-columns: 1fr; }
  .hero-figure { width: 200px; }
  .row { grid-template-columns: 1fr; gap: 2px; }
  .tl .row { grid-template-columns: 92px 1fr; }
  .topbar { flex-wrap: wrap; }
  .contact-links a { flex-direction: column; align-items: flex-start; gap: 4px; }
}
