body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #172033;
  line-height: 1.65;
}

a {
  color: #2c3e50;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer,
.site-main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #172033;
  font-weight: 800;
  font-size: 19px;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #2c3e50;
  font-size: 12px;
  font-weight: 900;
}

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.site-main {
  padding: 56px 0;
}

.page-shell {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 26px 0;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h2 {
  margin-top: 42px;
  line-height: 1.25;
}

h3 {
  margin-top: 24px;
}

p,
li {
  font-size: 17px;
}

.hero-intro,
.post-description {
  color: #64748b;
  font-size: 20px;
  max-width: 780px;
}

.eyebrow {
  color: #e74c3c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 13px;
}

.directory-hero,
.magazine-layout,
.comparison-hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

.directory-search-card,
.side-rail,
.versus-box,
.category-grid div,
.guide-map div,
.comparison-panels div,
.featured-card,
.post-cards article,
.timeline-posts article,
.story-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 0;
  padding: 22px;
}

.directory-search-card,
.side-rail {
  display: grid;
  gap: 10px;
}

.directory-search-card span,
.side-rail span,
.lab-metrics span {
  color: #64748b;
}

.category-grid,
.guide-map,
.comparison-panels,
.post-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0;
}

.personal-intro,
.minimal-hero,
.guide-hero,
.magazine-hero,
.lab-hero {
  max-width: 820px;
}

.lab-hero {
  border-left: 5px solid #e74c3c;
  padding-left: 24px;
}

.lab-label {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lab-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.lab-metrics span {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 8px 12px;
}

.versus-box {
  display: grid;
  gap: 12px;
  text-align: center;
}

.versus-box strong {
  font-size: 34px;
  color: #e74c3c;
}

.posts {
  margin-top: 44px;
}

.timeline-posts article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0;
  background: transparent;
}

.timeline-posts time,
.plain-posts small,
.post-cards article > p {
  color: #64748b;
  font-size: 13px;
}

.plain-posts p {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.post-header {
  max-width: 820px;
  margin-bottom: 34px;
}

.post-content {
  max-width: 820px;
}

.layout-magazine .post-content,
.layout-editorial_report .post-content {
  max-width: 760px;
}

code {
  background: rgba(44, 62, 80, 0.08);
  padding: 2px 5px;
  border-radius: 5px;
}

pre {
  background: #101828;
  color: #f9fafb;
  padding: 18px;
  border-radius: 12px;
  overflow-x: auto;
}

blockquote {
  border-left: 4px solid #e74c3c;
  margin-left: 0;
  padding: 12px 18px;
  background: rgba(231, 76, 60, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

th,
td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
}

th {
  background: rgba(44, 62, 80, 0.08);
}

.site-footer {
  color: #64748b;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner nav {
  display: flex;
  gap: 14px;
}

@media (max-width: 900px) {
  .directory-hero,
  .magazine-layout,
  .comparison-hero,
  .category-grid,
  .guide-map,
  .comparison-panels,
  .post-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-shell {
    padding: 26px;
  }

  .timeline-posts article {
    grid-template-columns: 1fr;
  }
}
