* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #202124;

  background: #fffdf9;

  line-height: 1.7;
}

a {
  color: #8b4a20;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92%);
  margin: auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255, 253, 249, 0.97);

  border-bottom: 1px solid #eee7df;

  backdrop-filter: blur(10px);
}

.nav {
  height: 72px;

  display: flex;

  align-items: center;

  justify-content: space-between;
}

.brand {
  color: #20150f;

  font-size: 1.35rem;

  font-weight: 800;
}

.brand:hover {
  text-decoration: none;
}

.main-nav {
  display: flex;

  gap: 25px;
}

.main-nav a {
  color: #55483f;

  font-weight: 600;
}

.menu-toggle {
  display: none;

  border: 0;

  background: transparent;

  font-size: 1.6rem;

  cursor: pointer;
}

/* HERO */

.hero {
  padding: 110px 0 100px;

  background: linear-gradient(135deg, #fff1df, #fffdf9 65%);
}

.hero-content {
  max-width: 850px;
}

.eyebrow {
  display: inline-block;

  color: #9a4e20;

  font-size: 0.76rem;

  letter-spacing: 0.15em;

  font-weight: 800;
}

.hero h1 {
  margin: 14px 0 20px;

  color: #24160e;

  font-size: clamp(2.7rem, 6vw, 5rem);

  line-height: 1.04;

  letter-spacing: -0.045em;
}

.hero p {
  max-width: 730px;

  color: #685b52;

  font-size: 1.18rem;
}

.hero-actions {
  display: flex;

  gap: 12px;

  margin-top: 30px;
}

/* BUTTONS */

.btn {
  display: inline-block;

  padding: 12px 20px;

  border-radius: 10px;

  border: 0;

  font-weight: 700;

  cursor: pointer;
}

.btn-primary {
  background: #24160e;

  color: #ffffff;
}

.btn-primary:hover {
  background: #000000;

  color: #ffffff;

  text-decoration: none;
}

.btn-secondary {
  background: #ffffff;

  color: #24160e;

  border: 1px solid #d9cec4;
}

.btn-secondary:hover {
  text-decoration: none;
}

.btn-light {
  background: #ffffff;

  color: #24160e;
}

/* SECTIONS */

.section {
  padding: 70px 0;
}

.section-header {
  display: flex;

  align-items: end;

  justify-content: space-between;

  margin-bottom: 28px;
}

.section-header h2 {
  margin: 5px 0 0;

  color: #24160e;

  font-size: 2rem;
}

/* STORIES */

.story-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 22px;
}

.story-card {
  padding: 26px;

  background: #ffffff;

  border: 1px solid #eee7df;

  border-radius: 16px;

  box-shadow: 0 5px 22px rgba(60, 38, 20, 0.05);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-3px);

  box-shadow: 0 14px 32px rgba(60, 38, 20, 0.09);
}

.story-card h2 {
  margin: 8px 0 12px;

  color: #24160e;

  line-height: 1.25;
}

.story-card p {
  color: #6b625c;
}

.story-category {
  color: #9a4e20;

  font-size: 0.74rem;

  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.story-meta {
  display: flex;

  gap: 8px;

  color: #9b918a;

  font-size: 0.84rem;
}

.read-link {
  display: inline-block;

  margin-top: 16px;

  font-weight: 700;
}

/* FILTERS */

.story-filters {
  display: grid;

  grid-template-columns: 1fr 220px auto;

  gap: 12px;

  margin-bottom: 35px;
}

.story-filters input,
.story-filters select {
  width: 100%;

  padding: 13px 15px;

  background: #ffffff;

  color: #202124;

  border: 1px solid #d9cec4;

  border-radius: 10px;

  font: inherit;

  outline: none;
}

.story-filters input:focus,
.story-filters select:focus {
  border-color: #9a4e20;

  box-shadow: 0 0 0 3px rgba(154, 78, 32, 0.1);
}

.empty-state {
  padding: 70px 20px;

  text-align: center;

  background: #ffffff;

  border: 1px solid #eee7df;

  border-radius: 16px;
}

/* PAGE HERO */

.page-hero {
  padding: 75px 0;

  background: #f8f1e9;

  border-bottom: 1px solid #eee7df;
}

.page-hero h1 {
  margin: 10px 0;

  color: #24160e;

  font-size: clamp(2.3rem, 5vw, 3.8rem);

  line-height: 1.08;

  letter-spacing: -0.035em;
}

.page-hero p {
  color: #6b625c;
}

/* ARTICLE */

.article {
  max-width: 800px;

  padding-top: 75px;

  padding-bottom: 90px;
}

.article h1 {
  margin: 10px 0;

  color: #24160e;

  font-size: clamp(2.4rem, 6vw, 4rem);

  line-height: 1.08;

  letter-spacing: -0.04em;
}

.article-meta {
  display: flex;

  gap: 8px;

  color: #9b918a;

  font-size: 0.9rem;
}

.article-lead {
  margin: 30px 0;

  color: #6b625c;

  font-size: 1.2rem;
}

.article-content p {
  margin: 0 0 25px;

  color: #382d26;

  font-family: Georgia, serif;

  font-size: 1.13rem;

  line-height: 1.9;
}

.article-footer {
  margin-top: 50px;

  padding-top: 25px;

  border-top: 1px solid #eee7df;
}

/* CATEGORIES */

.category-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

.category-card {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 24px;

  background: #ffffff;

  border: 1px solid #eee7df;

  border-radius: 14px;

  color: #24160e;

  font-weight: 800;
}

.category-card:hover {
  background: #fff5e9;

  text-decoration: none;
}

.category-card small {
  color: #9b918a;

  font-weight: 500;
}

/* PROSE */

.prose {
  max-width: 820px;
}

.prose h2 {
  margin-top: 38px;

  color: #24160e;

  line-height: 1.3;
}

.prose p,
.prose li {
  color: #51473f;
}

/* CALLOUT */

.dark-callout {
  padding: 42px;

  border-radius: 18px;

  background: #24160e;

  color: #ffffff;
}

.dark-callout h2 {
  max-width: 750px;

  font-size: 2.1rem;

  line-height: 1.25;
}

.dark-callout p {
  max-width: 720px;

  color: #d8ccc2;

  margin-bottom: 28px;
}

/* ERROR */

.centered {
  text-align: center;
}

.error-number {
  color: #9a4e20;

  font-size: 6rem;

  font-weight: 900;

  line-height: 1;
}

/* FOOTER */

.site-footer {
  background: #24160e;

  color: #d8ccc2;
}

.footer-grid {
  display: grid;

  grid-template-columns: 2fr 1fr 1fr;

  gap: 45px;

  padding: 55px 0;
}

.site-footer h3,
.site-footer h4 {
  color: #ffffff;
}

.site-footer a {
  display: block;

  margin: 7px 0;

  color: #d8ccc2;
}

.site-footer a:hover {
  color: #ffffff;
}

.small {
  color: #a99b91;

  font-size: 0.85rem;
}

.footer-bottom {
  padding: 18px 0;

  border-top: 1px solid #493a31;

  font-size: 0.85rem;
}

/* MOBILE */

@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;

    position: absolute;

    top: 72px;

    left: 0;

    right: 0;

    padding: 18px 4%;

    background: #fffdf9;

    border-bottom: 1px solid #eee7df;

    flex-direction: column;

    gap: 12px;
  }

  .main-nav.open {
    display: flex;
  }

  .story-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .story-filters {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 75px 0;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .section-header {
    align-items: flex-start;

    flex-direction: column;

    gap: 10px;
  }
}
