/* degu.pl, placeholder (2026-11-22). Black and grey only, no fonts, no images, no JavaScript.
   Served under CSP style-src 'self' (no inline styles anywhere). Repo: web/degu.pl/ */
@layer base, page;

@property --x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -30%;
}

@layer base {
  :root {
    color-scheme: dark;
    --ink: oklch(0.86 0 0);
    --dim: oklch(0.56 0 0);
    --faint: oklch(0.24 0 0);
    --bg: oklch(0.12 0 0);
    font-family: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; }
  html, body { block-size: 100%; }
  body {
    background: var(--bg);
    color: var(--ink);
    display: grid;
    place-items: center;
    padding-inline: 16px;
  }
}

@layer page {
  @view-transition { navigation: auto; }

  main {
    container-type: inline-size;
    inline-size: min(100%, 40rem);
    display: grid;
    justify-items: center;
    gap: 1.25rem;
    text-align: center;
  }

  h1 {
    font-size: clamp(2.25rem, 12cqi, 5.5rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
    text-wrap: balance;
  }
  /* a hairline under the name with a slow grey highlight passing along it */
  h1::after {
    content: "";
    display: block;
    block-size: 1px;
    margin-block-start: 0.3em;
    background: linear-gradient(90deg,
      var(--faint) calc(var(--x) - 25%), var(--ink) var(--x), var(--faint) calc(var(--x) + 25%));
    animation: sweep 7s ease-in-out infinite alternate;
  }

  p {
    color: var(--dim);
    font-size: clamp(0.8rem, 2.6cqi, 0.95rem);
    letter-spacing: 0.02em;
    text-wrap: pretty;
  }

  .code {
    font-variant-numeric: tabular-nums;
    color: var(--faint);
    font-size: clamp(4rem, 30cqi, 11rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.9;
  }

  a {
    color: var(--ink);
    text-decoration-line: underline;
    text-decoration-color: var(--faint);
    text-underline-offset: 0.3em;
    transition: text-decoration-color 0.2s;
  }
  a:is(:hover, :focus-visible) { text-decoration-color: var(--ink); }
  a:focus-visible { outline: 1px solid var(--dim); outline-offset: 4px; }

  main > * {
    transition: opacity 0.8s ease, translate 0.8s ease;
    @starting-style { opacity: 0; translate: 0 0.4rem; }
  }
}

@keyframes sweep { to { --x: 130%; } }

@media (prefers-reduced-motion: reduce) {
  h1::after { animation: none; --x: 50%; }
  main > * { transition: none; }
}
