:root {
  color-scheme: dark;
  --ink: #f4eddc;
  --muted: #c7bcaa;
  --paper: #151315;
  --panel: #211f21;
  --line: #3a3434;
  --ember: #ec4f3f;
  --gold: #f0b34f;
  --green: #54a88d;
  --shadow: rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(236, 79, 63, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(84, 168, 141, 0.12), transparent 32%),
    var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 56px);
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 4vw, 1.65rem);
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

nav a:hover,
.post-card a:hover {
  color: var(--gold);
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(20px, 5vw, 64px);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(26px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  min-height: calc(100vh - 190px);
}

.hero-copy {
  max-width: 620px;
}

.kicker,
.post-date {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  line-height: 1;
  margin: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 7rem);
  max-width: 760px;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.lede,
.intro p,
.post-card p,
footer {
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  line-height: 1.65;
}

.lede {
  margin: 24px 0 34px;
}

.button {
  background: var(--ember);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff8ec;
  display: inline-flex;
  font-weight: 800;
  min-height: 48px;
  padding: 13px 18px;
  text-decoration: none;
}

.button:hover {
  background: #ff6a58;
}

.hero img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  box-shadow: 0 24px 90px var(--shadow);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.intro {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 24px 0 clamp(36px, 7vw, 84px);
  padding: clamp(24px, 5vw, 44px) 0;
}

.intro p {
  margin: 0;
  max-width: 780px;
}

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

.section-heading {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

.post-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 260px;
  padding: clamp(20px, 4vw, 30px);
}

.post-card a {
  text-decoration-color: rgba(240, 179, 79, 0.45);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

footer {
  border-top: 1px solid var(--line);
  margin: 32px auto 0;
  max-width: 1180px;
  padding: 28px clamp(20px, 5vw, 64px) 42px;
}

.post-page main {
  max-width: 860px;
}

.post-body {
  border-top: 1px solid var(--line);
  margin-top: clamp(28px, 5vw, 48px);
  padding-top: clamp(24px, 5vw, 42px);
}

.post-body p,
.post-body li {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.back-link {
  color: var(--gold);
  display: inline-block;
  margin-bottom: 28px;
  text-decoration: none;
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 18px;
    padding-top: 18px;
  }

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

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.4rem);
  }
}
