:root {
  color-scheme: light;
  --ink: #191713;
  --muted: #6d675c;
  --paper: #fbfaf4;
  --paper-strong: #fffdf7;
  --line: #ded8c7;
  --green: #b7e857;
  --coral: #f2765f;
  --blue: #315f9f;
  --shadow: 0 24px 80px rgb(25 23 19 / 10%);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family:
    "Avenir Next", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  line-height: 1.5;
  background:
    linear-gradient(90deg, rgb(25 23 19 / 4%) 1px, transparent 1px) 0 0 / 58px 58px,
    radial-gradient(circle at 16% 12%, rgb(183 232 87 / 32%), transparent 32rem),
    radial-gradient(circle at 82% 4%, rgb(242 118 95 / 16%), transparent 28rem),
    var(--paper);
}

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

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--green);
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--ink);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

nav a,
.button-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 253 247 / 76%);
  padding: 9px 14px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

nav a:hover,
.button-link:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: var(--green);
}

.hero {
  max-width: 940px;
  padding: 48px 0 34px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
}

.hero-copy {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.featured-section {
  margin: 22px 0 28px;
}

.post-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 56px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 12px 38px rgb(25 23 19 / 7%);
}

.post-card-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  min-height: 430px;
  box-shadow: var(--shadow);
}

.post-card-image {
  display: block;
  min-height: 220px;
  background: #ebe5d3;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.post-card-body {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.post-card-featured .post-card-body {
  padding: 34px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.post-meta span::before {
  content: "/";
  margin-right: 10px;
  color: var(--coral);
}

.post-card h2 {
  margin: 18px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1;
}

.post-card:not(.post-card-featured) h2 {
  font-size: 1.42rem;
  line-height: 1.08;
}

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

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.keyword-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(49 95 159 / 8%);
  padding: 6px 9px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
}

.article-shell {
  max-width: 960px;
}

.article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 253 247 / 88%);
  box-shadow: var(--shadow);
}

.article-header {
  padding: clamp(28px, 6vw, 66px) clamp(22px, 6vw, 76px) 26px;
}

.article-header h1 {
  max-width: 860px;
  margin: 20px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.92;
}

.article-header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.keyword-row-large {
  margin-top: 26px;
}

.article-image {
  margin: 0;
  border-block: 1px solid var(--line);
}

.article-image img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

.article-content {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 22px 78px;
  color: #2c2821;
  font-size: 1.08rem;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  margin: 2em 0 0.7em;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.article-content h1 {
  font-size: 2.6rem;
}

.article-content h2 {
  font-size: 2.1rem;
}

.article-content h3 {
  font-size: 1.55rem;
}

.article-content p,
.article-content li {
  color: #3f3a32;
}

.article-content a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.18em;
}

.article-content pre {
  overflow-x: auto;
  border: 1px solid #2c2821;
  border-radius: 8px;
  background: #191713;
  padding: 18px;
  color: var(--paper);
}

.article-content blockquote {
  margin: 2rem 0;
  border-left: 6px solid var(--coral);
  padding-left: 18px;
  color: var(--muted);
  font-size: 1.2rem;
}

.related-posts {
  margin: 48px 0 0;
}

.related-posts h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
}

.site-footer p {
  max-width: 560px;
  margin: 0;
}

.site-footer a {
  font-weight: 900;
  color: var(--blue);
}

.empty-state {
  min-height: 52vh;
  padding: 72px 0;
}

.empty-state h1,
.empty-state h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.95;
}

.empty-state p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.1rem;
}

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

  .post-card-featured,
  .post-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .post-card-featured {
    min-height: 0;
  }

  .hero {
    padding-top: 18px;
  }
}
