:root {
  --bg: #f5f5f5;
  --ink: #000000;
  --tag: #aaaaaa;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", ui-monospace, monospace;
  --page-pad: clamp(1.5rem, 4vw, 2.5rem);
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100svh;
  padding: var(--page-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.brand {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(0.35rem);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2px;
  opacity: 0;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(0.7rem, 1.1vw, 0.8125rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--tag);
  padding: 0.45rem 0.55rem;
  border-radius: 2px;
  transition: filter 0.2s ease;
}

a.tag:hover,
a.tag:focus-visible {
  filter: brightness(0.92);
  outline: none;
}

a.tag:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .meta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
