:root {
  --bg: #0a0b0f;
  --bg-elevated: #12141c;
  --border: rgba(255, 215, 128, 0.12);
  --text: #e8e6e3;
  --muted: #9a9590;
  --accent: #e8c547;
  --accent-dim: #b8972e;
  --cyan: #5eead4;
  --radius: 12px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --max: 720px;
  --max-wide: 1040px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(232, 197, 71, 0.15), transparent),
    var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.5rem;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--accent);
}

.site-tagline {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--accent);
}

.site-main {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hero {
  max-width: var(--max);
  margin-bottom: 3rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero__lead {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: var(--bg);
}

.btn--primary:hover {
  filter: brightness(1.08);
  color: var(--bg);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
}

.panel__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.panel__text {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.panel__actions {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.link-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.link-pill {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
}

.link-pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.latest__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  margin: 0 0 1.25rem;
}

.post-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .post-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card__cover {
  display: block;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--bg);
}

.post-card__cover:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__date {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card__title {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  line-height: 1.35;
}

.post-card__title a {
  color: var(--text);
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--accent);
}

.post-card__excerpt {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.latest__more {
  margin-top: 1.5rem;
}

.latest__more a {
  font-weight: 600;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

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

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list--thumb .post-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .post-list--thumb .post-row {
    flex-direction: row;
    align-items: flex-start;
  }
}

.post-row {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.post-row__cover {
  flex-shrink: 0;
  display: block;
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.post-row__cover img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.post-row__text {
  flex: 1;
  min-width: 0;
}

.post-row time {
  font-size: 0.85rem;
  color: var(--muted);
}

.post-row h2 {
  font-size: 1.35rem;
  margin: 0.35rem 0;
  font-weight: 600;
}

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

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

.post-row p {
  margin: 0;
  color: var(--muted);
}

.pagination {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.pagination a {
  font-weight: 600;
}

.article {
  max-width: var(--max);
  margin: 0 auto;
}

.article__cover {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.article__cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.article__cover figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.article__meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.article__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.article__dek {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.site-footer__reddit {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.site-footer__reddit a {
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
}

.site-footer__reddit a:hover {
  text-decoration: underline;
}

.prose {
  font-size: 1.05rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  margin: 2rem 0 0.75rem;
}

.prose h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

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

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  color: var(--muted);
}

.article__aside {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(94, 234, 212, 0.06);
  font-size: 0.98rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2.5rem 1.5rem;
  background: var(--bg-elevated);
}

.site-footer__grid {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.site-footer p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.site-footer__rss {
  margin-top: 0.75rem;
}

.site-footer__rss a {
  font-weight: 600;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__copy {
  max-width: var(--max-wide);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
