/* Dubbelplus AB – dubbelplus.se
   Layout: one reading column (~70ch) inside a wider frame; the "2+" mark is the only ornament.
   Color tokens first; every color below comes from them. */
@import url("fonts.css");

:root {
  --paper: #f4f6f5;
  --surface: #ffffff;
  --ink: #15202a;
  --muted: #55626d;
  --line: #d7dfe2;
  --plus: #1e56c9;          /* the accent – the "+" */
  --plus-soft: #e3ebfb;
  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --s-1: 0.9rem; --s0: 1.125rem; --s1: 1.375rem; --s2: 1.9rem; --s3: clamp(2.4rem, 6vw, 3.6rem);
  --frame: 1040px;
  --read: 70ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f161c; --surface: #16212a; --ink: #e6ecf0; --muted: #9aa8b3; --line: #29363f;
    --plus: #7ea4ff; --plus-soft: #1b2a45;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f161c; --surface: #16212a; --ink: #e6ecf0; --muted: #9aa8b3; --line: #29363f;
  --plus: #7ea4ff; --plus-soft: #1b2a45;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--s0); line-height: 1.6;
  padding-inline: 20px;
}
a { color: var(--plus); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--plus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: var(--s3); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--s2); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--s1); font-weight: 600; }
p { margin: 0; }
.frame { max-width: var(--frame); margin-inline: auto; }
.read { max-width: var(--read); }
.muted { color: var(--muted); }
.label { font-family: var(--display); font-size: var(--s-1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--plus); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.mark { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; letter-spacing: -0.04em; }
.mark span { color: var(--plus); }
.brand-name { font-family: var(--display); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--s-1); }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--s-1); }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--plus); }

/* Sections */
main { display: flex; flex-direction: column; gap: 72px; padding-block: 28px 80px; }
section { display: flex; flex-direction: column; gap: 22px; }
.hero { gap: 20px; padding-block: 24px 8px; }
.hero .lede { font-size: var(--s1); line-height: 1.45; max-width: 52ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.button {
  display: inline-block; background: var(--plus); color: var(--paper); text-decoration: none;
  font-family: var(--display); font-weight: 600; padding: 12px 20px; border-radius: 6px;
}
.button:hover { filter: brightness(1.08); }

/* Proof row – real figures from real assignments */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.proof div { display: flex; flex-direction: column; gap: 4px; }
.proof b { font-family: var(--display); font-size: var(--s2); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.proof span { font-size: var(--s-1); color: var(--muted); line-height: 1.45; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.service p { color: var(--muted); }
.tech { font-size: var(--s-1); color: var(--muted); }

/* Assignments */
.work { display: flex; flex-direction: column; }
.job { display: grid; grid-template-columns: 7.5rem 1fr; gap: 6px 22px; padding-block: 16px; border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
.job time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: var(--s-1); padding-top: 3px; }
.job h3 { font-size: 1.15rem; }
.job p { color: var(--muted); }
@media (max-width: 560px) { .job { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px 44px; }
.about ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* Articles */
.articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.article-card { border-top: 2px solid var(--plus); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.article-card a { text-decoration: none; }
.article-card a:hover h3 { text-decoration: underline; }
.article-card h3 { color: var(--ink); font-size: 1.15rem; }

/* Contact */
.contact { background: var(--plus-soft); border-radius: 10px; padding: 28px clamp(20px, 4vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.contact .mail { font-family: var(--display); font-size: var(--s2); font-weight: 700; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--line); padding-block: 22px 40px; font-size: var(--s-1); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Article pages */
.post { display: flex; flex-direction: column; gap: 18px; padding-block: 24px 64px; }
.post p { max-width: var(--read); }
.post blockquote { margin: 0; border-left: 3px solid var(--plus); padding-left: 16px; color: var(--muted); max-width: var(--read); }

@media (prefers-reduced-motion: no-preference) { a, .button { transition: color .15s, filter .15s; } }
