:root {
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-top: 3px solid var(--clay);
  border-bottom: 1px solid rgba(166, 99, 70, .42);
  background: rgba(16, 37, 32, .97);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
  color: var(--paper);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: 88px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto max-content;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  width: max-content;
  text-decoration: none;
}
.wordmark img { width: 220px; height: auto; }
.main-nav { display: flex; gap: clamp(.85rem, 1.45vw, 1.45rem); align-items: center; }
.main-nav a {
  color: rgba(255, 255, 255, .84);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .1em;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--sand); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: .45em; }
.menu-button,
.mobile-menu { display: none; }

.button {
  min-height: 50px;
  padding: .78rem 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 35, 31, .25);
  background: var(--forest);
  color: var(--paper);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}
.button:hover { background: var(--forest-2); }
.button-dark { background: var(--forest); color: var(--paper); }
.header-inner > .button {
  min-height: 44px;
  padding: .7rem 1.1rem;
  border-color: transparent;
  background: var(--paper);
  color: var(--forest);
  font-size: .64rem;
}
.header-inner > .button:hover { background: var(--sand); }

.journal-hero,
.article-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.journal-hero { padding: 5.75rem 32px 5.25rem; }
.article-hero { padding: 5rem 32px 4.5rem; }
.journal-hero::after,
.article-hero::after {
  content: "";
  position: absolute;
  right: 7vw;
  bottom: -120px;
  width: 350px;
  height: 350px;
  background: url("../brand/2026/dagga-boys-icon-terracotta.png") center / contain no-repeat;
  opacity: .11;
}
.hero-inner { position: relative; z-index: 1; width: min(1020px, 100%); margin: auto; }
.eyebrow,
.article-meta {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--display); }
h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(4rem, 8vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .9;
}
h1 em { color: var(--clay); font-weight: 400; }
.article-hero h1 { max-width: 1060px; font-size: clamp(4rem, 7.5vw, 7rem); }
.hero-deck {
  max-width: 720px;
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: 1.25rem;
}

.archive {
  width: min(var(--max), calc(100% - 64px));
  margin: auto;
  padding: 6rem 0 8rem;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.post-card {
  min-height: 460px;
  padding: 2.7rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
}
.post-card > img {
  width: calc(100% + 5.4rem);
  max-width: none;
  height: 190px;
  margin: -2.7rem -2.7rem 2rem;
  object-fit: cover;
  filter: saturate(.84) contrast(1.03);
}
.post-card:nth-child(3n + 2) { background: var(--stone); }
.post-card:nth-child(3n) { background: var(--sand); }
.post-card:nth-child(10) { background: var(--sand); }
.post-number {
  color: rgba(16, 37, 32, .58);
  font-family: var(--display);
  font-size: 4.5rem;
  line-height: 1;
}
.post-card h2 { margin: 1.5rem 0 1rem; font-size: 3rem; font-weight: 500; line-height: .98; }
.post-card p { color: var(--ink-soft); }
.post-card a:last-child {
  width: fit-content;
  margin-top: auto;
  padding-bottom: .2rem;
  border-bottom: 1px solid;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.article-shell {
  width: min(1120px, calc(100% - 64px));
  margin: auto;
  padding: 5rem 0 8rem;
  display: grid;
  grid-template-columns: minmax(0, 730px) minmax(230px, 300px);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}
.article-body > p:first-child {
  margin-top: 0;
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.35;
}
.article-body h2 { margin: 3.6rem 0 1rem; font-size: 3.2rem; font-weight: 600; line-height: 1; }
.article-body h3 { margin: 2.4rem 0 .7rem; font-size: 2rem; font-weight: 600; line-height: 1.1; }
.article-body p, .article-body li { color: var(--ink-soft); }
.article-body ul { padding-left: 1.2rem; }
.article-body li { margin-bottom: .55rem; padding-left: .25rem; }
.article-body blockquote {
  margin: 3rem 0;
  padding: .5rem 0 .5rem 2rem;
  border-left: 5px solid var(--clay);
  font-family: var(--display);
  font-size: 2.2rem;
  font-style: italic;
  line-height: 1.15;
}
.article-figure { margin: 2.8rem 0; }
.article-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article-figure figcaption {
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-figure figcaption a { text-underline-offset: .2em; }
.article-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.8rem 0;
}
.article-photo-grid .article-figure { margin: 0; }
.article-photo-grid .article-figure img { aspect-ratio: 4 / 3; }
.article-photo-grid .article-figure:first-child:last-child { grid-column: 1 / -1; }
.article-figure.portrait img { aspect-ratio: 4 / 5; object-position: center 35%; }
.article-figure.wide img { aspect-ratio: 16 / 8; }
.rate-table { width: 100%; margin: 2rem 0; border-collapse: collapse; }
.rate-table th, .rate-table td { padding: 1rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.rate-table th { background: var(--sand); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.rate-table td strong { font-family: var(--display); font-size: 1.35rem; }

.article-aside {
  position: sticky;
  top: 130px;
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--stone);
}
.article-aside img { width: 170px; margin: 0 auto 1.5rem; }
.article-aside h2 { margin: 0 0 .7rem; font-size: 2.1rem; line-height: 1; }
.article-aside p { color: var(--ink-soft); font-size: .92rem; }
.article-aside .button { width: 100%; margin-top: .7rem; }
.aside-rule { margin: 1.5rem 0; border: 0; border-top: 1px solid var(--line); }
.aside-list { margin: 0; padding: 0; list-style: none; }
.aside-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .82rem; }

.article-cta {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--sand);
}
.article-cta h2 { margin-top: 0; }

.source-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--sand);
  font-size: .86rem;
}

.related-posts {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.related-posts h2 { margin: 0 0 1.5rem; }

.related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.related-links a {
  min-height: 150px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-end;
  background: var(--sand);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.related-links a:hover { background: var(--stone); }

footer {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 32px 3rem;
  border-top: 3px solid var(--clay);
  background-color: var(--forest);
  background-image:
    linear-gradient(rgba(16, 37, 32, .86), rgba(16, 37, 32, .96)),
    url("../brand/2026/dagga-boys-pattern-terracotta.png");
  background-size: auto, 330px auto;
  color: var(--paper);
}
.footer-inner {
  width: min(var(--max), 100%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 440px);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.footer-inner img { width: 245px; height: auto; }
.footer-inner p {
  max-width: 560px;
  margin: 1rem 0 0;
  color: rgba(251, 248, 242, .68);
  font-size: .75rem;
  line-height: 1.55;
}
.footer-inner p a { color: var(--paper); text-underline-offset: .2em; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .85rem 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(251, 248, 242, .2);
}
.footer-links a {
  color: rgba(251, 248, 242, .72);
  font-size: .64rem;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--sand); }

@media (max-width: 980px) {
  body.menu-open { overflow: hidden; }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .main-nav { display: none; }
  .menu-button {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .05);
    color: var(--paper);
  }
  .menu-button span,
  .menu-button::before,
  .menu-button::after {
    content: "";
    display: block;
    width: 18px;
    border-top: 1px solid currentColor;
  }
  .mobile-menu {
    position: fixed;
    z-index: 19;
    inset: 0;
    display: none;
    place-content: center;
    gap: 1rem;
    padding: 7.5rem 2rem 2rem;
    overflow-y: auto;
    background: var(--forest);
    color: var(--paper);
    text-align: center;
  }
  .mobile-menu.open { display: grid; }
  .mobile-menu a {
    font-family: var(--display);
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1.05;
    text-decoration: none;
  }
  .mobile-menu a[aria-current="page"] { color: var(--sand); }
  .mobile-menu-action {
    margin-top: .5rem;
    padding: .8rem 1rem;
    border: 1px solid rgba(255, 255, 255, .34);
    font-family: var(--body) !important;
    font-size: .65rem !important;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .archive-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 340px; }
  .article-shell { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .related-links { grid-template-columns: 1fr; }
  .related-links a { min-height: 110px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 980px) and (max-height: 620px) {
  .mobile-menu {
    place-content: start center;
    padding-top: 6.5rem;
  }
}

@media (max-width: 620px) {
  body { font-size: 17px; line-height: 1.6; }
  .header-inner { width: calc(100% - 28px); min-height: 76px; grid-template-columns: 1fr auto; gap: .7rem; }
  .wordmark img { width: 172px; }
  .header-inner > .button { display: none; }
  .menu-button { width: 42px; height: 42px; }
  .mobile-menu { gap: .9rem; padding: 6.5rem 1.5rem 2rem; }
  .mobile-menu a { font-size: 1.5rem; }
  .journal-hero, .article-hero { padding: 4rem 20px 3.5rem; }
  h1, .article-hero h1 { font-size: clamp(2.75rem, 12vw, 3.5rem); line-height: 1.02; }
  .hero-deck { font-size: 1.08rem; }
  .archive { width: calc(100% - 40px); padding: 4rem 0 6rem; }
  .post-card { padding: 2rem 1.5rem; }
  .post-card > img { width: calc(100% + 3rem); height: 175px; margin: -2rem -1.5rem 1.5rem; }
  .post-card h2 { font-size: 2.6rem; }
  .article-shell { width: calc(100% - 40px); padding: 4rem 0 6rem; }
  .article-body h2 { font-size: 2.65rem; }
  .article-body blockquote { font-size: 1.8rem; }
  .article-photo-grid { grid-template-columns: 1fr; }
  .rate-table { font-size: .82rem; }
  .rate-table th, .rate-table td { padding: .7rem; }
  footer { padding: 2.75rem 20px 2.5rem; }
  .footer-inner { gap: 2.25rem; }
  .footer-inner img { width: 220px; }
  .footer-inner p { font-size: .72rem; }
  .footer-links { gap: .8rem 1.1rem; }
}

@media (max-width: 390px) {
  .wordmark img { width: 150px; }
}
