:root {
  --bg: #ffffff;
  --surface: #f3f4f7;
  --surface-strong: #eef0f3;
  --text: #262626;
  --text-soft: #595959;
  --border: #d7dbe0;
  --accent: #ee4c2c;
  --accent-dark: #b92b0f;
  --shadow: 0 18px 48px rgba(38, 38, 38, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Red Hat Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

code {
  background: var(--surface);
  border-radius: 8px;
  padding: 0.12rem 0.42rem;
}

pre {
  overflow-x: auto;
  background: var(--surface);
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

pre code {
  background: transparent;
  padding: 0;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(38, 38, 38, 0.08);
}

.header-shell {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

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

.brand-mark {
  background: var(--accent);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(238, 76, 44, 0.14);
}

.brand-overline,
.brand-title {
  display: block;
}

.brand-overline {
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.brand-title {
  font-size: 1rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-dark);
}

.site-main {
  padding: 3rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.feature-card,
.story-card,
.info-card,
.empty-card,
.post-shell,
.page-article,
.page-shell > section {
  border-radius: var(--radius);
}

.hero-copy {
  padding: 2.25rem;
  background:
    linear-gradient(135deg, rgba(238, 76, 44, 0.08), rgba(255, 255, 255, 0) 45%),
    var(--surface);
  border: 1px solid rgba(238, 76, 44, 0.14);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.hero-lead,
.post-summary {
  max-width: 60ch;
  font-size: 1.08rem;
  color: var(--text-soft);
}

.hero-note,
.panel-note,
.footer-copy,
.post-meta,
.card-meta,
.card-author,
.section-action {
  color: var(--text-soft);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: var(--text);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #111111;
}

.button-secondary {
  border-color: rgba(38, 38, 38, 0.12);
  background: #ffffff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(185, 43, 15, 0.4);
  color: var(--accent-dark);
}

.hero-panel,
.feature-card,
.story-card,
.info-card,
.empty-card,
.post-shell,
.page-article,
.page-intro,
.page-shell > section {
  background: #ffffff;
}

.hero-panel,
.feature-card,
.story-card,
.info-card,
.empty-card,
.post-shell,
.page-article,
.page-shell > section {
  border: 1px solid rgba(38, 38, 38, 0.08);
}

.hero-panel,
.feature-card,
.story-card,
.info-card,
.empty-card,
.post-shell,
.page-article {
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.panel-meta,
.card-meta,
.post-meta {
  font-size: 0.94rem;
}

.panel-copy,
.post-callout {
  margin-bottom: 1rem;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.section-grid {
  margin-top: 2.75rem;
}

.section-heading {
  margin-bottom: 1.1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.story-card h2,
.story-card h3,
.feature-card h2,
.feature-card h3,
.info-card h3 {
  margin-bottom: 0.65rem;
}

.page-article,
.post-shell {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.page-article h1 {
  margin-bottom: 1rem;
}

.page-article ul,
.page-article ol,
.rich-text ul,
.rich-text ol {
  padding-left: 2.25rem;
}

.page-intro {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(238, 76, 44, 0.12);
}

.rich-text h2,
.rich-text h3 {
  margin-top: 1.7rem;
}

.rich-text p,
.rich-text li {
  color: #333333;
}

.site-footer {
  border-top: 1px solid rgba(38, 38, 38, 0.08);
  background: var(--surface);
}

.footer-shell,
.legal-shell {
  padding: 1.4rem 0;
}

.footer-shell {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-title {
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-soft);
}

.legal-shell {
  border-top: 1px solid rgba(38, 38, 38, 0.08);
  font-size: 0.92rem;
  color: var(--text-soft);
}

@media (max-width: 900px) {
  .header-shell,
  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1.2rem, 1120px);
  }

  .site-main {
    padding-top: 2rem;
  }

  .hero-copy,
  .hero-panel,
  .feature-card,
  .story-card,
  .info-card,
  .empty-card,
  .post-shell,
  .page-article,
  .page-intro {
    padding: 1.2rem;
  }
}
