/* szabolcskabalazs.com – placeholder styles. Use the :root tokens; add new colours here only. */

:root {
  --ink: #1d1d1f;
  --ink-muted: #5f5f66;
  --paper: #fbfaf7;
  --line: #e2e0da;
  --accent: #2f5bea;
  --splash-bg: #e9e6e1;
  --splash-ink: #d9d4cc;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ececef;
    --ink-muted: #a2a2aa;
    --paper: #141416;
    --line: #2c2c30;
    --accent: #8aa6ff;
  --splash-bg: #161615;
  --splash-ink: #2b2926;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font-body);
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus { left: var(--gutter); top: 0.5rem; }

.site-header,
.site-footer,
main {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}
.site-header__name {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.logo { width: 1.375rem; height: 2.375rem; flex: none; color: var(--ink); }
.nav { display: flex; gap: 1.25rem; }
.nav a { color: var(--ink-muted); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

main { flex: 1; padding-block: 3rem; }

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lead { margin: 0; color: var(--ink-muted); font-size: 1.2rem; }

.site-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Splash pages (home, 404): one pixel-art mark centred on a quiet background */
body.splash { background: var(--splash-bg); }
body.splash .skip-link,
body.splash .site-header,
body.splash .site-footer { display: none; }
body.splash main {
  display: grid;
  place-items: center;
  max-width: none;
  padding: var(--gutter);
}
.splash__mark {
  /* size of one art pixel, shared so the seahorse and the 404 match */
  --px: calc(clamp(7rem, 26vmin, 12rem) / 19);
  margin: 0;
  line-height: 0;
}
.splash__art {
  display: block;
  width: auto;
  height: calc(var(--rows) * var(--px));
  aspect-ratio: var(--cols) / var(--rows);
  color: var(--splash-ink);
}
.splash__art--seahorse { --cols: 11; --rows: 19; }
.splash__art--404 { --cols: 25; --rows: 10; }
