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

html {
  background: var(--bg);
  color: var(--fg);
}

:root {
  --bg: #0a0a0a;
  --fg: #f2f2f2;
  --muted: #b0b0b0;
  --muted2: #8a8a8a;
  --border: #f2f2f2;
  --max: 680px;
}

body {
  font-family: 'Google Sans Code Variable', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  transition: background 0.15s ease, color 0.15s ease;
}

a:hover {
  color: inherit;
  background: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:focus-visible {
  outline: 2px dashed var(--fg);
  outline-offset: 2px;
  border-radius: 2px;
}

.stack > * + * {
  margin-top: 24px;
}

.stack-sm > * + * {
  margin-top: 12px;
}

.stack-xs > * + * {
  margin-top: 6px;
}

h1 {
  font-size: 16px;
  letter-spacing: 0.3px;
  font-weight: 600;
}

h2 {
  font-size: 14px;
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.muted-2 {
  color: var(--muted2);
}

hr {
  border: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.15;
  margin: 24px 0;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.header-right {
  white-space: nowrap;
}

.header-right a {
  font-weight: 600;
}

.post h2 {
  margin-bottom: 4px;
}

.post-meta {
  font-size: 12px;
}

.post-summary {
  margin-top: 6px;
}

article img {
  max-width: 100%;
  height: auto;
}

article h2 {
  margin-top: 24px;
  margin-bottom: 6px;
}

article p {
  margin-top: 12px;
  color: var(--muted);
}

footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid;
  opacity: 0.15;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 520px) {
  body {
    font-size: 12px;
    padding: 36px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
