/* shared tokens + components for madsvendelbo.com */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --page: #f4f4f4;
  --card: #ffffff;
  --ink: #242424;
  --muted: #8e8e93;
  --chip: #ffffff;
  --radius: 16px;
  --page-w: 1240px;
}

body {
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  padding: 24px 24px 60px;
}

/* ---------- profile chip + dropdown (injected by header.js) ---------- */
.site-head {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  max-width: var(--page-w);
  margin: 0 auto 36px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  height: 56px;
  padding: 0 12px 0 6px;
  border-radius: var(--radius);
  text-align: left;
  transition: background 0.2s ease;
}

.profile:hover { background: rgba(0, 0, 0, 0.05); }

.profile .who { display: flex; flex-direction: column; line-height: 1.25; }
.profile .who strong { font-size: 16px; font-weight: 600; color: var(--ink); }
.profile .who small { font-size: 13px; color: var(--muted); font-weight: 400; }

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e4e4e7;
  color: #6e6e73;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 232px;
  background: #f7f7f6;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.04);
  padding: 8px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.menu.open { opacity: 1; transform: none; pointer-events: auto; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.menu-item:hover { background: rgba(0,0,0,0.05); }
.menu-item svg { width: 18px; height: 18px; color: #48484a; flex-shrink: 0; }
.menu-item kbd {
  margin-left: auto;
  font-family: inherit;
  font-size: 13px;
  color: var(--muted);
}

.menu-sep { height: 1px; background: #e4e4e7; margin: 8px 4px; }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 5px -4px rgba(19,19,22,0.7), 0 0 0 1px rgba(34,42,53,0.08);
  transition: transform 0.25s ease;
}

.card:hover { transform: translateY(-3px); }

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.logo-chip {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: var(--chip);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.card-head span { font-size: 17px; font-weight: 600; }

.card h2 {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.card p.sub { color: var(--muted); font-size: 15px; margin-top: 10px; line-height: 1.5; }

/* media placeholder */
.media {
  border-radius: 18px;
  background: repeating-linear-gradient(45deg, #ececee 0 12px, #e4e4e7 12px 24px);
  border: 2px dashed #d4d4d8;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  min-height: 180px;
}

.media.tall { min-height: 320px; }

a.card-link { text-decoration: none; color: inherit; display: block; }

/* ---------- footer ---------- */
footer {
  max-width: var(--page-w);
  margin: 48px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}

footer .links { display: flex; gap: 0; }

footer .links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0 14px;
  border-left: 1px solid #e5e5e7;
}

footer .links a:first-child { border-left: none; }
footer .links a:hover { color: var(--ink); }

.script-city,
#ft-temp,
#ft-clock {
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: #292929;
  letter-spacing: 0.03em;
}
