/* lebech.net / adamlebech.dk front page — dark theme in the style of urbana.dk/web */
@font-face { font-family: Inter; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #0A0C0F;
  --band: #101317;
  --surface: #14171C;
  --line: #22272E;
  --line-strong: #3A404A;
  --text: #ECE8E1;
  --text-soft: #C9C6C0;
  --muted: #A3A7AE;
  --meta: #A7CF7A;   /* the small green labels, as on urbana.dk */
  --gold: #C9A35A;   /* the rule on the picture tiles */
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
  --wrap: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--meta); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 16px; }

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

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(10, 12, 15, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong); }
.wordmark { font: 500 17px/1 var(--display); letter-spacing: .32em; text-transform: uppercase; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--text-soft); }
.nav a:hover { color: var(--text); }
.lang { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 15px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color .2s, background .2s; }
.lang:hover { border-color: var(--text-soft); background: var(--surface); }

/* ---- Hero ---- */
.hero { display: flex; align-items: center; gap: 32px; padding: 64px 0 40px; }
.hero-portrait { flex: none; width: 96px; height: 96px; margin: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong), 0 12px 30px rgba(0, 0, 0, .45); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { margin: 0 0 10px; font: 700 clamp(36px, 5.2vw, 52px)/1.05 var(--display); letter-spacing: -.025em; }
.hero p { margin: 0; max-width: 660px; color: var(--muted); font-size: 16px; }
.hero p.bio { color: var(--text); font-size: 18px; margin-bottom: 6px; }
.hero-contact { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; }
.hero-contact svg { color: var(--meta); flex: none; }
.hero-contact a, .footer-contact a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.hero-contact a:hover, .footer-contact a:hover { text-decoration-color: var(--text); }

/* ---- Photos from the gallery ---- */
.photos { padding: 20px 0 20px; scroll-margin-top: 80px; }
.photos-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.photos-head h2 { margin: 0; font: 600 clamp(24px, 3vw, 30px)/1.2 var(--display); letter-spacing: -.01em; }
.photos-all { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; text-decoration: none; color: var(--text-soft); padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; }
.photos-all:hover { color: var(--text); border-color: var(--text-soft); }
.photo-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.photo-strip a { display: block; text-decoration: none; }
.ph { display: block; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-strip a:hover .ph { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong), 0 18px 40px rgba(0, 0, 0, .5); }
.photo-strip a:hover .ph img { transform: scale(1.03); }
.ph-title { display: block; margin-top: 14px; font: 600 17px/1.35 var(--body); }
.ph-sub { display: block; margin-top: 2px; font: 600 11px/1.3 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--meta); }
.photos-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* ---- Sections and tiles ---- */
.group { padding: 36px 0 20px; scroll-margin-top: 80px; }
.group h2 { margin: 0 0 22px; font: 600 clamp(24px, 3vw, 30px)/1.2 var(--display); letter-spacing: -.01em; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.card-link { display: block; text-decoration: none; }
.card-pic { display: block; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-link:hover .card-pic { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong), 0 18px 40px rgba(0, 0, 0, .5); }
.card-link:hover .card-pic img { transform: scale(1.025); }
.card-meta { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; font: 600 11px/1.3 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--meta); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); letter-spacing: .08em; }
.card-title { display: flex; align-items: baseline; gap: 8px; font: 600 18px/1.35 var(--body); }
.card-title svg { flex: none; color: var(--muted); transition: transform .2s, color .2s; position: relative; top: 2px; }
.card-link:hover .card-title svg { transform: translate(2px, -2px); color: var(--text); }
.card-desc { margin: 6px 0 0; color: var(--text-soft); font-size: 15px; line-height: 1.55; }
.card-extra { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.card-extra svg { display: inline; vertical-align: -2px; margin-left: 2px; }
.card-extra:hover { text-decoration-color: var(--text); }

/* ---- Footer ---- */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--band); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: 36px; font-size: 14px; color: var(--muted); }
.site-footer p { margin: 0 0 6px; max-width: 620px; }
.footer-contact { color: var(--text-soft); font-size: 15px; }
.site-footer a { color: var(--text-soft); }

@media (max-width: 960px) {
  .photo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 60px; }
  .wordmark { font-size: 15px; letter-spacing: .26em; }
  .hero { gap: 18px; padding: 36px 0 20px; align-items: flex-start; }
  .hero-portrait { margin-top: 6px; }
  .hero-portrait { width: 76px; height: 76px; }
  .hero p { font-size: 16px; }
  .cards { grid-template-columns: 1fr; gap: 32px; }
  .photo-strip { grid-template-columns: 1fr; gap: 24px; }
  .hero p.bio { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
