:root {
  color-scheme: light;
  --bg: #e7dcef;
  --ink: #2b2036;
  --muted: #584965;
  --accent: #654184;
  --accent-soft: #d9c4e7;
  --line: #bca9cb;
  --panel: #f0e8f5;
  --peach: #f4c8ae;
  --focus: #713b16;
  --bar-dark: #684284;
  --bar-light: #bca0d5;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #21172d;
  --ink: #f3e6ee;
  --muted: #d3c0dc;
  --accent: #d6b4ef;
  --accent-soft: #3b2949;
  --line: #5d4869;
  --panel: #2f213c;
  --peach: #a86a63;
  --focus: #ffd5a7;
  --bar-dark: #674083;
  --bar-light: #c5a6de;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 'Manrope', sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, .cv-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
.mono, .eyebrow, .site-header nav, .language-switch, .cv-jump, .role-facet h4, .role-facet li, .role-period, .cv-contact { font-family: 'IBM Plex Mono', monospace; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-shell { max-width: 1320px; margin: auto; padding: 0 clamp(18px, 4vw, 52px); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--bg); font: 500 14px 'IBM Plex Mono', monospace; }
.header-controls, .site-header nav { display: flex; align-items: center; gap: 10px; }
.site-header nav { font-size: 14px; }
.site-header nav a { padding: 8px 14px; border-radius: 22px; text-decoration: none; }
.site-header nav a[aria-current], .site-header nav a:hover { background: var(--accent-soft); }
.language-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 24px; }
.language-switch button { min-width: 38px; min-height: 35px; border: 0; border-radius: 20px; background: transparent; color: var(--muted); font-size: 13px; }
.language-switch a { display: grid; place-items: center; min-width: 38px; min-height: 35px; border-radius: 20px; color: var(--muted); font-size: 13px; text-decoration: none; }
.language-switch button[aria-pressed="true"], .language-switch a[aria-current="page"] { background: var(--accent); color: var(--bg); }
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 43px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 22px; background: transparent; color: var(--ink); font-size: 13px; }
.theme-toggle:hover { background: var(--accent-soft); }
[data-theme-icon] { font-size: 20px; line-height: 1; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; transform: translateY(-200%); padding: 10px 16px; border-radius: 18px; background: var(--accent); color: var(--bg); }
.skip-link:focus { transform: none; }
.hero { position: relative; display: flex; align-items: center; min-height: 475px; margin: 18px 0 18px; padding: 24px; overflow: hidden; border-radius: 28px; background: var(--peach) url('./sunflower-field-hytte-v2.png') center right / cover no-repeat; }
.hero-copy { position: relative; z-index: 2; width: min(100%, 405px); padding: clamp(22px, 2.7vw, 32px); border-radius: 22px; background: var(--bg); box-shadow: 0 12px 34px #1e102c36; }
.hero h1 { margin: 0 0 16px; font-size: clamp(2.25rem, 3.4vw, 3.55rem); font-weight: 500; line-height: 1.13; letter-spacing: -.05em; }
.hero h1 > span { display: block; }
.hero h1 > span + span { color: var(--accent); }
.hero h1 [aria-hidden] { font-size: .58em; vertical-align: 12%; }
.sunflower-quote { margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.6; }
.wind-flower { position: absolute; z-index: 1; height: auto; transform-origin: 50% 100%; pointer-events: none; filter: saturate(.82) drop-shadow(0 3px 4px #3e25462a); animation: gentle-wind 7s ease-in-out infinite alternate; }
.wind-flower-one { width: clamp(105px, 13vw, 160px); right: 1%; bottom: -11%; }
.wind-flower-two { width: clamp(70px, 8vw, 105px); right: 30%; bottom: -15%; animation-delay: -3s; animation-duration: 8.5s; }
@keyframes gentle-wind { from { transform: rotate(-2deg) translateX(-2px); } to { transform: rotate(2deg) translateX(2px); } }
.about { display: grid; grid-template-columns: minmax(140px, .5fr) minmax(0, 1.5fr); gap: 24px; align-items: start; padding: 20px 0 26px; border-top: 1px solid var(--line); }
.about h2 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 500; line-height: 1.3; letter-spacing: -.035em; }
.about p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.65; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer p { margin: 0; }
.home-footer { justify-content: flex-end; }
.social-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.social-links a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); text-decoration: none; transition: background .2s ease, transform .2s ease; }
.social-links a:hover { background: var(--accent-soft); transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; }
.cv-top { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; padding: 30px 0 14px; }
.cv-intro { max-width: 850px; }
.cv-intro > p:first-of-type { margin: 0; color: var(--muted); line-height: 1.55; }
.cv-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 12px 0 0; font-size: 13px; }
.cv-contact a { overflow-wrap: anywhere; }
.cv-contact span { color: var(--accent); font-size: 20px; line-height: 1; }
.cv-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-jump { margin-bottom: 16px; }
.cv-jump a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 22px; text-decoration: none; font-size: 13px; }
.cv-jump a:hover { background: var(--accent-soft); }
.cv-section { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.cv-section-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 15px; margin-bottom: 12px; }
.cv-section h2 { margin: 0; font-size: 1.55rem; font-weight: 500; letter-spacing: -.035em; }
.cv-section-heading span { color: var(--muted); font: 12px 'IBM Plex Mono', monospace; }
.timeline { display: grid; gap: 12px; }
.cv-item { --bar-rest: var(--bar-dark); --bar-active: var(--bar-light); position: relative; padding: 3px 0 6px 22px; }
.cv-item:nth-child(even) { --bar-rest: var(--bar-light); --bar-active: var(--bar-dark); }
.cv-item::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; border-radius: 5px; background: var(--bar-rest); transition: background .3s ease, width .3s ease; }
.cv-item:is(:hover, :focus-visible, :focus-within, .is-current)::before { width: 7px; background: var(--bar-active); }
.role-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.cv-item h3 { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.35; }
.cv-item .subtitle { margin: 2px 0 0; color: var(--accent); font-size: .94rem; }
.role-period { margin: 2px 0 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
.role-description { max-width: 900px; margin: 9px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.role-facets { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.role-facet { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 9px; }
.role-facet h4 { margin: 0; color: var(--muted); font-size: 11px; font-weight: 500; }
.role-facet ul { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.role-facet li { padding: 3px 9px; border: 1px solid var(--line); border-radius: 15px; font-size: 11px; line-height: 1.5; }
.tool-catalog { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tool-group { display: grid; grid-template-columns: minmax(175px, .28fr) minmax(0, 1fr); align-items: start; gap: 10px 16px; padding: 10px 14px; }
.tool-group + .tool-group { border-top: 1px solid var(--line); }
.tool-group h3 { margin: 3px 0 0; color: var(--accent); font-size: 13px; line-height: 1.35; }
.tool-group ul { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.tool-group li { padding: 3px 9px; border-radius: 12px; background: var(--accent-soft); font: 12px/1.5 'IBM Plex Mono', monospace; }
.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.skill-card { padding: 10px 14px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--panel); }
.skill-card h3 { margin: 0 0 3px; font-size: 14px; }
.skill-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.role-projects { margin-top: 10px; max-width: 900px; border-radius: 12px; background: var(--panel); }
.role-projects summary { padding: 8px 12px; color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; list-style-position: inside; }
.role-projects summary span { margin-left: 4px; font-weight: 400; }
.role-projects[open] summary { border-bottom: 1px solid var(--line); }
.project-list { display: grid; gap: 0; padding: 2px 14px 9px; }
.project { padding: 9px 0; }
.project + .project { border-top: 1px solid var(--line); }
.project h4 { margin: 0; font-size: .95rem; }
.project p { margin: 3px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.project-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 7px; }
.project-links a { color: var(--accent); font-size: .85rem; font-weight: 700; }
.page-heading { padding: 42px 0; }
.page-heading h1 { margin: 0 0 16px; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 500; }
.eyebrow { color: var(--muted); font: 12px 'IBM Plex Mono', monospace; }
.intro { max-width: 680px; color: var(--muted); }
.button { display: inline-block; padding: 9px 16px; border-radius: 22px; background: var(--accent); color: var(--bg); text-decoration: none; }
.prose { max-width: 780px; padding-bottom: 30px; }
body:has([data-copy-protected]) main { user-select: none; -webkit-user-select: none; }
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; }
  .header-controls { flex-wrap: wrap; justify-content: flex-end; }
  .hero { min-height: 560px; align-items: end; padding: 15px; background-position: 72% center; }
  .wind-flower-one { right: -1%; bottom: -5%; }
  .wind-flower-two { right: 33%; bottom: -9%; }
}
@media (max-width: 540px) {
  .site-shell { padding-inline: 16px; }
  .site-header { gap: 9px; padding: 14px 0; }
  .brand-mark { width: 38px; height: 38px; }
  .header-controls { width: 100%; justify-content: space-between; gap: 4px; }
  .site-header nav { gap: 2px; }
  .site-header nav a { padding: 7px 10px; }
  .theme-toggle { min-height: 39px; padding: 5px 9px; }
  .hero { min-height: 525px; margin-top: 14px; padding: 10px; border-radius: 22px; background-position: 74% center; }
  .hero-copy { width: 100%; padding: 20px; }
  .hero h1 { font-size: clamp(2.05rem, 8vw, 2.8rem); }
  .sunflower-quote { font-size: .95rem; }
  .wind-flower-one { width: 90px; right: -3%; bottom: -8%; }
  .wind-flower-two { width: 67px; right: 35%; bottom: -13%; }
  .about { display: block; padding: 18px 0 22px; }
  .about h2 { margin-bottom: 8px; }
  .cv-top { padding: 22px 0 12px; }
  .tool-group { grid-template-columns: 1fr; gap: 5px; }
  .skill-grid { grid-template-columns: 1fr; }
  .cv-section { padding: 16px 0 20px; }
  .role-heading { display: flex; flex-direction: column; gap: 4px; }
  .role-period { order: -1; }
  .cv-item { padding-left: 16px; }
  footer { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { animation: none !important; transition: none !important; } }
@media print { :root, :root[data-theme="dark"] { --bg: #fff; --ink: #111; --muted: #333; --accent: #47305b; --line: #bbb; --panel: #fff; } .site-header, footer, .skip-link, .wind-flower { display: none !important; } .site-shell { max-width: none; } .hero { min-height: 0; padding: 0; background: none; } .hero-copy { box-shadow: none; } .cv-item { break-inside: avoid; } .role-projects { display: none; } }

