/* ============================================================
   Inspire Me — inspireme.dk
   Plain CSS, no build step. Light/dark via prefers-color-scheme
   with a manual override on <html data-theme>.
   ============================================================ */

:root {
  --ink:        #0f1a21;
  --ink-soft:   #4a5a63;
  --ink-faint:  #7c8b93;
  --bg:         #fbf9f5;
  --bg-raised:  #ffffff;
  --bg-sunk:    #f2eee6;
  --line:       #e2ddd2;

  --brand:      #094660;
  --brand-deep: #06303f;
  --accent:     #0f8f96;
  --accent-hot: #d9822b;

  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(9, 70, 96, .06), 0 12px 32px -12px rgba(9, 70, 96, .18);
  --shadow-lg:  0 2px 4px rgba(9, 70, 96, .08), 0 32px 64px -24px rgba(9, 70, 96, .28);

  --font:       "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --wrap:       1140px;
  --step:       clamp(4rem, 9vw, 7.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:        #e8eef1;
    --ink-soft:   #a2b2bb;
    --ink-faint:  #78878f;
    --bg:         #0a1218;
    --bg-raised:  #101c24;
    --bg-sunk:    #070e13;
    --line:       #1e2f3a;

    --brand:      #4ec3c7;
    --brand-deep: #7ad6d9;
    --accent:     #4ec3c7;
    --accent-hot: #f0a45c;

    --shadow:     0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -12px rgba(0, 0, 0, .7);
    --shadow-lg:  0 2px 4px rgba(0, 0, 0, .5), 0 32px 64px -24px rgba(0, 0, 0, .8);
  }
}

:root[data-theme="dark"] {
  --ink:        #e8eef1;
  --ink-soft:   #a2b2bb;
  --ink-faint:  #78878f;
  --bg:         #0a1218;
  --bg-raised:  #101c24;
  --bg-sunk:    #070e13;
  --line:       #1e2f3a;

  --brand:      #4ec3c7;
  --brand-deep: #7ad6d9;
  --accent:     #4ec3c7;
  --accent-hot: #f0a45c;

  --shadow:     0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px -12px rgba(0, 0, 0, .7);
  --shadow-lg:  0 2px 4px rgba(0, 0, 0, .5), 0 32px 64px -24px rgba(0, 0, 0, .8);
}

/* ── base ─────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display); line-height: 1.12; margin: 0; font-weight: 700;
  overflow-wrap: break-word; /* long Danish names must never push the page sideways */
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}

/* ── header ───────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }

/* The logo is a full lockup - wordmark and tagline - so it stands in for
   both the old mark and the "Inspire Me" text beside it. Height drives the
   size; width follows the 1117:205 aspect on its own. */
.brand-logo { height: 34px; width: auto; flex: none; }

/* It ships as solid near-black artwork, which disappears on the dark
   background. Knock it to flat white rather than recolouring the file. */
:root[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo { filter: brightness(0) invert(1); }
}

.nav { display: flex; gap: 1.6rem; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-size: .93rem; font-weight: 500;
  position: relative; padding: .25rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--accent); transition: right .25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }

/* No hamburger for four links — the row just gets tighter, then scrolls. */
@media (max-width: 760px) {
  .header-inner { gap: .75rem; }
  .nav { gap: 1rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: .88rem; white-space: nowrap; }
}
/* A 5.4:1 lockup can't drop half of itself the way the old mark + text
   could, so it just gets shorter as the header row tightens. */
@media (max-width: 760px) { .brand-logo { height: 30px; } }
@media (max-width: 430px) {
  .brand-logo { height: 24px; }
  .nav { gap: .9rem; }
}

.theme-toggle {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--bg-raised);
  color: var(--ink-soft); cursor: pointer; transition: color .2s, border-color .2s, transform .2s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(-15deg); }
/* linejoin matters for the moon: its two cusps are sharp joins, and the
   default miter spikes them at this stroke width. */
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}

/* ── buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; font-size: .95rem; font-weight: 600;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--bg); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
:root[data-theme="dark"] .btn-primary { color: #06222c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #06222c; } }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: .6rem 1.15rem; font-size: .88rem; }

/* ── hero ─────────────────────────────────────────────────── */

.hero { position: relative; padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }

.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 620px; pointer-events: none;
  background:
    radial-gradient(46% 55% at 22% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(40% 50% at 78% 25%, color-mix(in srgb, var(--accent-hot) 16%, transparent), transparent 72%);
  filter: blur(10px);
}

.hero-inner { position: relative; }

.hero h1 {
  font-size: clamp(2.3rem, 7.5vw, 5rem);
  letter-spacing: -.03em;
  max-width: 15ch;
  margin-bottom: .5rem;
}

.tagline {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.65rem); color: var(--accent); margin-bottom: 1.5rem;
}
.tagline .dot { color: var(--ink-faint); margin: 0 .6rem; font-style: normal; }

.lede { max-width: 60ch; font-size: clamp(1.02rem, 1.7vw, 1.18rem); color: var(--ink-soft); }
.lede strong { color: var(--ink); }

.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

.stats {
  list-style: none; margin: 3.5rem 0 0; padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.stats li { display: flex; flex-direction: column; gap: .25rem; }
.stat-n { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); letter-spacing: -.01em; }
.stat-l { font-size: .84rem; color: var(--ink-faint); line-height: 1.4; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ── sections ─────────────────────────────────────────────── */

.section { padding: var(--step) 0; }

.section-title { font-size: clamp(1.85rem, 4vw, 2.75rem); letter-spacing: -.02em; margin-bottom: .75rem; }
.section-lede { max-width: 58ch; color: var(--ink-soft); margin-bottom: 3rem; }
.section-title + .cards-3, .section-title + .grid { margin-top: 3rem; }

/* ── cards ────────────────────────────────────────────────── */

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.card h3 { font-size: 1.3rem; margin-bottom: .5rem; letter-spacing: -.01em; }
.card p { color: var(--ink-soft); font-size: .95rem; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 940px) { .cards-3 { grid-template-columns: 1fr; } }

.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.15rem 0 0; padding: 0; }
.tags li {
  font-size: .74rem; font-weight: 500; letter-spacing: .02em;
  padding: .28rem .65rem; border-radius: 999px;
  background: var(--bg-sunk); color: var(--ink-faint); border: 1px solid var(--line);
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }

/* Uneven card copy shouldn't leave the tag rows floating at different heights. */
.card.project { display: flex; flex-direction: column; }
.card.project .tags { margin-top: auto; padding-top: 1.15rem; }

.project-kind {
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .85rem;
}
.card-link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem;
  font-size: .9rem; font-weight: 600; text-decoration: none;
}
.card-link:hover { text-decoration: underline; }
.card-link span { transition: transform .2s ease; }
.card-link:hover span { transform: translateX(3px); }

/* A project anyone can use right now gets a real button, not a footnote link. */
.card-cta { margin-top: 1.15rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .85rem; }
.card-cta .btn span { transition: transform .2s ease; }
.card-cta .btn:hover span { transform: translateX(3px); }
.card-cta-note { font-size: .8rem; color: var(--ink-faint); }

.card.project-live {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 40%),
    var(--bg-raised);
}

/* ── featured: Iacta ──────────────────────────────────────── */

.featured { background: var(--bg-sunk); }

.featured-card {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  box-shadow: var(--shadow);
}
@media (max-width: 900px) { .featured-card { grid-template-columns: 1fr; } }

.featured-card h2 { font-size: clamp(2.2rem, 5vw, 3.25rem); letter-spacing: -.03em; margin-bottom: .4rem; }
.featured-quote { font-family: var(--font-display); font-style: italic; color: var(--ink-faint); margin-bottom: 1.25rem; }
.featured-card > .featured-body > p { color: var(--ink-soft); }
.featured-card strong { color: var(--ink); }

.feature-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .6rem; }
.feature-list li { position: relative; padding-left: 1.75rem; color: var(--ink-soft); font-size: .95rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 3px; background: var(--accent); transform: rotate(45deg);
}

.featured-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.note { margin-top: 1rem; font-size: .85rem; color: var(--ink-faint); }

.featured-visual { display: grid; justify-items: center; gap: 1.25rem; }
.featured-visual img {
  width: min(260px, 70%); border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.dice-row { display: flex; gap: .85rem; }
.die {
  width: 52px; height: 52px; border-radius: 12px; cursor: pointer;
  background: var(--bg-sunk); border: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  padding: 9px; gap: 2px;
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.4), border-color .2s;
}
.die:hover { border-color: var(--accent); }
.die.rolling { transform: rotate(360deg) scale(1.12); }
.die span { display: grid; place-items: center; }
.die i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.dice-hint { font-size: .78rem; color: var(--ink-faint); letter-spacing: .06em; text-transform: uppercase; }

/* ── making ───────────────────────────────────────────────── */

.making-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .making-inner { grid-template-columns: 1fr; } }

.making-text h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); letter-spacing: -.02em; margin-bottom: 1.15rem; }
.making-text p { color: var(--ink-soft); max-width: 52ch; }

.making-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.making-list li {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem;
  transition: border-color .25s ease, transform .25s ease;
}
.making-list li:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateX(4px); }
.mk {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--accent); flex: none; padding-top: .15rem;
}
.making-list strong { display: block; font-size: 1.02rem; margin-bottom: .2rem; }
.making-list p { font-size: .9rem; color: var(--ink-soft); }

/* ── about ────────────────────────────────────────────────── */

.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: 2.5rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-text p { color: var(--ink-soft); max-width: 58ch; }
.about-text strong { color: var(--ink); }
.timeline {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
}
.timeline h3 { font-size: 1.1rem; margin-bottom: 1.25rem; }
.timeline ol { list-style: none; margin: 0; padding: 0 0 0 1.25rem; position: relative; display: grid; gap: 1.15rem; }
.timeline ol::before { content: ""; position: absolute; left: 3px; top: .4rem; bottom: .4rem; width: 1.5px; background: var(--line); }
.timeline li { position: relative; display: grid; gap: .1rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.25rem; top: .45rem;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  outline: 3px solid var(--bg-raised);
}
.t-year { font-size: .76rem; font-weight: 600; letter-spacing: .06em; color: var(--accent); }
.t-role { font-size: .92rem; font-weight: 500; line-height: 1.4; }
.t-org { font-size: .84rem; color: var(--ink-faint); }

/* ── contact ──────────────────────────────────────────────── */

.contact { background: var(--bg-sunk); }
.contact-inner { max-width: 46rem; text-align: center; margin-inline: auto; }
.contact-inner h2 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; margin-bottom: 1rem; }
.contact-inner p { color: var(--ink-soft); margin-bottom: 2rem; }

/* ── footer ───────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line); padding: 3rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.footer-brand { display: flex; align-items: center; gap: .55rem; margin: 0; }
.footer-brand .brand-logo { height: 30px; }
.footer-meta { margin: 0; font-size: .88rem; color: var(--ink-faint); margin-right: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { font-size: .88rem; text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { width: 100%; margin: 0; font-size: .8rem; color: var(--ink-faint); }

/* ── reveal on scroll ─────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .making-list li:hover, .theme-toggle:hover { transform: none; }
  .die.rolling { transition: none; transform: none; }
}
