:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #6d716f;
  --line: #e9ebe8;
  --surface: #ffffff;
  --soft: #f5f6f3;
  --charcoal: #050505;
  --accent: #171717;
  --button-bg: #171717;
  --badge-bg: #171717;
  --site-width: 1280px;
  --footer-start: #071111;
  --footer-end: #171717;
  --modal-surface: #ffffff;
  --radius: 8px;
  --font-sans: var(--gh-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  --font-heading: var(--gh-font-heading, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font-sans);
}

body[data-tone="Alpine"],
body.tone-alpine {
  --surface: #fbfcfa;
  --ink: #17211d;
  --muted: #66746f;
  --soft: #edf3ef;
  --accent: #21483d;
  --button-bg: #21483d;
  --badge-bg: #315f55;
  --line: #dce7df;
  --charcoal: #10251e;
  --footer-start: #10251e;
  --footer-end: #1f3d33;
  --modal-surface: #fbfffc;
}

body[data-tone="Coast"],
body.tone-coast {
  --surface: #f3fafc;
  --ink: #18212a;
  --muted: #65717b;
  --soft: #e5f2f5;
  --accent: #15576b;
  --button-bg: #15576b;
  --badge-bg: #1f6d83;
  --line: #d4e7ed;
  --charcoal: #0d2f39;
  --footer-start: #0d2f39;
  --footer-end: #123f4f;
  --modal-surface: #f8fdff;
}

body[data-tone="Forest"],
body.tone-forest {
  --surface: #f7fbf1;
  --ink: #161f18;
  --muted: #687364;
  --soft: #e8f1df;
  --accent: #2e4e2f;
  --button-bg: #2e4e2f;
  --badge-bg: #49683c;
  --line: #dbe7d1;
  --charcoal: #172916;
  --footer-start: #172916;
  --footer-end: #2e4326;
  --modal-surface: #fcfff7;
}

body[data-tone="Editorial"],
body.tone-editorial {
  --surface: #f7f7f5;
  --ink: #151515;
  --muted: #696969;
  --soft: #eeeeeb;
  --accent: #111111;
  --button-bg: #111111;
  --badge-bg: #3a3a3a;
  --line: #dfdfdc;
  --charcoal: #101010;
  --footer-start: #101010;
  --footer-end: #2a2a28;
  --modal-surface: #ffffff;
}

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

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.site-frame {
  min-height: 100vh;
  overflow: hidden;
  background: var(--surface);
}

body,
.site-frame,
.article-content,
.archive-section,
.landing-section {
  background-color: var(--surface);
}

.outer {
  padding-left: clamp(24px, 5vw, 72px);
  padding-right: clamp(24px, 5vw, 72px);
  max-width: var(--site-width);
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  position: relative;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: auto minmax(220px, 1fr) minmax(190px, 260px) auto;
  align-items: center;
  gap: 22px;
  padding-top: 18px;
  padding-bottom: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-logo,
.site-nav ul,
.footer-secondary ul,
.site-actions,
.search-trigger {
  display: flex;
  align-items: center;
}

.site-logo {
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
}

.site-logo img {
  display: block;
  max-height: 34px;
  width: auto;
}

.brand-mark {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.18);
}

body:not(.home-template) .brand-mark {
  background: var(--accent);
  color: #fff;
}

.brand-mark {
  background: var(--accent);
  color: #fff;
}

.site-nav ul {
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.site-search {
  min-width: 0;
}

.search-trigger {
  width: 100%;
  height: 38px;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.search-trigger svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.site-actions {
  justify-content: flex-end;
  gap: 10px;
  font-size: 13px;
}

.icon-button,
.ghost-button,
.solid-button {
  display: inline-grid;
  min-height: 36px;
  align-items: center;
  border: 0;
  color: inherit;
  background: transparent;
}

.icon-button {
  width: 36px;
  place-items: center;
  border-radius: 50%;
}

.solid-button {
  padding: 0 18px;
  color: #111;
  font-weight: 800;
  border-radius: 6px;
  background: #fff;
}

.solid-button {
  color: #fff;
  background: var(--button-bg);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  background: #1f2d2e;
}

.hero-track {
  display: flex;
  transition: transform 520ms ease;
}

.home-hero {
  position: relative;
  flex: 0 0 100%;
  min-height: 520px;
  height: 54vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(21, 48, 58, 0.66), transparent 42%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 48%),
    url("https://images.unsplash.com/photo-1488197047962-b48492212cda?auto=format&fit=crop&w=1800&q=85") center / cover;
  background-position: center;
  background-size: cover;
}

.hero-slider--split {
  background: var(--soft);
}

.hero-slider--split .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  min-height: 620px;
  height: auto;
  padding: 138px clamp(24px, 5vw, 72px) 70px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.26)),
    var(--soft) !important;
}

.hero-slider--split .hero-copy {
  position: relative;
  left: auto;
  bottom: auto;
  width: min(640px, 100%);
  color: var(--ink);
}

.hero-slider--split .hero-copy h1 {
  font-size: clamp(42px, 5.8vw, 82px);
  line-height: 0.98;
}

.hero-slider--split .hero-copy p {
  color: var(--muted);
  font-size: 17px;
}

.hero-slider--split .outline-on-dark {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.hero-slider--split .solid-button {
  color: #fff;
  background: var(--button-bg);
}

.hero-feature-image {
  display: none;
}

.hero-slider--split .hero-feature-image {
  position: relative;
  display: block;
  min-height: 430px;
  overflow: hidden;
  border-radius: 80px 8px 8px 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28)),
    var(--hero-image) center / cover;
  box-shadow: 0 30px 90px rgba(17, 24, 20, 0.2);
}

.hero-slider--split .hero-feature-image::after {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 62px 5px 5px 5px;
}

.hero-slider--split .hero-meta {
  right: clamp(24px, 5vw, 72px);
  bottom: 28px;
  color: var(--ink);
}

.hero-slider--split .hero-meta span {
  color: var(--muted);
}

.hero-slider--split .hero-dots button {
  border-color: var(--ink);
}

.hero-slider--split .hero-dots button.is-active {
  background: var(--ink);
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 5vw, 72px);
  bottom: 58px;
  width: min(500px, calc(100% - 48px));
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 6px 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
  background: color-mix(in srgb, var(--badge-bg) 78%, transparent);
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.outline-on-dark {
  display: inline-grid;
  min-height: 36px;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.hero-copy h1,
.promo h2,
.article-hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
  font-family: var(--font-heading);
}

.hero-copy p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.5;
}

.hero-meta {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-align: right;
}

.hero-meta img,
.author img,
.author-header img {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-meta strong,
.hero-meta span {
  display: block;
}

.hero-meta span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.hero-dots {
  position: absolute;
  left: clamp(24px, 5vw, 72px);
  bottom: 30px;
  display: flex;
  gap: 5px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 50%;
}

.hero-dots button.is-active {
  background: #fff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

.hero-arrow--prev {
  left: 18px;
}

.hero-arrow--next {
  right: 18px;
}

.content-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.featured-section {
  padding-top: 34px;
}

.post-grid.featured-grid {
  display: grid;
  grid-template-columns: repeat(var(--featured-count, 3), minmax(0, 1fr));
  margin-top: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.post-grid.featured-grid > .post-card {
  min-width: 0;
}

.featured-grid .post-card h3 {
  font-size: clamp(16px, 1.5vw, 21px);
}

.featured-grid--4 .post-card h3,
.featured-grid--6 .post-card h3 {
  font-size: clamp(15px, 1.15vw, 18px);
}

.featured-grid--6 {
  gap: 18px 12px;
}

.featured-grid--6 .post-meta,
.featured-grid--6 .author {
  font-size: 12px;
}

.featured-grid--6 .post-card p {
  -webkit-line-clamp: 1;
}

.newsletter-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding: 28px;
  color: #fff;
  border-radius: var(--radius);
  background: var(--accent);
}

.newsletter-section .pill {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.newsletter-section h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 28px;
}

.newsletter-section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-head h2 {
  margin: 0 0 9px;
  font-size: 27px;
  font-family: var(--font-heading);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4f5552;
  font-size: 13px;
  white-space: nowrap;
}

.sort-control select {
  height: 38px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 22px 0;
}

.tabs a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  color: #323533;
  font-size: 13px;
  font-weight: 800;
}

.tabs a.active,
.tabs a:hover {
  background: var(--soft);
}

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

.post-card,
.mini-card {
  min-width: 0;
}

.post-image,
.mini-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d7ddd9;
}

.post-image {
  aspect-ratio: 1.55 / 1;
}

.mini-image {
  aspect-ratio: 1.42 / 1;
}

.post-image img,
.mini-image img,
.promo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover img,
.mini-card:hover img {
  transform: scale(1.035);
}

.image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 150px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #8eabb8, #a65f3d);
}

.post-card .pill,
.mini-card .pill {
  position: absolute;
  top: 10px;
  left: 10px;
  min-height: 24px;
  font-size: 10px;
}

.post-meta,
.mini-meta {
  margin: 12px 0 8px;
  color: #737875;
  font-size: 13px;
}

.post-card h3,
.mini-card h3 {
  margin: 0 0 7px;
  line-height: 1.12;
  font-family: var(--font-heading);
}

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

.mini-card h3 {
  font-size: 17px;
}

.post-card p,
.mini-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.42;
  -webkit-box-orient: vertical;
}

.post-card p {
  font-size: 14px;
  -webkit-line-clamp: 2;
}

.mini-card p {
  font-size: 13px;
  -webkit-line-clamp: 2;
}

.author {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 800;
}

.side-column {
  padding-top: 2px;
}

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

.pagination {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 36px 0 30px;
  color: #414541;
  font-size: 13px;
}

.pagination a,
.pagination .active {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
}

.pagination .active,
.pagination a:hover {
  background: var(--soft);
}

.promo {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1f2d2e;
}

.promo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.34);
}

.promo h2 {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(310px, calc(100% - 38px));
  margin: 0;
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%);
}

.footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1.65fr) repeat(3, minmax(150px, 0.82fr)) minmax(190px, 0.9fr);
  gap: clamp(24px, 4.5vw, 56px);
  padding-top: 54px;
  padding-bottom: 42px;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, var(--footer-start) 0%, var(--charcoal) 46%, var(--footer-end) 100%);
  max-width: none;
}

.footer::before {
  position: absolute;
  left: clamp(24px, 5vw, 72px);
  right: clamp(24px, 5vw, 72px);
  top: 0;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.16);
}

.footer h3,
.footer h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-brand {
  max-width: 360px;
}

.footer p,
.footer a {
  display: block;
  margin: 0 0 11px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.48;
}

.footer-brand p {
  max-width: 320px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
}

.footer a:hover,
.footer-auth-link:hover {
  color: #fff;
}

.footer-column {
  min-width: 0;
  padding-top: 4px;
}

.footer-primary-cta {
  display: inline-grid;
  min-height: 42px;
  align-items: center;
  margin-top: 14px;
  padding: 0 16px;
  color: #101010;
  border: 0;
  border-radius: 6px;
  background: #f4f7f4;
  font-size: 13px;
  font-weight: 800;
}

.footer .site-logo {
  display: flex;
  width: fit-content;
  margin-bottom: 16px;
  color: #fff;
}

.footer .site-logo img {
  max-height: 34px;
}

.footer .brand-mark {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.subscribe-box {
  display: flex !important;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  padding-left: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  width: 100%;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.subscribe-box:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.subscribe-box strong {
  align-self: stretch;
  display: grid;
  width: 96px;
  place-items: center;
  background: #f4f7f4;
  color: #111;
  font-size: 12px;
}

.legal {
  margin: 18px 0 0 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  text-align: right;
  font-size: 12px !important;
}

.footer-auth-link {
  display: block;
  margin: 8px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  border: 0;
  background: transparent;
  font-size: 13px;
  text-align: left;
}

.footer-secondary ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.simple-header {
  position: relative;
  display: grid;
  min-height: 430px;
  align-items: end;
  padding-top: 120px;
  padding-bottom: 56px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(21, 48, 58, 0.45), rgba(0, 0, 0, 0.64)),
    url("https://images.unsplash.com/photo-1488197047962-b48492212cda?auto=format&fit=crop&w=1800&q=85") center / cover;
}

.article-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  min-height: 560px;
  padding: 150px clamp(24px, 5vw, 72px) 70px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 246, 243, 0.98)),
    var(--soft);
}

.article-hero.has-image {
  overflow: hidden;
}

.article-hero::before {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  content: "";
  background: var(--surface);
}

.article-hero__inner {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  padding-bottom: 10px;
}

.article-hero__image {
  position: relative;
  z-index: 1;
  min-height: 440px;
  overflow: hidden;
  border-radius: 8px 8px 8px 80px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.28)),
    var(--post-image) center / cover;
  box-shadow: 0 30px 90px rgba(17, 24, 20, 0.22);
}

.article-hero__image::after {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 5px 5px 5px 62px;
  pointer-events: none;
}

.simple-header {
  min-height: 320px;
}

.simple-header > div {
  width: min(820px, 100%);
}

.simple-header p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.55;
}

.article-hero .pill {
  color: #fff;
}

.article-hero h1 {
  max-width: 760px;
  margin: 16px 0 16px;
  color: var(--ink);
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 0.98;
}

.article-hero p {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.56;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.article-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
}

.article-content {
  width: min(760px, calc(100% - 48px));
  margin: 56px auto;
  color: #242624;
  font-size: 18px;
  line-height: 1.75;
}

.member-cta,
.article-footer,
.related-posts {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto 44px;
}

.member-cta {
  padding: 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.member-cta h2 {
  margin: 12px 0 8px;
  font-family: var(--font-heading);
}

.member-cta p {
  margin: 0;
  color: var(--muted);
}

.article-footer {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--button-bg));
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58)),
    var(--soft);
  box-shadow: 0 22px 70px rgba(17, 24, 20, 0.08);
}

.article-footer__head {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.article-footer__head h2 {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

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

.article-taxonomy > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(17, 24, 20, 0.04);
}

.article-taxonomy span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.reaction-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.reaction-row button,
.share-actions button,
.share-actions a,
.auth-tabs button {
  display: inline-grid;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
}

.reaction-row button {
  min-height: 74px;
  align-content: center;
  gap: 5px;
  text-align: left;
}

.reaction-row button strong,
.reaction-row button span {
  display: block;
}

.reaction-row button strong {
  font-size: 14px;
}

.reaction-row button span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reaction-row button.is-active {
  color: #fff;
  border-color: var(--button-bg);
  background: var(--button-bg);
}

.reaction-row button.is-active span {
  color: rgba(255, 255, 255, 0.78);
}

.related-posts {
  width: min(1040px, calc(100% - 48px));
}

.related-posts .post-grid {
  margin-top: 20px;
}

.article-content img {
  height: auto;
  border-radius: var(--radius);
}

.article-content .kg-width-wide {
  width: min(1040px, calc(100vw - 48px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-content .kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-content .kg-width-full img {
  width: 100%;
  border-radius: 0;
}

.article-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.article-content h2,
.article-content h3 {
  line-height: 1.15;
}

.comments-panel {
  padding-top: 8px;
  padding-bottom: 56px;
}

.comments-panel__inner {
  width: min(760px, 100%);
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.comments-panel h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 26px;
}

.comments-panel p {
  margin: 0 0 20px;
  color: var(--muted);
}

.comments-panel__notice {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--soft);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 16, 15, 0.58);
  backdrop-filter: blur(4px);
}

.theme-modal {
  z-index: 100;
  width: min(520px, calc(100% - 32px));
  overflow: hidden;
  padding: 38px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-top: 6px solid var(--button-bg);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--modal-surface) 96%, #fff), color-mix(in srgb, var(--soft) 82%, #fff)),
    var(--modal-surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.theme-modal::backdrop {
  background: rgba(0, 0, 0, 0.44);
}

.modal-close {
  float: right;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin: -18px -16px 8px 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(17, 24, 20, 0.08);
}

.modal-kicker {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 10px;
  color: #fff;
  border-radius: 999px;
  background: var(--badge-bg);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 38px 24px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.auth-tabs button.is-active {
  color: #fff;
  border-color: var(--button-bg);
  background: var(--button-bg);
}

.auth-tabs button {
  border-color: transparent;
}

.auth-pane {
  display: none;
}

.auth-pane.is-active {
  display: grid;
  gap: 16px;
}

.auth-pane h2,
.share-modal h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.1;
}

.auth-pane p,
.share-status {
  margin: 0;
  color: var(--muted);
}

.auth-pane label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.auth-pane input {
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  outline: 0;
}

.auth-pane input:focus {
  border-color: var(--button-bg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--button-bg) 16%, transparent);
}

.auth-success {
  display: none;
}

.success .auth-success {
  display: block;
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.share-actions button,
.share-actions a {
  min-height: 52px;
  justify-content: start;
  padding: 0 16px;
  background: #fff;
}

.share-actions button:hover,
.share-actions a:hover {
  border-color: var(--button-bg);
}

.comments-modal {
  width: min(900px, calc(100% - 32px));
}

.comments-modal .comments-panel {
  padding: 0;
}

.comments-modal .comments-panel__inner {
  width: 100%;
  padding-top: 10px;
  border-top: 0;
}

.archive-section {
  padding-top: 40px;
  padding-bottom: 50px;
}

.archive-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.archive-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.archive-toolbar h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 28px;
}

.archive-toolbar p {
  margin: 0;
  color: var(--muted);
}

.archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-empty {
  margin: 28px 0 0;
  padding: 22px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.landing-section {
  padding-top: 48px;
  padding-bottom: 64px;
}

.membership-grid,
.authors-grid,
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-panel,
.membership-card,
.contact-form,
.author-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.topic-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.topic-card > a {
  display: block;
  aspect-ratio: 1.62 / 1;
  overflow: hidden;
  background: #d7ddd9;
}

.topic-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.topic-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #8eabb8, #a65f3d);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.topic-card div {
  padding: 18px;
}

.topic-count {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.topic-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.12;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.feature-panel {
  padding: 24px;
}

.panel-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  border-radius: 50%;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.feature-panel h2,
.membership-card h2,
.contact-copy h2,
.author-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  line-height: 1.12;
}

.feature-panel p,
.membership-card p,
.contact-copy p,
.author-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.membership-card {
  width: min(760px, 100%);
  margin: 28px auto 0;
  padding: 30px;
  text-align: center;
}

.membership-card .pill {
  margin-bottom: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.outline-button {
  display: inline-grid;
  min-height: 36px;
  align-items: center;
  padding: 0 18px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

.contact-copy {
  padding-top: 8px;
}

.contact-details {
  display: grid;
  gap: 5px;
  margin-top: 22px;
}

.contact-details span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-details a,
.contact-details strong {
  color: var(--ink);
  font-size: 17px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #333633;
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  outline: 0;
}

.contact-form input,
.contact-form select {
  height: 42px;
  padding: 0 12px;
}

.contact-form textarea {
  resize: vertical;
  padding: 12px;
}

.contact-form .solid-button {
  justify-self: start;
  color: #fff;
  background: var(--accent);
}

.author-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 18px;
}

.author-card__image {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #8eabb8, #a65f3d);
  font-weight: 800;
  text-align: center;
}

.author-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card h2 {
  font-size: 20px;
}

.author-count {
  display: inline-flex;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.author-header {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
}

.author-header img {
  width: 88px;
  height: 88px;
}

.error-page .solid-button {
  display: inline-grid;
  margin-top: 16px;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 24px;
    right: 24px;
    display: none;
    padding: 18px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
  }

  .nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    display: grid;
    gap: 14px;
  }

  .site-search {
    grid-column: span 3;
  }

  .content-area {
    grid-template-columns: 1fr;
  }

  .article-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 118px;
  }

  .article-hero__image {
    min-height: 360px;
    order: -1;
    border-radius: var(--radius);
  }

  .hero-slider--split .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-slider--split .hero-feature-image {
    min-height: 340px;
    order: -1;
    border-radius: var(--radius);
  }

  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .outer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .site-actions {
    grid-column: span 2;
    justify-content: flex-start;
  }

  .site-search {
    grid-column: span 2;
  }

  .home-hero {
    min-height: 560px;
    height: auto;
  }

  .hero-meta {
    left: 24px;
    right: auto;
    bottom: 26px;
    text-align: left;
  }

  .hero-dots {
    display: none;
  }

  .content-area {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .section-head {
    display: block;
  }

  .archive-toolbar,
  .contact-layout {
    display: block;
  }

  .archive-controls {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .sort-control {
    margin-top: 18px;
  }

  .post-grid,
  .mini-list,
  .footer,
  .archive-grid,
  .membership-grid,
  .authors-grid,
  .topics-grid {
    grid-template-columns: 1fr;
  }

  .post-grid.featured-grid {
    grid-template-columns: repeat(var(--featured-count, 3), minmax(240px, 1fr));
  }

  .newsletter-section {
    display: block;
  }

  .newsletter-section .solid-button {
    margin-top: 18px;
  }

  .member-cta,
  .article-footer,
  .related-posts {
    width: calc(100% - 32px);
  }

  .contact-form {
    margin-top: 24px;
  }

  .footer {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .legal {
    text-align: left;
  }

  .article-content {
    width: calc(100% - 32px);
    margin: 36px auto;
    font-size: 17px;
  }

  .article-hero {
    padding: 96px 16px 42px;
  }

  .article-hero h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .article-hero p {
    font-size: 17px;
  }

  .article-hero__image {
    min-height: 270px;
  }

  .article-taxonomy,
  .reaction-row,
  .share-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-slider--split .home-hero {
    padding: 104px 16px 44px;
  }

  .hero-slider--split .hero-feature-image {
    min-height: 260px;
  }

  .theme-modal {
    padding: 26px 18px 22px;
  }

  .auth-tabs {
    margin-right: 42px;
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .post-grid,
  .mini-list,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-grid.featured-grid {
    grid-template-columns: repeat(var(--featured-count, 3), minmax(220px, 1fr));
  }
}
