:root {
  color-scheme: light;
  --bg: #f8f7f3;
  --surface: #fffefa;
  --ink: #293c32;
  --muted: #6c756c;
  --line: #e0e3d8;
  --soft: #eeeee6;
  --brand-dot: #d5e4b4;
  --accent: #46624d;
  --card-hover: #8f9d88;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171e19;
  --surface: #202920;
  --ink: #e7ecdf;
  --muted: #afb9ab;
  --line: #354034;
  --soft: #283126;
  --brand-dot: #839d61;
  --accent: #bed4a8;
  --card-hover: #90a580;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
svg, img { display: block; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1184px, calc(100% - 80px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10; top: 12px; left: 12px; background: var(--surface); padding: 12px 20px; border: 1px solid var(--line); border-radius: 8px; }
.header { height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 29px; font-weight: 700; letter-spacing: -.065em; line-height: 1; }
.brand-mark { width: 36px; height: 36px; }
.brand-dot { color: var(--accent); }
.header-actions { display: flex; gap: 26px; align-items: center; }
.header-note { color: var(--muted); font-size: 12px; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.theme-toggle:hover { background: var(--soft); }
.theme-toggle svg { width: 19px; height: 19px; }
.sun, [data-theme="dark"] .moon { display: none; }
[data-theme="dark"] .sun { display: block; }
.intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; padding: 73px 0 66px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 600; letter-spacing: .13em; margin-bottom: 22px; color: var(--muted); }
.little-line { width: 22px; height: 1px; background: var(--muted); }
h1 { font-size: clamp(42px, 4.7vw, 63px); line-height: 1.1; font-weight: 550; letter-spacing: -.055em; }
h1 > span { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -.06em; }
.intro-aside { justify-self: end; padding: 0 9px 5px 0; }
.intro-aside p { font-size: 14px; line-height: 1.85; color: var(--muted); }
.intro-link { display: inline-flex; align-items: center; gap: 29px; font-size: 12px; min-height: 44px; margin-top: 14px; }
.intro-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.intro-link span { font-size: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.section-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.section-heading h2 span { font-size: 10px; line-height: 21px; min-width: 27px; text-align: center; color: var(--muted); background: var(--soft); border-radius: 5px; font-variant-numeric: tabular-nums; }
.section-note { color: var(--muted); font-size: 11px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project { position: relative; display: flex; min-width: 0; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .2s, transform .2s; }
.project:hover { border-color: var(--card-hover); transform: translateY(-4px); }
.project-art { position: relative; height: 244px; overflow: hidden; flex-shrink: 0; pointer-events: none; }
.art-kort { background: #2e513f; color: #d8e7bf; }
.art-cunder { background: #ecd9e0; color: #6c4258; }
.art-ekmod { background: #ece5cc; color: #625b3f; }
.art-label, .art-number { position: absolute; z-index: 1; top: 20px; font-size: 8px; font-weight: 600; letter-spacing: .1em; }
.art-label { left: 22px; }
.art-number { right: 22px; font-variant-numeric: tabular-nums; opacity: .7; }
.project-art > svg { width: 100%; height: 220px; position: absolute; top: 0; }
.art-caption { position: absolute; bottom: 17px; inset-inline: 12px; text-align: center; font-size: 10px; letter-spacing: -.01em; }
.project-body { padding: 25px 24px 0; display: flex; flex-direction: column; flex: 1; }
.project-heading { display: flex; align-items: center; gap: 12px; }
.project-heading img { flex-shrink: 0; border-radius: 10px; }
.project-heading .cunder-mark { object-fit: cover; }
.project-heading h3 { font-size: 24px; font-weight: 650; letter-spacing: -.04em; line-height: 1.15; }
.project-category { display: block; font-size: 8px; letter-spacing: .08em; margin-top: 5px; color: var(--muted); }
.project-index { color: var(--muted); margin-left: auto; align-self: start; font-size: 18px; line-height: 1.15; }
.project-description { font-size: 13px; color: var(--muted); line-height: 1.85; margin-top: 22px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 24px; }
.project-tags span { font-size: 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 3px 7px; }
.project-footer { display: flex; flex-direction: column; gap: 14px; margin-top: auto; padding: 18px 0 20px; border-top: 1px solid var(--line); }
.project-primary > span:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 600; }
.project-primary > span:first-child > span { font-size: 17px; transition: transform .2s; }
.project:hover .project-primary > span:first-child > span { transform: translate(2px, -2px); }
.project-domain { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.project-primary::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.project-primary:focus-visible { outline: none; }
.project-primary:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -4px; }
.project-bot { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.project-bot:hover { border-color: var(--card-hover); }
.project-bot > svg { width: 18px; height: 18px; flex-shrink: 0; }
.bot-label, .bot-username { display: block; }
.bot-label { font-size: 11px; font-weight: 600; }
.bot-username { font-size: 10px; margin-top: 2px; color: var(--muted); }
.bot-arrow { font-size: 15px; margin-left: auto; }
.project-hint { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.project-hint > svg { width: 18px; height: 18px; flex-shrink: 0; }

.site-note { display: flex; align-items: center; gap: 14px; margin: 32px 0 55px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.note-mark { font-size: 28px; line-height: 1; color: var(--accent); }
.site-note p { font-size: 11px; }
.site-note p > span { color: var(--muted); }
.site-note a { display: inline-flex; align-items: center; gap: 18px; flex-shrink: 0; font-size: 11px; margin-left: auto; min-height: 44px; }
.site-note a:hover, .footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 27px; font-size: 10px; color: var(--muted); }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.back-top { display: none !important; }
@media (min-width: 1500px) { .intro { padding-top: 88px; padding-bottom: 79px; } }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 48px); }
  .project-grid { gap: 14px; }
  .project-body { padding: 22px 18px 0; }
  .project-art { height: 220px; }
  .project-art > svg { height: 200px; }
  .art-label { left: 18px; font-size: 7px; }
  .art-number { right: 18px; }
  .art-caption { font-size: 9px; bottom: 14px; }
  .site-note p > span { display: block; margin-top: 3px; }
}
@media (max-width: 760px) {
  .wrap { width: min(500px, calc(100% - 40px)); }
  .header { height: 84px; }
  .brand { font-size: 26px; }
  .brand-mark { width: 32px; height: 32px; }
  .header-actions { gap: 10px; }
  .header-note { display: none; }
  .intro { display: block; padding: 45px 0 36px; }
  .eyebrow { margin-bottom: 20px; font-size: 9px; }
  h1 { font-size: clamp(38px, 8.6vw, 52px); }
  .intro-aside { justify-self: stretch; margin-top: 23px; padding: 0; }
  .intro-aside p { font-size: 13px; line-height: 1.85; max-width: 340px; }
  .desktop-break { display: none; }
  .intro-link { margin-top: 8px; }
  .section-heading { margin-bottom: 16px; }
  .section-note { font-size: 10px; }
  .project-grid { grid-template-columns: 1fr; gap: 22px; }
  .project-art { height: 220px; }
  .project-art > svg { width: 360px; max-width: 100%; height: 192px; left: 50%; transform: translateX(-50%); top: 5px; }
  .art-label { left: 22px; font-size: 8px; }
  .art-number { right: 22px; }
  .art-caption { bottom: 16px; font-size: 10px; }
  .project-body { padding: 24px 24px 0; }
  .project-description { margin-top: 18px; }
  .project-tags { margin-top: 18px; margin-bottom: 23px; }
  .project-footer { padding-block: 18px; }
  .site-note { flex-wrap: wrap; align-items: flex-start; margin: 25px 0 20px; padding: 23px 0 18px; gap: 11px; }
  .site-note p { flex: 1; font-size: 11px; }
  .site-note a { margin-left: 37px; margin-top: -3px; }
  .footer { flex-wrap: wrap; gap: 0 20px; padding-bottom: 20px; }
  .footer > span:nth-child(2) { order: 3; width: 100%; font-size: 9px; }
  .back-top { display: inline-flex !important; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
