:root {
  --ink: #16181d;
  --muted: #5b6270;
  --link: #ff3863;
  --bg: #fff;
  --rule: #e8eaee;
  --notice-bg: #f2f2f2;
  --notice-border: #e2e2e2;
  --notice-muted: #5b6270;
  --webpal: #0C8EB3;
  --brand: #ff3863;
  --overlay: rgba(255,255,255,.92);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 5vh 16px 10vh;
}
.brand {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.brand a { color: inherit; border: 0; }
h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -.02em;
}
h2 {
  font-size: 1.15rem;
  letter-spacing: -.01em;
  margin: 2.5rem 0 .75rem;
}
h3 {
  font-size: 1rem;
  margin: 1.5rem 0 .25rem;
}
p { margin: 0 0 1.25rem; }
ul { padding-left: 1.2rem; margin: 0 0 1.25rem; }
li { margin-bottom: .35rem; }
a { color: var(--link); text-decoration: none; border-bottom: 1px solid rgba(255,56,99,.35); }
a:hover { border-bottom-color: currentColor; }
nav.links {
  margin: 2rem 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.lead { font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: .25rem; }
footer {
  color: var(--muted);
  font-size: 15px;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
}
footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
footer a { color: var(--muted); }
.footer-name { color: var(--ink); font-weight: 600; }
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #ececee; --muted: #9aa1ae; --link: #ff6b8a; --bg: #101216; --rule: #262a31; --notice-bg: #1a1d23; --notice-border: #2c3038; --notice-muted: #9aa1ae; --overlay: rgba(16,18,22,.92); }
}

/* Interim page */
.rule {
  border: 0;
  height: 2px;
  background: var(--brand);
  margin: 0 0 1.75rem;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 2.5rem;
  align-items: start;
}
.content > :first-child { margin-top: 0; }
.sidebar {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.1rem;
  font-size: 14px;
  line-height: 1.9;
}
.card .avatar { display: block; margin-bottom: .75rem; }
.card-name { display: block; font-size: 1rem; margin-bottom: .35rem; line-height: 1.4; }
.card a { color: var(--muted); }
.notice {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-size: 14px;
  line-height: 1.5;
}
.notice-label {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--notice-muted);
  margin-bottom: .2rem;
}
.notice strong { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: .4rem; }
.notice-detail { display: block; color: var(--notice-muted); }
@media (max-width: 600px) {
  .layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .sidebar { position: static; order: -1; }
  .card { display: flex; align-items: flex-start; gap: 1rem; }
  .card .avatar { margin-bottom: 0; }
  .card-text { flex: 1; min-width: 0; }
}
.filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.25rem;
  font-size: 14px;
}
.filter-label { color: var(--muted); margin-right: .25rem; }
.chip {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .25rem .75rem;
  cursor: pointer;
}
.chip:hover { border-color: var(--muted); }
.chip.is-active {
  background: var(--link);
  border-color: var(--link);
  color: #fff;
}
.job {
  border-top: 1px solid var(--rule);
  padding: 1rem 0;
}
.job:last-child { border-bottom: 1px solid var(--rule); }
.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  cursor: pointer;
}
.job-company { font-weight: 600; }
.job-role { display: block; color: var(--muted); font-size: 15px; }
.job-dates {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.job-body { margin-top: .75rem; }
.job-about { color: var(--muted); font-size: 15px; margin-bottom: .75rem; }
.job-body ul { margin-bottom: .75rem; }
.job-tags { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .1rem .5rem;
}
.job.is-collapsed .job-body { display: none; }
.job.is-collapsed .job-head { opacity: .55; }
@media (max-width: 480px) {
  .job-head { flex-direction: column; gap: .15rem; }
}
.job-more { color: var(--muted); font-size: 15px; margin-top: 1rem; }
body.wide {
  background-image:
    linear-gradient(var(--overlay), var(--overlay)),
    url("/assets/nolsson-bg.webp");
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
main.wide {
  max-width: 1040px;
  background: var(--bg);
  border-radius: 10px;
  margin: 5vh auto 10vh;
  width: calc(100% - 32px);
  padding: 2rem 2.5rem 2.5rem;
}
.panel { margin-bottom: 1.5rem; }
@media (max-width: 600px) {
  body.wide { background-image: none; }
  main.wide {
    width: auto;
    margin: 0;
    padding: 1.5rem 20px 2rem;
    border-radius: 0;
  }
}

/* Eyebrow popover */
.pop { position: relative; display: inline-block; }
.pop-trigger {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: help;
  border-bottom: 1px dotted var(--muted);
}
.pop-box {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  z-index: 10;
  min-width: 240px;
  padding: .75rem .9rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s;
}
.pop-box strong { display: block; margin-bottom: .15rem; }
.pop:hover .pop-box,
.pop.is-open .pop-box,
.pop-trigger:focus-visible + .pop-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Restored: subline + button */
.subline {
  color: var(--muted);
  font-size: 15px;
  margin: -.5rem 0 1rem;
}
.button {
  display: block;
  text-align: center;
  background: var(--brand);
  color: #fff;
  border: 0;
  border-bottom: 3px solid #cc2c4f;
  border-radius: 10px;
  padding: .85rem 1rem;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
  box-shadow: 0 2px 6px rgba(255,56,99,.35);
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}
.button:hover {
  background: #ff4f76;
  border-bottom-color: #cc2c4f;
  box-shadow: 0 4px 10px rgba(255,56,99,.4);
  transform: translateY(-1px);
}
.button:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
  box-shadow: 0 1px 3px rgba(255,56,99,.35);
}
.card-foot {
  margin-top: .75rem;
  padding-top: .6rem;
  border-top: 1px solid var(--rule);
}
.card-foot a { color: var(--link); }

/* Mobile: sticky "Boka möte" bar at the bottom of the screen */
@media (max-width: 600px) {
  .cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: var(--bg);
    border-top: 1px solid var(--rule);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  main.wide .button:hover { transform: none; }
  main.wide { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  main.wide footer { padding-bottom: 1rem; }
}

@media (max-width: 600px) {
  main.wide .brand,
  main.wide h1,
  main.wide .subline { text-align: center; }
  main.wide .pop-box { left: auto; right: 0; max-width: calc(100vw - 40px); }
}
