/* ---------------------------------------------------------------
   jlizak.com — Jeremiasz Lizak
   Light-only by design: a white business page, not a themed app.
   Colours are set explicitly so no browser inverts them.
   --------------------------------------------------------------- */

:root {
  --bg:        #ffffff;
  --surface:   #fafafa;
  --ink:       #0a0a0a;
  --body:      #4a4a4a;
  --muted:     #6e6e6e;
  --subtle:    #8a8a8a;
  --nav:       #5a5a5a;
  --line:      #e4e4e4;
  --line-2:    #d4d4d4;
  --wrap:      1184px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
dl, dd { margin: 0; }
ul { margin: 0; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
  transition: top .15s ease;
}
.skip:focus { top: 16px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .wrap { padding: 0 48px; } }

/* --- Buttons and links ------------------------------------------------ */

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}
.btn:hover { background: #2a2a2a; }

.nav-btn { padding: 10px 18px; font-size: 14px; }

.link-u {
  color: var(--nav);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
}
.link-u:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* --- Header ----------------------------------------------------------- */

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
@media (min-width: 768px) {
  .header-inner { min-height: 84px; padding-top: 0; padding-bottom: 0; }
}

.brand { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
  color: var(--nav);
}
@media (min-width: 768px) { .nav { gap: 32px; } }
.nav a:not(.btn):hover { color: var(--ink); }

/* --- Hero ------------------------------------------------------------- */

.hero { padding: 64px 0 56px; }
@media (min-width: 900px) { .hero { padding: 104px 0 88px; } }

.hero-grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
}

.eyebrow { font-size: 15px; color: var(--muted); margin-bottom: 24px; }

.hero h1 {
  font-size: clamp(32px, 5.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 34px;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
  font-size: 15px;
}

/* --- Current state panel ---------------------------------------------- */

.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px 26px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.panel-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.panel-date { font-size: 13px; color: var(--subtle); }

.panel-row { border-top: 1px solid var(--line); padding: 14px 0; }
.panel-row:last-child { padding-bottom: 0; }
.panel dt { font-size: 13px; color: var(--subtle); margin-bottom: 4px; }
.panel dd { font-size: 15px; line-height: 1.5; }
.panel dd span { color: var(--muted); }

/* --- Sections --------------------------------------------------------- */

.section { padding-bottom: 64px; }
@media (min-width: 900px) { .section { padding-bottom: 80px; } }

.section > .wrap > h2 {
  font-size: clamp(22px, 3vw, 26px);
  margin-bottom: 13px;
}

.rule { height: 1px; background: var(--ink); }
.rule-gap { margin-bottom: 32px; }

/* --- Projects --------------------------------------------------------- */

.project {
  display: grid;
  gap: 10px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .project {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 56px;
    padding: 34px 0;
  }
}

.project h3 { font-size: clamp(20px, 2.6vw, 26px); margin-bottom: 10px; }
.project h3.h3-sm { font-size: clamp(18px, 2.2vw, 20px); letter-spacing: -0.02em; }

.project p:not(.tech):not(.cat) {
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  max-width: 62ch;
  margin-bottom: 12px;
}

.tech { font-size: 14px; color: var(--subtle); }

.cat {
  order: -1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
@media (min-width: 760px) { .cat { order: 0; } }

/* --- Experience ------------------------------------------------------- */

.exp { display: grid; gap: 18px; }
@media (min-width: 760px) {
  .exp { grid-template-columns: 200px minmax(0, 1fr); gap: 56px; }
}

.exp-meta { font-size: 15px; line-height: 1.7; color: var(--muted); }
.exp-meta strong { display: block; color: var(--ink); font-weight: 500; }

.exp h3 { font-size: clamp(20px, 2.6vw, 24px); margin-bottom: 8px; }
.exp-stack { font-size: 15px; color: var(--subtle); margin-bottom: 20px; }

.exp ul {
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  max-width: 64ch;
}
.exp li + li { margin-top: 14px; }

/* --- Stack ------------------------------------------------------------ */

.srow {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .srow { grid-template-columns: 200px minmax(0, 1fr); gap: 56px; padding: 20px 0; }
}
.srow dt { font-size: 15px; font-weight: 500; }
.srow dd { font-size: 16px; line-height: 1.6; color: var(--body); }

/* --- Footer ----------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--ink);
  background: var(--surface);
  padding: 48px 0 40px;
}
@media (min-width: 760px) { .site-footer { padding: 60px 0 48px; } }

.footer-grid { display: grid; gap: 32px; padding-bottom: 36px; }
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    padding-bottom: 44px;
  }
}

.f-title { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.3; margin-bottom: 10px; }
.f-text { font-size: 16px; line-height: 1.6; color: var(--body); max-width: 36ch; }

.f-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 14px;
}

.f-list { font-size: 15px; line-height: 1.9; }
.f-list a:hover { color: var(--muted); text-decoration: underline; }

.f-base {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--subtle);
}

/* --- Print ------------------------------------------------------------ */

@media print {
  .site-header, .skip, .btn { display: none; }
  body { font-size: 11pt; }
  .hero { padding-top: 0; }
  a { color: #000; }
}
