@charset "UTF-8";

:root {
  /* Sandgrå bas och ockra i mindre detaljer, inspirerat av husets färger. */
  --paper: #f6f3ec;
  --surface: #e9e4d9;
  --sandstorm: #aaa294;
  --white: #fff;
  --ink: #333a32;
  --text: #4f534a;
  --muted: #626258;
  --line: #d5cec0;
  --ochre: #c29b40;
  --ochre-dark: #806014;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure { margin-top: 0; }
::selection { background: #e5d4a3; color: var(--ink); }
:focus-visible { outline: 2px solid var(--ochre-dark); outline-offset: 5px; border-radius: 2px; }
[hidden] { display: none !important; }
.container { width: min(1080px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; padding: 10px 18px; background: var(--ink); color: white; z-index: 100; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-top: 4px solid var(--sandstorm); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { font-size: 20px; font-weight: 600; letter-spacing: -.5px; text-decoration: none; line-height: 1.3; }
nav { display: flex; align-items: center; gap: 30px; }
nav a { font-size: 13px; text-decoration: none; position: relative; padding-block: 13px; color: var(--text); }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; background: var(--ochre); transform: scaleX(0); transform-origin: left; transition: transform .15s; }
nav a:hover::after, nav a[aria-current]::after { transform: scaleX(1); }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; padding-block: 78px 85px; }
.location { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
h1 { font: 400 clamp(46px, 5vw, 70px)/1.1 var(--serif); letter-spacing: -2.2px; margin-bottom: 25px; }
.hero-intro { font-size: 15px; line-height: 1.85; max-width: 445px; color: var(--text); margin-bottom: 27px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 11px 22px; background: var(--ochre); border: 1px solid transparent; border-radius: 5px; color: #2c2c20; font-size: 13px; font-weight: 500; text-decoration: none; transition: background .15s; }
.button:hover { background: #b89135; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; text-decoration: none; border-bottom: 1px solid #aaa294; padding-bottom: 1px; }
.text-link:hover { border-color: var(--ink); }
.hero-figure { position: relative; margin: 0 8px 0 0; border-radius: 24px; background: var(--white); isolation: isolate; }
.hero-figure::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: inherit; z-index: -1; }
.hero-figure img { width: 100%; height: auto; border-radius: inherit; background: white; border: 1px solid #e6e0d5; }

.section { padding-block: 64px; border-top: 1px solid var(--line); }
.section-grid { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 45px; }
.section-label h2 { margin-bottom: 0; font: 400 29px/1.3 var(--serif); letter-spacing: -.5px; }
.section-label { padding-top: 1px; }
.about-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 25px; }
.about-copy p, .section-description, .contact-copy { font-size: 14px; line-height: 1.9; color: var(--text); margin-bottom: 0; }
.expertise-list { border-top: 1px solid var(--line); }
.expertise-item { border-bottom: 1px solid var(--line); padding-block: 22px; }
.expertise-item h3 { font-size: 17px; font-weight: 500; margin-bottom: 5px; }
.expertise-item p { font-size: 14px; color: var(--text); margin-bottom: 0; }
.background-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.background-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 13px; padding-block: 16px; }
.background-content { padding-top: 12px; padding-bottom: 25px; }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline-item { padding: 23px 0; display: grid; grid-template-columns: 175px 1fr; gap: 24px; border-bottom: 1px solid var(--line); }
.timeline-date { font-size: 12px; color: var(--muted); padding-top: 2px; }
.current-label { display: block; font-size: 11px; color: var(--ochre-dark); margin-top: 3px; }
.timeline-role h3 { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 5px; }
.timeline-role p { font-size: 13px; margin-bottom: 0; color: var(--text); }
.timeline-role p span { color: var(--muted); }
.timeline-marker { display: none; }
.education-block { margin-top: 30px; padding: 23px 26px; background: var(--surface); border-left: 3px solid var(--ochre); border-radius: 0 6px 6px 0; }
.small-label { color: var(--muted); font-size: 12px; }
.education-block h3 { font-size: 16px; font-weight: 600; margin: 9px 0 3px; }
.education-block p { font-size: 13px; color: var(--text); margin-bottom: 13px; }
.small-link { font-size: 12px; line-height: 1.7; }
.commitments { margin-top: 30px; }
.commitments > h3 { font-size: 16px; font-weight: 600; margin-bottom: 19px; }
.commitments-content { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.commitments-content h4 { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.commitments-content p { font-size: 13px; color: var(--text); margin-bottom: 0; }

.projects-section { background: #f0ece3; }
.section-description { max-width: 650px; margin-bottom: 30px; }
.project-list { border-top: 1px solid var(--line); }
.project { position: relative; display: grid; grid-template-columns: 185px minmax(0, 1fr); column-gap: 30px; padding-block: 28px; border-bottom: 1px solid var(--line); min-width: 0; }
.project-topline { grid-column: 1; grid-row: 1; }
.project-category { display: block; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
.project-title-row { grid-column: 1; grid-row: 2; display: flex; align-items: start; gap: 8px; margin-bottom: 16px; }
.project-title-row h3 { font-size: 21px; line-height: 1.35; letter-spacing: -.6px; font-weight: 500; margin-bottom: 0; overflow-wrap: anywhere; }
.project-title-row h3 a { text-decoration: none; }
.project-title-row h3 a:hover { text-decoration: underline; }
.project-open { font-size: 18px; text-decoration: none; line-height: 1.5; flex-shrink: 0; }
.project-domain { grid-column: 1; grid-row: 3; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.project > p { grid-column: 2; grid-row: 1 / 3; font-size: 14px; line-height: 1.9; color: var(--text); margin-bottom: 15px; }
.tags { grid-column: 2; grid-row: 3; list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-content: start; gap: 6px 15px; margin: 0 0 15px; }
.tags li { font-size: 11px; line-height: 1.6; color: var(--muted); }
.project-details { grid-column: 2; grid-row: 4; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
.project-details summary { display: inline-flex; gap: 14px; align-items: center; font-size: 12px; padding-block: 5px; }
summary span[aria-hidden] { transition: transform .15s; font-size: 18px; line-height: 1; }
details[open] > summary span[aria-hidden] { transform: rotate(45deg); }
.project-details p { font-size: 13px; line-height: 1.85; color: var(--text); margin: 12px 0; }
.project-details .small-link { margin-bottom: 5px; }

.contact-copy { max-width: 560px; margin-bottom: 22px; }
.contact-details { margin: 0; }
.contact-details > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; margin-bottom: 18px; }
.contact-details dt { font-size: 13px; color: var(--muted); padding-top: 2px; }
.contact-details dd { margin: 0; font-size: 16px; }
.contact-details a { overflow-wrap: anywhere; }
.contact-note { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.business-note { border-top: 1px solid var(--line); padding-top: 20px; margin: 28px 0 0; font-size: 12px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-block: 24px; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-main p { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.footer-main > div { display: flex; align-items: center; gap: 25px; }

@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .hero { gap: 35px; padding-block: 62px 70px; }
  h1 { font-size: clamp(44px, 5.2vw, 64px); }
  .section-grid { grid-template-columns: 150px minmax(0, 1fr); gap: 30px; }
  .section-label h2 { font-size: 26px; }
  .about-copy { grid-template-columns: 1fr; gap: 17px; }
  .project { grid-template-columns: 155px minmax(0, 1fr); column-gap: 24px; }
  .project-title-row h3 { font-size: 19px; }
  .timeline-item { grid-template-columns: 150px 1fr; gap: 20px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 48px); }
  .header-inner { min-height: 78px; gap: 20px; }
  .wordmark { font-size: 18px; }
  nav { gap: 18px; }
  nav a { font-size: 12px; }
  .hero { grid-template-columns: 1.2fr 1fr; gap: 28px; }
  h1 { font-size: clamp(38px, 6vw, 48px); letter-spacing: -1.5px; }
  .hero-intro { font-size: 14px; }
  .hero-figure { margin-right: 8px; border-radius: 18px; }
  .hero-figure::before { inset: 10px -10px -10px 10px; }
  .section { padding-block: 48px; }
  .section-grid { grid-template-columns: 1fr; gap: 26px; }
  .section-label h2 { font-size: 30px; }
  .about-copy { grid-template-columns: 1fr 1fr; gap: 25px; }
  .project { grid-template-columns: 180px minmax(0, 1fr); }
  .project-title-row h3 { font-size: 21px; }
}
@media (max-width: 560px) {
  html { scroll-padding-top: 125px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 100px; flex-wrap: wrap; gap: 4px; padding-top: 15px; padding-bottom: 7px; }
  .wordmark { font-size: 19px; }
  nav { width: 100%; justify-content: space-between; gap: 12px; }
  nav a { font-size: 12px; padding-block: 8px; }
  nav a::after { bottom: 2px; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-block: 36px 50px; }
  .location { font-size: 13px; margin-bottom: 12px; }
  h1 { font-size: clamp(37px, 10.2vw, 56px); letter-spacing: -1px; margin-bottom: 22px; }
  .hero-intro { font-size: 14px; max-width: 100%; margin-bottom: 23px; }
  .hero-actions { gap: 25px; }
  .hero-figure { width: min(100% - 10px, 380px); margin: 0 10px 10px 0; border-radius: 20px; }
  .hero-figure::before { inset: 10px -10px -10px 10px; }
  .section { padding-block: 39px; }
  .section-grid { gap: 23px; }
  .section-label h2 { font-size: 29px; }
  .about-copy { grid-template-columns: 1fr; gap: 17px; }
  .expertise-item { padding-block: 14px; }
  .timeline-item { grid-template-columns: 1fr; gap: 7px; padding-block: 20px; }
  .timeline-date { display: flex; align-items: center; gap: 12px; padding: 0; }
  .current-label { margin-top: 0; }
  .timeline-role h3 { font-size: 16px; }
  .education-block { padding: 20px; }
  .education-block h3 { font-size: 15px; }
  .commitments-content { grid-template-columns: 1fr; gap: 17px; }
  .project { display: flex; flex-direction: column; padding-block: 25px; }
  .project-topline { order: 0; }
  .project-title-row { order: 1; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .project-title-row h3 { font-size: 25px; }
  .project > p { order: 2; margin-bottom: 13px; }
  .tags { order: 3; margin-bottom: 13px; }
  .project-details { order: 4; }
  .project-domain { order: 5; margin-top: 14px; font-size: 11px; }
  .contact-details > div { grid-template-columns: 1fr; gap: 3px; margin-bottom: 22px; }
  .contact-details dd { font-size: 17px; }
  .contact-note { font-size: 12px; }
  .footer-main { flex-wrap: wrap; gap: 16px; }
  .footer-main > div { width: 100%; justify-content: space-between; gap: 15px; }
  .small-link { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  @page { margin: 16mm; }
  body { background: white; color: #111; font-size: 10pt; }
  .container { width: 100%; }
  .site-header, .skip-link, .hero-actions, .hero-figure, .project-open, .project-details, .background-details, .footer-main > div { display: none !important; }
  .hero { display: block; padding: 0 0 20px; }
  .location { font-size: 10pt; margin-bottom: 8px; }
  h1 { font-size: 34pt; letter-spacing: -1pt; margin-bottom: 12px; }
  h1 br { display: none; }
  .hero-intro { max-width: 100%; font-size: 10pt; margin-bottom: 0; }
  .section { padding-block: 20px; background: white; }
  .section-grid { grid-template-columns: 105px minmax(0, 1fr); gap: 20px; }
  .section-label h2 { font-size: 16pt; }
  .about-copy { display: block; margin-bottom: 14px; }
  .about-copy p { font-size: 9pt; margin-bottom: 8px; }
  .expertise-item { padding-block: 8px; break-inside: avoid; }
  .expertise-item h3, .expertise-item p { font-size: 9pt; }
  .timeline-item { grid-template-columns: 135px 1fr; padding-block: 11px; break-inside: avoid; }
  .timeline-date { font-size: 8pt; display: block; }
  .timeline-role h3 { font-size: 10pt; }
  .timeline-role p { font-size: 9pt; }
  .education-block { margin-top: 16px; padding: 14px; break-inside: avoid; }
  .education-block h3 { font-size: 10pt; }
  .small-label, .education-block p, .small-link { font-size: 8pt; }
  .commitments { margin-top: 18px; }
  .commitments > h3 { font-size: 10pt; }
  .commitments-content { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
  .commitments-content h4, .commitments-content p { font-size: 8pt; }
  .section-description { font-size: 9pt; margin-bottom: 15px; }
  .project { display: grid; grid-template-columns: 130px minmax(0, 1fr); column-gap: 20px; padding-block: 16px; break-inside: avoid; }
  .project-title-row { margin-bottom: 6px; }
  .project-title-row h3 { font-size: 12pt; }
  .project > p { font-size: 9pt; margin-bottom: 8px; }
  .project-category, .project-domain, .tags li { font-size: 8pt; }
  .tags { margin-bottom: 0; }
  .contact-copy { font-size: 9pt; margin-bottom: 13px; }
  .contact-details > div { display: grid; grid-template-columns: 75px 1fr; gap: 15px; margin-bottom: 8px; }
  .contact-details dt, .contact-details dd { font-size: 9pt; }
  .contact-note { font-size: 8pt; }
  .business-note { font-size: 8pt; margin-top: 14px; padding-top: 12px; }
  .site-footer { padding-block: 16px; }
  .footer-main p { font-size: 8pt; }
}
