:root {
  color-scheme: light;
  --paper: #f3f1e9;
  --surface: #faf8f1;
  --ink: #262d26;
  --muted: #61665d;
  --line: #d3d5c8;
  --accent: #4b6535;
  --highlight: #e3edb8;
  --focus: #8b4f1d;
  --sans: 'DM Sans', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #1b201b;
  --surface: #232a23;
  --ink: #eff0e4;
  --muted: #b6beae;
  --line: #424b3f;
  --accent: #bdcf93;
  --highlight: #39472c;
  --focus: #e7b37c;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--highlight); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 112px, 1248px); margin-inline: auto; }
.eyebrow, .mono { font: 400 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: var(--muted); }
.skip-link { position: fixed; z-index: 50; left: 20px; top: 12px; padding: 12px 18px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 32px; }
.brand { font-size: 30px; font-weight: 700; letter-spacing: -1.8px; line-height: 1; }
.brand span { color: var(--accent); }
.header-actions, .site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { font-size: 13px; padding: 12px 0; }
.site-header nav a:hover { color: var(--accent); }
.header-contact span { margin-left: 7px; }
.theme-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.theme-toggle:hover { background: var(--highlight); }
.theme-toggle svg { width: 20px; height: 20px; }
.sun-icon, [data-theme='dark'] .moon-icon { display: none; }
[data-theme='dark'] .sun-icon { display: block; }
.hero { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; padding: 66px 0 74px; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 10px; }
.small-star { color: var(--accent); font: 25px/1 var(--sans); }
.hero h1 { font-size: clamp(64px, 6.9vw, 98px); font-weight: 500; letter-spacing: -.065em; line-height: 1.02; margin: 29px 0 27px; }
.hero em, .about-heading em { font: italic 1.12em/.8 var(--serif); color: var(--accent); letter-spacing: -.035em; }
.hero-description { color: var(--muted); font-size: 16px; line-height: 1.7; }
.text-link { display: inline-flex; gap: 24px; align-items: center; min-height: 44px; font-size: 14px; border-bottom: 1px solid currentColor; }
.text-link span { transition: transform 180ms ease; }
.text-link:hover { color: var(--accent); }
.text-link:hover span { transform: translate(2px, -2px); }
.hero-link { margin-top: 27px; }
.project-index { align-self: center; padding-top: 6px; }
.index-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.project-index ol { list-style: none; padding: 0; margin: 0; }
.project-index a { display: grid; grid-template-columns: 22px 1fr auto 12px; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: padding 180ms ease, color 180ms ease; }
.project-index a:hover { color: var(--accent); padding-inline: 5px; }
.index-number { color: var(--muted); font: 10px var(--mono); }
.project-index strong { font-size: 15px; letter-spacing: -.03em; font-weight: 500; }
.index-topic { color: var(--muted); font-size: 11px; }
.project-index a > span:last-child { color: var(--accent); }
.index-footnote { color: var(--muted); font-size: 11px; margin-top: 17px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; border-top: 1px solid var(--ink); padding-top: 21px; margin-bottom: 44px; }
.section-heading h2 { font-size: 29px; font-weight: 500; letter-spacing: -.06em; }
.heading-dot { color: var(--accent); }
.project-entry { scroll-margin-top: 24px; }
.featured-project { padding-bottom: 64px; }
.feature-heading { display: grid; grid-template-columns: 1.05fr 1fr; align-items: end; gap: 70px; margin-bottom: 29px; }
.project-kicker, .card-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); }
.project-kicker { justify-content: start; gap: 25px; }
.status { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; line-height: 1.5; }
.status-dot { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
.feature-name { font-size: clamp(64px, 6vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -.075em; margin-top: 17px; }
.product-dot { color: #d14971; }
.project-subtitle { margin-top: 15px; font-size: 21px; font-family: var(--serif); }
.feature-description > p { color: var(--muted); font-size: 16px; max-width: 480px; }
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 21px; }
.button-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 36px; min-height: 46px; padding: 10px 17px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 14px; border-radius: 3px; transition: background 180ms ease, color 180ms ease; }
.button-link:hover { background: var(--highlight); color: var(--ink); }
.feature-visual { padding: 18px 28px 15px; border-radius: 8px; color: #d6d9de; background: #22262c; }
.visual-topline { display: flex; justify-content: space-between; gap: 20px; font: 10px/1.5 var(--mono); letter-spacing: .035em; margin-bottom: 15px; color: #c4cbd5; }
.preview-link { display: block; position: relative; border-radius: 4px; }
.preview-link picture { display: block; }
.preview-link img { border-radius: inherit; }
.expand-mark { position: absolute; bottom: 12px; right: 12px; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #f3f1e9; color: #262d26; font-size: 23px; box-shadow: 0 1px 8px #0003; transition: transform 180ms ease; }
.preview-link:hover .expand-mark { transform: scale(1.1); }
.card-visual > .preview-link:focus-visible { outline-offset: -5px; }
.feature-visual figcaption { display: flex; justify-content: space-between; gap: 24px; font-size: 11px; line-height: 1.5; padding-top: 13px; }
.caption-action { color: #c4cbd5; }
.origin-note { display: grid; grid-template-columns: 1fr 2.05fr; gap: 70px; border-bottom: 1px solid var(--line); padding: 27px 0 31px; }
.origin-note p { max-width: 680px; color: var(--muted); font-size: 14px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; row-gap: 60px; }
.project-card { min-width: 0; }
.card-topline { border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 20px; flex-wrap: wrap; gap: 8px 20px; }
.card-topline .mono { font-size: 10px; }
.card-visual { background: var(--surface); border-radius: 5px; overflow: hidden; }
.card-visual > .preview-link, .domio-diagram, .girlie-diagram { height: 360px; }
.card-visual > .preview-link { display: flex; align-items: center; padding: 16px; }
.card-visual > .preview-link picture { width: 100%; }
.card-visual > .preview-link img { max-height: 328px; object-fit: contain; }
.card-visual figcaption { padding: 9px 16px 10px; font: 10px/1.5 var(--mono); color: var(--muted); letter-spacing: .02em; border-top: 1px solid #0001; }
.jedzomko-visual { background: #e5e6d6; }
.jedzomko-visual figcaption { color: #4d5545; }
.doomsday-visual { background: #171720; }
.doomsday-visual figcaption { color: #bec0d0; }
.card-body { padding-top: 24px; }
.card-body h3, .personal-card h3 { font-size: 39px; font-weight: 500; line-height: 1.12; letter-spacing: -.06em; }
.card-body .long-name { font-size: clamp(27px, 3vw, 38px); }
.card-purpose { font: 400 23px/1.3 var(--serif); margin: 8px 0 15px; }
.card-body > p:not(.card-purpose):not(.action-note), .personal-card > p:not(.card-purpose):not(.build-note) { color: var(--muted); font-size: 15px; max-width: 520px; }
.card-body .text-link { margin-top: 16px; }
.action-note { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 10px; }
.domio-visual { background: #154b40; color: #eff9ea; }
.domio-visual figcaption { color: #c4e0ce; border-color: #ffffff1a; }
.domio-diagram { padding: 25px 27px 20px; }
.diagram-wordmark { font-size: 30px; line-height: 1; letter-spacing: -.06em; font-weight: 600; }
.diagram-wordmark > span { color: #c6d892; }
.diagram-label { color: #c4e0ce; font-size: 11px; margin: 13px 0 16px; }
.stock-flow { list-style: none; padding: 0; margin: 0; }
.stock-flow li { display: grid; grid-template-columns: 20px 1fr; gap: 2px 10px; padding: 11px 0; border-top: 1px solid #ffffff24; }
.flow-number { grid-row: 1/3; font: 10px/1.8 var(--mono); color: #c6d892; }
.stock-flow strong { font-weight: 500; font-size: 14px; }
.stock-flow li > span:last-child { font-size: 11px; color: #c4e0ce; }
.girlie-visual { background: #eadee4; color: #503544; }
.girlie-visual figcaption { color: #725365; }
.girlie-diagram { position: relative; padding: 25px 27px 20px; overflow: hidden; }
.girlie-diagram .diagram-wordmark { font: 400 34px/1 var(--serif); letter-spacing: -.025em; }
.girlie-diagram .diagram-wordmark span { color: inherit; }
.girlie-features { list-style: none; margin: 31px 0 0; padding: 0; position: relative; z-index: 1; max-width: 67%; }
.girlie-features li { display: flex; flex-direction: column; gap: 1px; margin-bottom: 14px; }
.girlie-features strong { font-size: 14px; font-weight: 500; }
.girlie-features li span { font-size: 11px; color: #725365; }
.cycle-mark { position: absolute; width: 175px; height: 175px; border-radius: 50%; border: 1px dashed #b387a2; right: -21px; top: 76px; }
.cycle-mark span { position: absolute; display: block; border-radius: 50%; width: 58px; height: 58px; border: 1px solid #b387a2; background: #eadee4; }
.cycle-mark span:nth-child(1) { top: -27px; left: 58px; background: #8d6078; }
.cycle-mark span:nth-child(2) { top: 59px; left: -28px; }
.cycle-mark span:nth-child(3) { bottom: -27px; left: 58px; background: #d1b4c4; }
.cycle-mark span:nth-child(4) { top: 59px; right: -28px; }
.personal-section { padding: 75px 0 72px; }
.personal-section .section-heading { margin-bottom: 30px; }
.section-heading > p { font-size: 14px; color: var(--muted); }
.personal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.personal-card { background: var(--surface); border: 1px solid var(--line); padding: 29px 30px 25px; border-radius: 5px; min-width: 0; }
.personal-card .card-topline { margin-bottom: 28px; }
.sous-pipeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 29px 0 0; border-block: 1px solid var(--line); }
.sous-pipeline li { display: flex; flex-direction: column; padding: 14px 9px; font-size: 11px; border-right: 1px solid var(--line); }
.sous-pipeline li:first-child { padding-left: 0; }
.sous-pipeline li:last-child { border-right: 0; }
.sous-pipeline span { font: 10px/1.8 var(--mono); color: var(--accent); }
.finance-map { margin-top: 29px; border-top: 1px solid var(--line); padding-top: 14px; }
.finance-map ul { display: flex; justify-content: space-between; gap: 12px; list-style: none; margin: 0; padding: 0; font-size: 11px; }
.finance-map-result { display: flex; flex-direction: column; align-items: center; font-size: 11px; padding: 6px 0 8px; border-bottom: 1px solid var(--line); }
.finance-map-result > span { color: var(--accent); font-size: 16px; }
.finance-map-result strong { font-weight: 500; }
.build-note { display: flex; gap: 10px; font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 17px; }
.note-symbol { color: var(--accent); font-size: 16px; }
.about-section { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; padding: 57px 0 67px; border-top: 1px solid var(--ink); }
.about-heading h2 { font-size: clamp(44px, 4.8vw, 65px); font-weight: 400; line-height: 1.1; letter-spacing: -.055em; margin-top: 18px; }
.about-star { display: inline-block; color: var(--accent); font-size: 57px; line-height: 1; margin-top: 31px; }
.about-copy > p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.about-copy > .about-lead { color: var(--ink); }
.about-lead strong { font-weight: 600; }
.contact-link { display: inline-flex; align-items: center; gap: 30px; min-height: 48px; border-bottom: 1px solid var(--ink); font-size: clamp(19px, 2.1vw, 26px); letter-spacing: -.035em; margin-top: 9px; }
.contact-link:hover { color: var(--accent); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px 35px; border-top: 1px solid var(--line); }
.site-footer .brand { font-size: 24px; }
.site-footer > span { font-size: 11px; color: var(--muted); }
.back-to-top { display: flex; align-items: center; gap: 14px; font-size: 12px; min-height: 44px; }
.back-to-top:hover { color: var(--accent); }
.preview-dialog { width: min(1280px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 18px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; }
.preview-dialog::backdrop { background: #0c100de0; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.dialog-heading h2 { font-size: 14px; font-weight: 500; }
.dialog-close { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 7px 13px; background: transparent; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; }
.dialog-close:hover { background: var(--highlight); }
.dialog-close > span:last-child { font-size: 24px; line-height: 1; }
.dialog-image { width: auto; max-width: 100%; max-height: calc(100dvh - 142px); object-fit: contain; margin: auto; }
html:has(.preview-dialog[open]) { overflow: hidden; }
@media (min-width: 1440px) { .hero { padding-block: 80px; } }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero { grid-template-columns: 1.3fr 1fr; gap: 35px; padding-block: 52px 60px; }
  .hero h1 { font-size: clamp(54px, 7.2vw, 78px); }
  .hero-copy > .eyebrow { font-size: 10px; }
  .index-topic { display: none; }
  .project-index a { grid-template-columns: 20px 1fr 12px; }
  .feature-heading, .about-section { gap: 35px; }
  .project-grid { column-gap: 28px; }
  .card-visual > .preview-link, .domio-diagram, .girlie-diagram { height: 304px; }
  .card-visual > .preview-link img { max-height: 272px; }
  .personal-card { padding: 25px 22px; }
  .personal-card h3 { font-size: 35px; }
  .card-purpose { font-size: 21px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 81px; gap: 20px; }
  .brand { font-size: 27px; }
  .header-actions, .site-header nav { gap: 17px; }
  .site-header nav a { font-size: 12px; }
  .header-contact { display: none; }
  .theme-toggle { width: 42px; height: 42px; }
  .hero { grid-template-columns: 1fr; gap: 39px; padding-block: 35px 46px; }
  .hero h1 { font-size: clamp(53px, 11.8vw, 81px); margin-block: 23px 23px; }
  .hero-description { font-size: 15px; max-width: 460px; }
  .desktop-break { display: none; }
  .hero-copy > .eyebrow { font-size: 9px; letter-spacing: .04em; gap: 7px; }
  .small-star { font-size: 21px; }
  .hero-link { margin-top: 19px; }
  .project-index { padding-top: 0; }
  .index-heading { padding-bottom: 13px; }
  .project-index a { grid-template-columns: 20px 1fr auto 12px; padding-block: 12px; }
  .index-topic { display: block; }
  .index-footnote { margin-top: 12px; }
  .section-heading { align-items: start; margin-bottom: 30px; padding-top: 17px; gap: 15px; }
  .section-heading h2 { font-size: 27px; }
  .work-section > .section-heading > .eyebrow { max-width: 114px; text-align: right; font-size: 9px; padding-top: 5px; }
  .featured-project { padding-bottom: 42px; }
  .feature-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
  .project-kicker { justify-content: space-between; gap: 16px; }
  .feature-name { font-size: 70px; margin-top: 13px; }
  .project-subtitle { font-size: 22px; }
  .feature-description > p { font-size: 15px; }
  .project-actions { gap: 20px; margin-top: 17px; }
  .feature-visual { padding: 12px 12px 13px; }
  .visual-topline { font-size: 9px; gap: 10px; margin-bottom: 11px; }
  .feature-visual figcaption { display: block; font-size: 10px; }
  .caption-action { display: block; margin-top: 5px; }
  .origin-note { grid-template-columns: 1fr; gap: 11px; padding-block: 23px; }
  .project-grid, .personal-grid { grid-template-columns: 1fr; gap: 39px; }
  .project-card .card-topline { margin-bottom: 15px; }
  .card-visual > .preview-link, .domio-diagram, .girlie-diagram { height: auto; }
  .card-visual > .preview-link { padding: 12px; }
  .card-visual > .preview-link img { max-height: none; }
  .jedzomko-visual picture { width: 100%; max-width: 335px; margin-inline: auto; }
  .jedzomko-visual > .preview-link img { max-height: 500px; object-fit: contain; }
  .card-visual figcaption { padding-inline: 12px; }
  .card-body { padding-top: 20px; }
  .card-body h3 { font-size: 37px; }
  .card-body .long-name { font-size: clamp(28px, 8vw, 37px); }
  .card-body .text-link { margin-top: 12px; }
  .domio-diagram, .girlie-diagram { padding: 25px; }
  .girlie-diagram { min-height: 300px; }
  .girlie-features { max-width: 68%; }
  .personal-section { padding-block: 46px; }
  .personal-section .section-heading { display: block; }
  .personal-section .section-heading p { margin-top: 9px; }
  .personal-grid { gap: 18px; }
  .personal-card { padding: 24px; }
  .personal-card .card-topline { margin-bottom: 23px; }
  .about-section { grid-template-columns: 1fr; gap: 27px; padding-block: 39px 43px; }
  .about-heading h2 { font-size: 53px; }
  .about-star { display: none; }
  .about-copy > p { font-size: 15px; }
  .contact-link { font-size: 22px; gap: 25px; }
  .site-footer { flex-wrap: wrap; gap: 12px; padding-block: 22px 25px; }
  .site-footer > span { order: 3; width: 100%; font-size: 10px; }
  .preview-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 12px; }
  .dialog-heading h2 { font-size: 12px; }
  .dialog-close { gap: 9px; padding-inline: 9px; }
  .dialog-image { max-height: calc(100dvh - 118px); }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .header-actions, .site-header nav { gap: 12px; }
  .hero-copy > .eyebrow { max-width: 285px; font-size: 8px; }
  .index-topic { font-size: 10px; }
  .project-index strong { font-size: 14px; }
  .project-index a { gap: 8px; }
  .card-topline { align-items: start; }
  .card-topline .status { font-size: 10px; }
  .personal-card { padding: 21px 18px; }
  .sous-pipeline li { padding-inline: 6px; font-size: 10px; }
  .contact-link { font-size: 20px; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
