:root {
  --cocoa: #321a15;
  --ganache: #5a2a22;
  --berry: #b83b4b;
  --rose: #f4d9d5;
  --cream: #fff8ef;
  --vanilla: #f6ead8;
  --mint: #dce8d5;
  --ink: #241714;
  --muted: #6e5c56;
  --line: rgba(50, 26, 21, 0.16);
  --shadow: 0 24px 70px rgba(50, 26, 21, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: white;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 248, 239, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav,
.site-footer,
.band,
.split,
.featured-post,
.posts-preview,
.page-hero,
.page-grid,
.article,
.comments {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cocoa);
  color: var(--cream);
  font: 700 0.86rem Fraunces, serif;
}

.brand strong,
h1,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  line-height: 1.05;
}

.brand strong {
  display: block;
  font-size: 1rem;
}

.brand em {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--berry);
  color: white;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button-small {
  min-height: 38px;
  padding: 0.55rem 0.9rem;
}

.button-ghost {
  background: white;
  color: var(--cocoa);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 76px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--cocoa);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(50, 26, 21, 0.86), rgba(50, 26, 21, 0.38) 48%, rgba(50, 26, 21, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: white;
}

.hero-content h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
}

.hero-content p:not(.eyebrow) {
  max-width: 580px;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--berry);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--rose);
}

.band,
.split,
.featured-post,
.posts-preview,
.comments {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--vanilla);
  border: 1px solid var(--line);
}

.band h2,
.split h2,
.featured-post h2,
.section-heading h2,
.page-hero h1,
.article h1,
.comments h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.band p:last-child,
.split-copy p,
.featured-post p,
.page-hero p,
.article-header p,
.comments p {
  color: var(--muted);
  font-size: 1.06rem;
}

.split,
.featured-post {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split img,
.featured-post img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.feature-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 0.55rem 0.8rem;
  font-weight: 800;
}

.featured-post {
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--mint);
  border: 1px solid rgba(50, 26, 21, 0.12);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-heading a {
  color: var(--berry);
  font-weight: 800;
}

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

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.post-card-media img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.post-card-body {
  padding: 1.2rem;
}

.post-card h3 {
  margin: 0;
  font-size: 1.55rem;
}

.post-card h3 a {
  text-decoration: none;
}

.post-card p:not(.eyebrow) {
  color: var(--muted);
}

.post-card time,
.article time {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0.85rem 0.9rem;
  color: var(--ink);
  font: inherit;
}

.hidden-field {
  display: none;
}

.page-hero {
  padding: clamp(4rem, 9vw, 7rem) 0 2rem;
}

.page-hero h1 {
  max-width: 820px;
}

.page-hero p {
  max-width: 640px;
}

.page-grid {
  margin-bottom: 5rem;
}

.article {
  max-width: 860px;
  padding: clamp(3rem, 7vw, 6rem) 0 0;
}

.article-header {
  text-align: center;
}

.article-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.article-body {
  font-size: 1.1rem;
}

.article-body h2 {
  margin-top: 2.2rem;
  font-size: 2rem;
}

.comments {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3rem);
  background: white;
  border: 1px solid var(--line);
  margin-bottom: 5rem;
}

.comment-placeholder {
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 1rem;
  font-weight: 800;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .brand em {
    display: none;
  }

  .hero {
    min-height: 640px;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(50, 26, 21, 0.9), rgba(50, 26, 21, 0.22));
  }

  .band,
  .split,
  .featured-post,
  .comments {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .nav,
  .site-footer,
  .band,
  .split,
  .featured-post,
  .posts-preview,
  .page-hero,
  .page-grid,
  .article,
  .comments {
    width: min(100% - 24px, 1120px);
  }

  .hero-content {
    width: min(100% - 24px, 1120px);
  }

  .hero-actions .button {
    width: 100%;
  }

  .band,
  .featured-post,
  .comments {
    padding: 1.3rem;
  }
}
