:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #222222;
  --muted: #717171;
  --muted-soft: color-mix(in srgb, #717171 70%, transparent);
  --border: #dddddd;
  --secondary: #f7f7f7;
  --rausch: #ff385c;
  --rausch-hover: #e31c5f;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #121212;
    --foreground: #ececec;
    --muted: #adadad;
    --muted-soft: color-mix(in srgb, #adadad 70%, transparent);
    --border: rgba(255, 255, 255, 0.12);
    --secondary: #2c2c2c;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.brand svg {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.brand-name span {
  color: var(--rausch);
}

.kicker {
  margin: 0.75rem 0 0;
  font-size: 13px;
  color: var(--muted);
}

main {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  flex: 1;
}

.article-header {
  margin-bottom: 2.25rem;
}

.article-header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.meta {
  margin: 0.85rem 0 0;
  font-size: 14px;
  color: var(--muted);
}

.prose p {
  margin: 0 0 1.15rem;
  font-size: 16px;
  line-height: 1.7;
  color: var(--foreground);
}

.prose h2 {
  margin: 2.5rem 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

.prose a:hover {
  text-decoration-color: var(--foreground);
}

.prose em {
  font-style: italic;
}

.figure {
  width: min(56rem, calc(100vw - 2.5rem));
  margin: 2rem 0 2.25rem;
  margin-left: 50%;
  transform: translateX(-50%);
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--secondary);
}

.figure figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--secondary);
}

.cta p {
  margin: 0 0 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 1.5rem;
  border-radius: 8px;
  background: var(--rausch);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.cta-button:hover {
  background: var(--rausch-hover);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--secondary);
}

.site-footer p {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: var(--foreground);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.blog-list a {
  display: block;
  padding: 1.15rem 0;
  text-decoration: none;
}

.blog-list a:hover {
  background: transparent;
}

.blog-list h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.blog-list p {
  margin: 0.4rem 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
