:root {
  --ink: #071421;
  --muted: #6b5b4d;
  --paper: #fffaf3;
  --cream: #fff4e4;
  --brown-950: #2a170d;
  --brown-800: #5b3419;
  --clay: #c97822;
  --gold: #f1b462;
  --line: rgba(42, 23, 13, 0.14);
  --shadow: 0 24px 70px rgba(42, 23, 13, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 250, 243, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(7, 20, 33, 0.08);
  display: flex;
  gap: 22px;
  height: 76px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 5vw, 72px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 13px;
  min-width: max-content;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  height: 52px;
  width: auto;
}

.brand-symbol {
  display: block;
  height: 62px;
  object-fit: contain;
  width: auto;
}

.brand-wordmark {
  display: grid;
  gap: 3px;
  line-height: 1;
  white-space: nowrap;
}

.brand-wordmark strong {
  color: #071421;
  font-family: "Space Grotesk", "Inter", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

.brand-wordmark small {
  color: var(--clay);
  font-family: "Space Grotesk", "Inter", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand .brand-wordmark strong {
  color: #071421;
  font-family: "Space Grotesk", "Inter", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

.brand .brand-wordmark small {
  color: var(--clay);
  font-family: "Space Grotesk", "Inter", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-mark {
  align-items: center;
  background: var(--brown-950);
  border-radius: 8px;
  color: var(--gold);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 13px;
  font-weight: 900;
}

.brand small {
  color: var(--clay);
  font-size: 11px;
  font-weight: 900;
}

.site-nav {
  align-items: center;
  display: flex;
  flex: 1;
  gap: clamp(14px, 2vw, 28px);
  justify-content: center;
}

.site-nav a {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--clay);
}

.header-action,
.btn-primary {
  align-items: center;
  background: var(--clay);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-transform: uppercase;
}

.header-action:hover,
.btn-primary:hover {
  background: #a95d1e;
}

.menu-toggle {
  align-items: center;
  background: var(--clay);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: none;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.mobile-menu-proxy {
  align-items: center;
  background: var(--clay);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: none;
  height: 42px;
  justify-content: center;
  position: fixed;
  right: 16px;
  top: 14px;
  width: 42px;
  z-index: 1000;
}

.blog-hero {
  background: var(--brown-950);
  color: #ffffff;
  min-height: 560px;
  overflow: hidden;
  padding: clamp(36px, 7vw, 84px) clamp(20px, 6vw, 92px);
  position: relative;
}

.blog-hero img {
  height: 100%;
  inset: 0 0 0 auto;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  position: absolute;
  width: min(72vw, 1100px);
}

.blog-hero::before {
  background:
    linear-gradient(90deg, var(--brown-950) 0%, rgba(42, 23, 13, 0.94) 38%, rgba(42, 23, 13, 0.36) 70%, rgba(42, 23, 13, 0.06) 100%),
    linear-gradient(0deg, rgba(42, 23, 13, 0.5), rgba(42, 23, 13, 0));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-copy {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.back-link {
  align-items: center;
  color: rgba(255, 244, 228, 0.86);
  display: flex;
  font-size: 13px;
  font-weight: 850;
  gap: 8px;
  margin-bottom: clamp(28px, 6vw, 64px);
  width: max-content;
}

.eyebrow,
.post-tag {
  color: var(--gold);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.blog-hero h1,
.article-title h1 {
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: clamp(48px, 7vw, 86px);
  letter-spacing: -0.06em;
  line-height: 0.94;
  margin: 0;
}

.blog-hero p:not(.eyebrow),
.article-title p {
  color: rgba(255, 244, 228, 0.88);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 650;
  max-width: 42ch;
}

.blog-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(50px, 7vw, 86px) 20px;
}

.section-heading {
  margin: 0 auto 30px;
  max-width: 780px;
  text-align: center;
}

.section-heading .eyebrow {
  color: var(--clay);
}

.section-heading h2,
.blog-cta h2,
.article-card h2 {
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0;
}

.featured-post {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  margin-bottom: 22px;
  overflow: hidden;
}

.featured-post img {
  aspect-ratio: 4 / 3;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.featured-post > div {
  align-content: center;
  display: grid;
  padding: clamp(24px, 5vw, 54px);
}

.featured-post h2,
.post-card h3 {
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
}

.featured-post h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.featured-post p,
.post-card p,
.article-card p {
  color: var(--muted);
  margin: 14px 0 22px;
}

.text-link,
.post-card a {
  align-items: center;
  color: var(--clay);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  text-transform: uppercase;
}

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

.post-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(42, 23, 13, 0.08);
  display: grid;
  overflow: hidden;
}

.post-card img {
  aspect-ratio: 5 / 3.4;
  object-fit: cover;
}

.post-card > div {
  display: grid;
  padding: 18px;
}

.post-card h3 {
  font-size: 22px;
}

.blog-cta {
  align-items: center;
  background: var(--brown-950);
  color: #ffffff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto clamp(46px, 7vw, 84px);
  max-width: 1180px;
  padding: clamp(26px, 5vw, 48px);
}

.blog-cta .eyebrow {
  color: var(--gold);
}

.article-shell {
  background: var(--paper);
}

.article-hero {
  background: var(--brown-950);
  color: #ffffff;
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.article-hero > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.84;
  position: absolute;
}

.article-hero::before {
  background:
    linear-gradient(90deg, rgba(42, 23, 13, 0.94) 0%, rgba(42, 23, 13, 0.75) 44%, rgba(42, 23, 13, 0.12) 100%),
    linear-gradient(0deg, rgba(42, 23, 13, 0.62), rgba(42, 23, 13, 0.04));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.article-title {
  align-content: center;
  display: grid;
  min-height: 620px;
  max-width: 780px;
  padding: clamp(36px, 7vw, 92px);
  position: relative;
  z-index: 2;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.article-meta span {
  align-items: center;
  background: rgba(255, 244, 228, 0.12);
  border: 1px solid rgba(255, 244, 228, 0.18);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  gap: 8px;
  padding: 9px 13px;
}

.article-layout {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 54px);
  grid-template-columns: minmax(0, 1fr) 320px;
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(42px, 7vw, 86px) 20px;
}

.article-content {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 54px);
}

.article-content h2 {
  font-family: "Space Grotesk", Arial, Helvetica, sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 34px 0 12px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p,
.article-content li {
  color: #3f342d;
  font-size: 18px;
  line-height: 1.75;
}

.article-content ul {
  margin: 14px 0 28px;
  padding-left: 22px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
  position: sticky;
  top: 96px;
}

.article-card img {
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  object-fit: cover;
  object-position: center 35%;
}

.article-card h2 {
  font-size: 28px;
}

.article-card .btn-primary {
  width: 100%;
}

.blog-footer {
  align-items: center;
  background: #18110c;
  color: #f7eadc;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 22px clamp(20px, 6vw, 72px);
}

.blog-footer span,
.blog-footer a {
  color: #cbbcac;
  font-size: 13px;
  font-weight: 750;
}

.blog-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.blog-footer a:hover {
  color: var(--gold);
}

@media (max-width: 900px) {
  .site-nav {
    background: rgba(42, 23, 13, 0.98);
    border-top: 1px solid rgba(255, 244, 228, 0.14);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 16px 20px 24px;
    position: absolute;
    right: 0;
    top: 76px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    color: #ffffff;
    padding: 12px;
    width: 100%;
  }

  .menu-toggle {
    display: inline-flex;
    position: fixed;
    right: 16px;
    top: 14px;
    z-index: 45;
  }

  .mobile-menu-proxy {
    display: inline-flex;
  }

  .header-action {
    display: none;
  }

  .blog-hero img {
    width: 100%;
  }

  .blog-hero::before {
    background:
      linear-gradient(0deg, var(--brown-950) 0%, rgba(42, 23, 13, 0.76) 58%, rgba(42, 23, 13, 0.18) 100%),
      linear-gradient(90deg, rgba(42, 23, 13, 0.82), rgba(42, 23, 13, 0.14));
  }

  .featured-post,
  .article-layout {
    grid-template-columns: 1fr;
  }

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

  .article-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 70px;
    padding-inline: 16px;
  }

  .brand strong {
    font-size: 12px;
  }

  .brand small {
    font-size: 10px;
  }

  .site-nav {
    top: 70px;
  }

  .blog-hero,
  .article-title {
    min-height: 560px;
    padding: 28px 16px;
  }

  .back-link {
    margin-bottom: 34px;
  }

  .blog-hero h1,
  .article-title h1 {
    font-size: 40px;
    max-width: 9ch;
    overflow-wrap: normal;
  }

  .blog-hero p:not(.eyebrow),
  .article-title p {
    max-width: 31ch;
    overflow-wrap: normal;
  }

  .blog-section {
    padding-inline: 16px;
  }

  .featured-post img {
    min-height: 260px;
  }

  .featured-post > div,
  .article-content {
    padding: 20px;
  }

  .blog-cta {
    align-items: stretch;
    flex-direction: column;
    margin-inline: 16px;
  }

  .article-content p,
  .article-content li {
    font-size: 16px;
  }

  .article-layout {
    max-width: 100vw;
    overflow: hidden;
    padding: 28px 16px 56px;
  }

  .article-content,
  .article-card {
    max-width: calc(100vw - 32px);
    overflow: hidden;
    width: 100%;
  }

  .article-content h2,
  .article-content p,
  .article-content li {
    overflow-wrap: break-word;
  }
}

@media (max-width: 380px) {
  .blog-hero h1,
  .article-title h1 {
    font-size: 36px;
  }
}

@media (max-width: 900px) {
  .site-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42px !important;
    left: 0 !important;
    max-width: 100vw !important;
    overflow: hidden;
    right: 0 !important;
    width: 100vw !important;
  }

  .brand {
    min-width: 0;
  }

  .menu-toggle {
    background: var(--clay) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    grid-column: 2;
    height: 42px !important;
    opacity: 1 !important;
    justify-self: end;
    position: fixed !important;
    right: 16px !important;
    top: 14px !important;
    visibility: visible !important;
    width: 42px !important;
    z-index: 1000 !important;
  }
}

@media (min-width: 901px) {
  .menu-toggle,
  .mobile-menu-proxy {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    height: 42px;
    max-width: 188px;
  }

  .brand-symbol {
    height: 46px;
  }

  .brand-wordmark strong {
    font-size: 13px;
  }

  .brand-wordmark small {
    font-size: 10px;
  }

  .brand .brand-wordmark strong {
    font-size: 13px;
  }

  .brand .brand-wordmark small {
    font-size: 11px;
  }

  .featured-post,
  .post-card,
  .blog-cta {
    inline-size: calc(100vw - 32px);
    margin-left: auto;
    margin-right: auto;
    max-inline-size: calc(100vw - 32px);
  }

  .featured-post > div,
  .post-card > div {
    inline-size: min(100%, calc(100vw - 72px));
    min-width: 0;
  }

  .featured-post h2,
  .featured-post p,
  .post-card h3,
  .post-card p {
    max-inline-size: 100%;
    overflow-wrap: anywhere;
  }

  .featured-post h2 {
    font-size: 23px;
    letter-spacing: -0.02em;
    max-inline-size: 16ch;
  }

  .article-layout {
    display: block !important;
    inline-size: 100vw !important;
    margin: 0 !important;
    padding: 28px 16px 56px !important;
  }

  .article-content,
  .article-card {
    inline-size: min(340px, calc(100vw - 48px)) !important;
    max-inline-size: min(340px, calc(100vw - 48px)) !important;
    min-inline-size: 0 !important;
  }

  .article-card {
    margin-top: 22px;
  }

  .article-content p,
  .article-content li {
    max-inline-size: 100%;
    white-space: normal;
  }
}
