:root {
  --page-bg: #f7f4ed;
  --panel-bg: #ffffff;
  --text-color: #111111;
  --inverse-text-color: #fafafa;
  --line-color: #111111;
  --muted-bg: #e9e5dc;
  --accent-color: #d98a5c;
}

body.theme-dark {
  --page-bg: #111111;
  --panel-bg: #1b1b1b;
  --text-color: #fafafa;
  --inverse-text-color: #111111;
  --line-color: #fafafa;
  --muted-bg: #2a2a2a;
  --accent-color: #e6a679;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--muted-bg);
}

body {
  margin: 0;
  background-color: var(--muted-bg);
  color: var(--text-color);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

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

.site-wrapper {
  width: 992px;
  margin: 0 auto;
  background-color: var(--page-bg);
  border-left: 1px solid var(--line-color);
  border-right: 1px solid var(--line-color);
}

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 18px;
  border-bottom: 2px solid var(--line-color);
}

.site-header-logo a {
  display: inline-block;
  color: var(--text-color);
  font-size: 39px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.site-header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.site-header-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  color: var(--text-color);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.site-header-nav a.active {
  border-bottom: 4px solid var(--accent-color);
}

.site-header-button,
.home-hero-button-primary,
.hosts-final-cta-button-primary {
  width: fit-content;
  background-color: var(--text-color);
}

.site-header-button a,
.home-hero-button-primary a,
.hosts-final-cta-button-primary a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--inverse-text-color);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.home-hero-button-secondary,
.hosts-final-cta-button-secondary,
.host-promo-button {
  width: fit-content;
  border: 2px solid var(--line-color);
  background-color: var(--panel-bg);
}

.home-hero-button-secondary a,
.hosts-final-cta-button-secondary a,
.host-promo-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.home-hero,
.stories-title-section,
.hosts-hero,
.letter-hero {
  padding: 54px 42px;
  border-bottom: 1px solid var(--line-color);
}

.home-hero {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero-heading h1,
.hosts-hero-heading h1,
.letter-hero-heading h1,
.stories-title h1 {
  margin: 0;
  color: var(--text-color);
  font-size: 74px;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
}

.stories-title h1 {
  font-size: 78px;
}

.letter-hero-heading h1 {
  text-align: center;
}

.home-hero-lower {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: end;
  margin-top: 40px;
}

.home-hero-text,
.hosts-hero-text,
.letter-hero-text,
.stories-meta {
  max-width: 430px;
}

.home-hero-text p,
.hosts-hero-text p,
.letter-hero-text p,
.stories-meta p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.home-hero-buttons,
.hosts-final-cta-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.home-stats,
.hosts-process,
.hosts-offers,
.letter-promises,
.stories-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line-color);
}

.home-stat,
.hosts-process-step,
.hosts-offer,
.letter-promise {
  min-height: 86px;
  padding: 18px 22px;
  border-right: 1px solid var(--line-color);
}

.home-stat:last-child,
.hosts-process-step:last-child,
.hosts-offer:last-child,
.letter-promise:last-child {
  border-right: 0;
}

.home-stat strong {
  display: block;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.home-stat span {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-label {
  margin-bottom: 32px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 8px;
  text-transform: uppercase;
}

.featured-stories,
.stories-list {
  padding: 42px 18px;
  border-bottom: 1px solid var(--line-color);
}

.featured-stories-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.featured-stories-heading .section-label {
  margin-bottom: 0;
}

.all-stories-link {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--text-color);
  white-space: nowrap;
}

.featured-stories-grid,
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.story-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid var(--line-color);
  background-color: var(--panel-bg);
}

.story-card-text {
  padding: 14px 4px 0;
}

.story-card-text p {
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.story-card-text p:first-child {
  color: var(--accent-color);
}

.story-card-text h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.host-promo {
  min-height: 210px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background-color: var(--text-color);
  border-bottom: 1px solid var(--line-color);
}

.host-promo-text {
  color: var(--inverse-text-color);
}

.host-promo-text h2 {
  max-width: 620px;
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.host-promo-text p {
  max-width: 430px;
  margin: 18px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.4;
  text-transform: uppercase;
}

.newsletter-row,
.hosts-final-cta {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line-color);
}

.newsletter-heading h2,
.hosts-final-cta-heading h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.newsletter-form,
.letter-signup-form {
  display: flex;
  min-width: 390px;
}

.newsletter-form label,
.letter-signup-form label {
  position: absolute;
  left: -9999px;
}

.newsletter-form input,
.letter-signup-form input {
  flex: 1;
  min-height: 52px;
  padding: 0 20px;
  border: 2px solid var(--line-color);
  border-right: 0;
  background-color: var(--panel-bg);
  color: var(--text-color);
  font: inherit;
}

.newsletter-form input:focus,
.letter-signup-form input:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-color: var(--accent-color);
}

.newsletter-form button,
.letter-signup-form button {
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid var(--line-color);
  background-color: var(--text-color);
  color: var(--inverse-text-color);
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--line-color);
}

.site-footer p {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 5px;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.stories-title-section {
  min-height: 180px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.stories-filters {
  grid-template-columns: repeat(6, 1fr);
}

.stories-filter,
.stories-filter-active {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-right: 1px solid var(--line-color);
  color: var(--text-color);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.stories-filter-active {
  background-color: var(--text-color);
  color: var(--inverse-text-color);
}

.stories-filter:last-child {
  border-right: 0;
}

.stories-grid {
  gap: 0;
  border-top: 1px solid var(--line-color);
  border-left: 1px solid var(--line-color);
}

.stories-grid .story-card,
.stories-load-more {
  min-height: 235px;
  padding: 20px;
  border-right: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
}

.stories-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stories-load-more a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 48px;
  padding: 0 26px;
  border: 2px solid var(--line-color);
  background-color: var(--panel-bg);
  color: var(--text-color);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.stories-load-more a:hover,
.stories-load-more a:focus-visible {
  background-color: var(--text-color);
  color: var(--inverse-text-color);
}

.hosts-hero {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--text-color);
}

.hosts-hero h1,
.hosts-hero p {
  color: var(--inverse-text-color);
}

.hosts-hero-text {
  margin-top: 28px;
}

.hosts-process-step strong {
  display: block;
  color: #9b9b9b;
  font-size: 70px;
  font-weight: 900;
  line-height: 0.9;
}

.hosts-process-step h2,
.hosts-offer h2,
.letter-promise h2 {
  margin: 14px 0 8px;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.hosts-process-step p,
.hosts-offer p,
.letter-promise p,
.hosts-note p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.hosts-offer {
  min-height: 190px;
}

.hosts-offer strong {
  display: block;
  margin-top: 24px;
  font-size: 28px;
  font-weight: 900;
}

.hosts-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-color);
}

.hosts-note p {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.hosts-note-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.4;
  white-space: nowrap;
}

.letter-hero {
  min-height: 520px;
  text-align: center;
}

.letter-hero-heading,
.letter-hero-text,
.letter-signup-form,
.letter-hero-note {
  margin-left: auto;
  margin-right: auto;
}

.letter-hero-eyebrow p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 4px;
  line-height: 1.4;
  text-transform: uppercase;
}

.letter-hero-text {
  margin-top: 32px;
}

.letter-signup-form {
  max-width: 780px;
  margin-top: 46px;
}

.letter-hero-note {
  margin-top: 22px;
}

.letter-hero-note p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.4;
}

.letter-sample {
  display: grid;
  grid-template-columns: 2fr 1fr;
  border-bottom: 1px solid var(--line-color);
}

.letter-sample-text {
  padding: 30px;
}

.letter-sample-text p {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 5px;
  line-height: 1.4;
  text-transform: uppercase;
}

.letter-sample-text h2 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.letter-sample img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-left: 1px solid var(--line-color);
}

@media (max-width: 991px) {
  .site-wrapper {
    width: 100%;
  }

  .site-header,
  .newsletter-row,
  .hosts-final-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header-nav,
  .home-hero-buttons,
  .hosts-final-cta-buttons {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .home-hero-lower,
  .home-stats,
  .hosts-process,
  .hosts-offers,
  .letter-promises,
  .featured-stories-grid,
  .stories-grid,
  .stories-filters,
  .host-promo,
  .letter-sample {
    grid-template-columns: 1fr;
  }
}
