@import "base/variables.css";

* { box-sizing: border-box; }

html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg-void);
  color: var(--cream);
  font-family: var(--font-family);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 42% at 50% 100%, var(--horizon) 0%, transparent 68%),
    linear-gradient(180deg, var(--bg-void) 0%, var(--bg-accent) 72%, var(--horizon) 100%);
}

a { color: var(--rose-hot); text-decoration-thickness: 1px; }
a:hover { color: var(--cream); }
a:focus-visible, .blog-wordmark:focus-visible {
  outline: 2px solid var(--rose-hot);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 2;
  padding: 8px 12px;
  background: var(--bg-void);
  color: var(--cream);
}
.skip:focus { top: 12px; }

.blog-header, .blog-footer, .blog-main {
  width: min(720px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.blog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 18px 0 8px;
}

.blog-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.blog-wordmark img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.blog-header nav {
  display: flex;
  gap: 16px;
  font-size: 0.92rem;
  font-weight: 600;
}

.blog-header nav a { color: var(--cream-soft); text-decoration: none; }
.blog-header nav a:hover { color: var(--cream); }

.blog-main { padding: 28px 0 64px; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.1rem, 7vw, 2.85rem); margin: 0 0 12px; }
h2 { font-size: 1.45rem; margin: 0 0 8px; }
h3 { font-size: 1.15rem; }

.lede {
  max-width: 34em;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 0 36px;
  overflow-wrap: break-word;
}

.post-row {
  padding: 22px 0;
  border-top: 1px solid var(--border-color);
}

.post-row time, .post time, .blog-footer {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.post-row h2 a {
  color: var(--cream);
  text-decoration: none;
}

.post-row h2 a:hover { color: var(--rose-hot); }

.post-row time { display: block; margin: 6px 0 0; }

.post-row p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.post header { margin-bottom: 28px; }

.blog-begin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 70ch;
  min-height: 56px;
  margin-top: 40px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a0a10;
  text-decoration: none;
  background: linear-gradient(180deg, var(--rose-hot), var(--rose));
  box-shadow: var(--shadow-glow);
}
.blog-begin:hover {
  color: #1a0a10;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.prose {
  max-width: 70ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--cream-soft);
}

.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.1em; }
.prose h2 { margin: 1.6em 0 0.5em; color: var(--cream); }
.prose h3 { margin: 1.3em 0 0.4em; color: var(--cream); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose code {
  font-size: 0.92em;
  background: var(--bg-input);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.prose pre {
  overflow-x: auto;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}
.prose pre code { background: none; padding: 0; }
.prose blockquote {
  margin-left: 0;
  padding-left: 16px;
  border-left: 1px solid var(--rose);
  color: var(--text-secondary);
}

.pager {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  font-weight: 700;
}
.pager:empty { display: none; }

.empty, .blog-footer { padding: 28px 0 48px; }
.blog-footer { border-top: 1px solid var(--border-color); }
