:root {
  color-scheme: dark;
  --background: #191919;
  --surface: #202020;
  --surface-hover: #252525;
  --border: #353535;
  --text: #e8e8e5;
  --muted: #aaa8a2;
  --faint: #777773;
  --accent: #c0ad8f;
  font-size: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 34px 40px 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  color: #f1f1ee;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.x-link {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(210px, 1fr);
  align-items: center;
  gap: 0;
  padding: 78px 0 70px;
}

.intro-copy {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 17px;
}

.intro-copy a {
  color: var(--accent);
}

.sundial-image {
  display: block;
  width: 210px;
  height: auto;
  justify-self: center;
  opacity: 0.84;
}

.post-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.post-group {
  border: 1px solid var(--border);
}

.section-label {
  display: flex;
  justify-content: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}

.section-label h1 {
  margin: 0;
  font-size: calc(0.7rem + 3px);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.post-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  min-height: 94px;
  padding: 18px 16px;
  border-bottom: 1px solid #303030;
  transition: background-color 160ms ease;
}

.post-card:last-child {
  border-bottom: 0;
}

.post-number,
.post-card small {
  color: var(--faint);
  font-size: 0.68rem;
  line-height: 1.45;
}

.post-card small {
  font-size: calc(0.68rem + 1px);
}

.post-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-card strong {
  font-size: calc(0.82rem + 2px);
  font-weight: 400;
  line-height: 1.45;
}

.post-date {
  color: var(--faint);
  font-size: 0.62rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  justify-self: end;
}

.post-card:hover,
.post-card:focus-visible {
  background: var(--surface-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.article-page {
  max-width: 680px;
  padding-top: 96px;
}

.article-back {
  color: var(--muted);
  font-size: 0.75rem;
}

.article-label {
  margin: 54px 0 16px;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-page h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.article-description {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.article-placeholder {
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .site-shell {
    padding: 26px 20px 38px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 64px 0 56px;
  }

  .sundial-image {
    width: 156px;
    justify-self: center;
  }

  .post-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-page {
    padding-top: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card {
    transition: none;
  }
}
