/* ginnerskov.org — shared styles */

:root {
  --bg: #f7f4ef;
  --surface: #fffdf9;
  --ink: #1d1b19;
  --ink-soft: #57524b;
  --ink-faint: #8a837a;
  --line: #e4ddd2;
  /* one retro-monitor colour per person: cyan (Josef), amber (Mette) */
  --cyan: #0369a1;  --cyan-soft: #dcefff;  --cyan-glow: #22b8f0;
  --amber: #b45309; --amber-soft: #fdebd3; --amber-glow: #ff9a1f;
  --accent: var(--ink-soft);    /* readable, for text and links */
  --accent-soft: var(--line);
  --phosphor: var(--ink-faint); /* bright, decorative only */
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --surface: #1f1d1b;
    --ink: #eeeae4;
    --ink-soft: #b9b2a8;
    --ink-faint: #857e75;
    --line: #34302c;
    --cyan: #7dd3fc;  --cyan-soft: #10293a;  --cyan-glow: #38c8ff;
    --amber: #fdba74; --amber-soft: #3a2410; --amber-glow: #ffa133;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.p-josef { --accent: var(--cyan);  --accent-soft: var(--cyan-soft);  --phosphor: var(--cyan-glow); }
.p-mette { --accent: var(--amber); --accent-soft: var(--amber-soft); --phosphor: var(--amber-glow); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Landing ---------- */

.landing {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 40px;
}

.landing-head { text-align: center; margin-bottom: 56px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
}

/* terminal prompt: "> ginnerskov.org█" */
.prompt {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-soft);
}
.prompt::before { content: "> "; }
.prompt::after {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -0.2em;
  background: var(--cyan-glow);
  animation: blink 2.2s steps(1) infinite;
}
/* cursor blinks, alternating between the two colours */
@keyframes blink {
  0%   { background: var(--cyan-glow); opacity: 1; }
  25%  { opacity: 0; }
  50%  { background: var(--amber-glow); opacity: 1; }
  75%  { opacity: 0; }
}

.landing-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.landing-head p.lede {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink-soft);
  margin: 16px auto 0;
  max-width: 34ch;
}

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}

.person-card {
  /* rows shared across both cards, so name/field/affiliation line up */
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.person-card:hover,
.person-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--phosphor) 70%, transparent);
  border-color: var(--phosphor);
  outline: none;
}

.person-card .photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--line);
}

.person-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, center 22%);
  filter: saturate(.9);
  transition: transform .5s ease, filter .5s ease;
}

.person-card:hover .photo img { transform: scale(1.03); filter: saturate(1); }

.person-card .body {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  gap: 0;
  padding: 22px 24px 24px;
  border-top: 4px solid var(--phosphor);
}

.person-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.person-card .role { margin: 0; color: var(--ink-soft); font-size: 15px; }
.person-card .affil { margin: 4px 0 0; color: var(--ink-faint); font-size: 14px; }

.person-card .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: end;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.person-card .go span { transition: transform .25s ease; }
.person-card:hover .go span { transform: translateX(4px); }

.site-foot {
  text-align: center;
  color: var(--ink-faint);
  font-size: 13px;
  margin-top: 56px;
}

/* ---------- Profile pages ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.brand {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

.topbar nav { display: flex; gap: 22px; font-size: 14px; }
.topbar nav a { color: var(--ink-soft); text-decoration: none; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--ink); }
.topbar nav a[aria-current="page"] { font-weight: 600; }

.profile {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 80px;
}

.profile aside { position: sticky; top: 92px; align-self: start; }

.profile aside .portrait {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--line);
}

.profile aside .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center 22%); }

.profile aside h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 22px 0 8px;
}

.profile aside .title { margin: 0; color: var(--ink-soft); font-size: 15px; }
.profile aside .affil { margin: 4px 0 0; color: var(--ink-faint); font-size: 14px; }

.links { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: 14px; }
.links a { overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); text-decoration: none; }
.links a:hover { color: var(--accent); }
.links svg { width: 16px; height: 16px; flex: none; }

main section + section { margin-top: 56px; }

main h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

main h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 32px 0 6px;
}

.bio p { font-family: var(--serif); font-size: 19px; line-height: 1.65; margin: 0 0 16px; max-width: 64ch; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.tags li {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
}

.news { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.news li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.news time { color: var(--ink-faint); font-size: 14px; font-variant-numeric: tabular-nums; }

.pubs { list-style: none; padding: 0; margin: 0; }
.pubs li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.pubs li:first-child { border-top: 1px solid var(--line); }
.pubs .yr { color: var(--ink-faint); font-size: 14px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.pubs .t { font-family: var(--serif); font-size: 18px; line-height: 1.4; margin: 0; }
.pubs .t a { color: var(--ink); text-decoration: none; }
.pubs .t a:hover { color: var(--accent); text-decoration: underline; }
.pubs .m { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.pubs .m em { font-style: italic; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  margin-left: 6px;
  vertical-align: 2px;
}

.page-foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--ink-faint);
}
.page-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-foot a { color: var(--ink-soft); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; }
  .profile aside > * { min-width: 0; }
  .profile aside { position: static; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 20px; align-items: start; }
  .profile aside .portrait { grid-row: span 4; aspect-ratio: 4 / 5; }
  .profile aside h1 { margin-top: 0; font-size: 26px; }
  .links { margin-top: 14px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .people { grid-template-columns: 1fr; gap: 20px 0; max-width: 420px; }
  .landing { padding-top: 48px; }
  .landing-head { margin-bottom: 36px; }
  .topbar nav { gap: 16px; }
  .bio p { font-size: 18px; }
  .pubs li { grid-template-columns: 1fr; gap: 2px; }
  .news li { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
