:root {
  color-scheme: dark;
  --bg: #111214;
  --surface: #191b1f;
  --ink: #f2f3f4;
  --muted: #a3a8b1;
  --line: #30353c;
  --accent: #c4d7e9;
  --font: "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.page { width: min(1200px, calc(100% - 112px)); min-height: 100svh; margin-inline: auto; display: flex; flex-direction: column; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 5; padding: .75rem 1rem; background: var(--ink); color: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; gap: 28px; min-height: 72px; border-bottom: 1px solid var(--line); }
.site-header nav { margin-left: auto; }
.site-header > #andraz-account-widget { margin-inline-start: 0; }
.wordmark { font-size: 1.25rem; font-weight: 650; letter-spacing: -.035em; }
.nav-link { display: inline-block; font-size: .9375rem; color: var(--muted); padding: 12px 0; transition: color .18s; }
.nav-link:hover { color: var(--ink); }
main { flex: 1; min-width: 0; }
.introduction { padding: 36px 0 40px; }
h1 { margin: 0; font-size: clamp(2.5rem, 5.4vw, 4.25rem); font-family: "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-weight: 650; letter-spacing: -.045em; line-height: 1.15; }
h1 span { white-space: nowrap; }
.intro-copy { margin: 8px 0 0; color: var(--muted); font-size: clamp(1.125rem, 2.2vw, 1.75rem); font-weight: 400; letter-spacing: -.015em; line-height: 1.5; }
.projects-section { padding-bottom: 34px; scroll-margin-top: 2rem; }
.section-heading { margin-bottom: 14px; }
h2 { font-size: 1.875rem; line-height: 1.3; font-weight: 650; margin: 0; letter-spacing: -.025em; }
.empty-state { min-height: 128px; }
.empty-state p { margin: 0; color: var(--muted); }
.project-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; }
.project-list > li { min-width: 0; }
.project-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: border-color .18s, background .18s, transform .18s; }
.project-cover { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: #0c1016; border-bottom: 1px solid var(--line); }
.project-details { display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: start; gap: 14px; padding: 16px 20px 18px; }
.project-card h3 { font-size: clamp(1rem, 1.65vw, 1.375rem); line-height: 1.3; font-weight: 650; letter-spacing: -.025em; margin: 0; overflow-wrap: break-word; }
.project-card p { color: var(--muted); font-size: 1rem; line-height: 1.5; margin: 6px 0 0; overflow-wrap: break-word; }
.project-details > svg { width: 18px; height: 18px; margin-top: 5px; stroke: var(--ink); stroke-width: 1.4; transition: transform .18s; }
.project-card:hover { border-color: #596472; background: #1d2025; transform: translateY(-2px); }
.project-card:hover .project-details > svg { transform: translate(2px, -2px); }
.project-list > .project-item--compact { grid-column: 1 / -1; margin-top: 6px; }
.project-card--compact { background: transparent; }
.project-card--compact .project-details { align-items: center; padding-block: 17px; }
.project-card--compact .project-details > svg { margin-top: 0; }
.project-card--compact p { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 24px 0 30px; color: var(--muted); font-size: .8125rem; }
.back-top { display: inline-flex; align-items: center; gap: 11px; font-size: .875rem; }
.back-top svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.4; flex-shrink: 0; transition: transform .18s; }
.back-top:hover { color: var(--ink); }
.back-top:hover svg { transform: translateY(-2px); }
@media (max-width: 1050px) {
  .page { width: calc(100% - 64px); }
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card h3 { font-size: 1.25rem; }
}
@media (max-width: 600px) {
  .page { width: calc(100% - 40px); }
  .site-header { min-height: 68px; gap: 20px; }
  .wordmark { font-size: 1.125rem; }
  .nav-link { font-size: .875rem; }
  .introduction { padding: 32px 0; }
  h1 { font-size: clamp(2rem, 8.6vw, 3.125rem); }
  h2 { font-size: 1.5rem; }
  .project-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .project-card h3 { font-size: 1.25rem; }
  .project-details { padding: 16px 18px 18px; }
  .project-card p { font-size: .9375rem; }
  .project-list > .project-item--compact { margin-top: 2px; }
  .projects-section { padding-bottom: 28px; }
  .site-footer { flex-wrap: wrap; gap: 16px; padding: 22px 0 26px; font-size: .75rem; }
  .back-top { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
