/* Anna Dahlberg AB – färger och typsnitt enligt designsystemet */
:root {
  --moss-950: #1a2a1f;
  --moss-900: #233529;
  --moss-800: #2d4435;
  --moss-700: #3a5743;
  --moss-300: #a3b8a9;
  --wood-300: #efe1c9;
  --wood-200: #f5ecdb;
  --wood-100: #faf4e8;

  --paper:    #faf6ee;
  --bone:     #f3ede0;
  --stone:    #d4cdbe;
  --graphite: #2b2a25;
  --ink:      #1c1b17;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;

  --gutter: 32px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--moss-700);
  outline-offset: 3px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 96;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.1;
  margin-bottom: 24px;
}
h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid rgba(43, 42, 37, 0.1);
}
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { width: 26px; height: 26px; flex: none; }

.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.nav a {
  text-decoration: none;
  color: var(--graphite);
}
.nav a:hover {
  color: var(--moss-700);
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Hero */
.hero-image {
  width: 100%;
  height: clamp(240px, 42vw, 520px);
  object-fit: cover;
  object-position: center 40%;
}
.hero-text {
  padding-top: 72px;
  padding-bottom: 112px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: end;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 350;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-lede {
  font-size: 18px;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--moss-800);
  color: var(--wood-100);
  text-decoration: none;
  transition: background 200ms ease;
}
.btn:hover { background: var(--moss-950); }

/* Om mig */
.about {
  padding: 96px 0;
  border-top: 1px solid rgba(43, 42, 37, 0.1);
}
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}
.about-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--moss-700);
}
.about-text { max-width: 34em; }
.about-text p + p { margin-top: 1em; }
.about-figure {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.cv-title {
  margin-top: 48px;
  margin-bottom: 12px;
}
.cv { list-style: none; border-top: 1px solid var(--stone); }
.cv li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--stone);
  font-size: 16px;
}
.cv-years {
  color: var(--moss-700);
  font-variant-numeric: tabular-nums;
}
.cv-role { color: var(--ink); }
.cv-org { color: var(--graphite); opacity: 0.75; }
.cv-org::before { content: '· '; }
.quote {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--stone);
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: 'opsz' 96;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--moss-800);
}

/* Tjänster */
.services {
  background: var(--bone);
  padding: 96px 0;
}
.services-head {
  margin-bottom: 56px;
}
.services-head h2 { margin-bottom: 16px; }
.services-head p {
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.45;
  color: var(--moss-700);
  max-width: 28em;
  text-wrap: balance;
}
.service-list { border-bottom: 1px solid var(--stone); }
.service {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--stone);
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 48;
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.25;
  margin: 0;
}
.service p { max-width: 32em; }

/* Kontakt */
.contact {
  background: var(--moss-900);
  color: var(--wood-200);
  padding: 88px 0;
}
.contact h2 { color: var(--wood-100); margin-bottom: 16px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.contact-grid > div p { max-width: 26em; color: var(--moss-300); }
.contact-list .contact-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: 'opsz' 96;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.3;
  margin-bottom: 12px;
}
.contact-list {
  font-size: 18px;
  line-height: 2;
}
.contact-list a {
  color: var(--wood-100);
  text-decoration: underline;
  text-decoration-color: rgba(239, 225, 201, 0.4);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.contact-list a:hover { text-decoration-color: var(--wood-100); }

/* Footer */
.site-footer {
  background: var(--moss-950);
  color: var(--moss-300);
  font-size: 14px;
  padding: 20px 0;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* Mindre skärmar */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 420px; }
  .about-figure { position: static; }
  .hero-text { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; padding-bottom: 80px; }
  .service { grid-template-columns: 1fr; gap: 8px; }
  .contact-list .contact-mail { word-break: break-word; }
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; --header-h: 60px; }
  body { font-size: 16px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav a[href="#om"] { display: none; }
  .hero-text { padding-top: 36px; padding-bottom: 64px; }
  .hero-lede { font-size: 17px; }
  .about, .services, .contact { padding: 64px 0; }
  .cv li { grid-template-columns: 1fr; gap: 0; }
  .cv-years { font-size: 14px; }
}

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

.cv + .quote, .cv-more + .quote { border-top: 0; padding-top: 0; margin-top: 48px; }

.about-text .cv-more {
  margin-top: 16px;
  font-size: 15px;
}
.cv-more a {
  color: var(--moss-700);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.cv-more a::after { content: ' \2192'; }
.cv-more a:hover { color: var(--ink); }

.contact-linkedin { color: var(--moss-300); }
.contact-linkedin span { margin: 0 4px; }
