:root {
  color-scheme: light;
  --ink: #16120f;
  --muted: #68615a;
  --paper: #f7f3ec;
  --panel: #fffdf9;
  --soft: #eee5d9;
  --line: #d8cdbf;
  --accent: #9b1c31;
  --accent-dark: #5e1020;
  --gold: #b68a3f;
  --green: #2f574c;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.66;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent), transparent 35%);
  text-underline-offset: 0.18em;
}

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

.header-inner,
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper), white 72%);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-copy strong {
  display: block;
  font-size: 23px;
  line-height: 1.05;
}

.brand-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav,
.footer-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.nav [data-global-lang] {
  all: unset;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.nav [data-global-lang]:hover {
  color: var(--ink);
  background: var(--soft);
}
.nav [data-global-lang][aria-pressed="true"] {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 88%);
}
.nav [data-global-lang] + [data-global-lang] {
  position: relative;
  margin-left: 2px;
}
.nav [data-global-lang] + [data-global-lang]::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.hero {
  padding: 66px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 44px;
  align-items: end;
}

.eyebrow {
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.06;
}

h1 {
  max-width: 910px;
  margin: 0 0 18px;
  font-size: clamp(44px, 6.8vw, 86px);
}

.dek {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 21px;
}

.issue-note {
  border-top: 3px solid var(--accent);
  padding-top: 18px;
}

.issue-note .brand-mark {
  margin-bottom: 16px;
}

.issue-note p {
  margin: 0;
  color: var(--green);
  font-size: 17px;
  line-height: 1.48;
}

.feature-section {
  padding: 34px 0 10px;
}

.feature-shell {
  border: 1px solid var(--line);
  background: var(--panel);
}

.feature-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.feature-header .eyebrow {
  margin: 0;
}

.slide-controls {
  display: flex;
  gap: 8px;
}

.slide-controls button,
.slide-dots button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.slide-controls button {
  width: 38px;
  height: 34px;
  border-radius: 4px;
  font-size: 20px;
  line-height: 1;
}

.feature-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: 470px;
}

.feature-slide img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.feature-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 4vw, 52px);
}

.feature-copy p {
  margin: 0 0 22px;
  color: var(--muted);
}

.feature-copy .subtitle {
  margin-top: -4px;
  color: var(--accent-dark);
}

.slide-dots {
  display: flex;
  gap: 8px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
}

.slide-dots button {
  min-width: 32px;
  height: 30px;
  border-radius: 999px;
  color: var(--muted);
}

.slide-dots button[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: white;
  background: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  text-decoration: none;
}

.section {
  padding: 46px 0;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.section-title h1,
.section-title h2 {
  margin: 0;
  font-size: 32px;
}

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

.post-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-card-body {
  padding: 18px;
}

.meta {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
}

.post-card h3 {
  margin: 7px 0 10px;
  font-size: 23px;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.post-card .subtitle {
  margin: -2px 0 10px;
  color: var(--accent-dark);
  font-size: 15px;
}

.article {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
}

.article h1,
.article > .meta,
.article .language-switcher {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.article h1 {
  font-size: clamp(36px, 6vw, 68px);
}

.article-content {
  margin-top: 32px;
}

.article-content > p,
.article-content > section > p,
.article-content > div > p {
  margin-top: 1.1em;
  margin-bottom: 1.1em;
}

.article-content * {
  max-width: 100%;
}

.article-content > :is(p, ul, ol, blockquote, h2, h3, h4, h5, h6, table),
.article-content > section > :is(p, ul, ol, blockquote, h2, h3, h4, h5, h6, table),
.article-content > div > :is(p, ul, ol, blockquote, h2, h3, h4, h5, h6, table) {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

[hidden] {
  display: none !important;
}

.language-switcher {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel), var(--paper) 24%);
}

.language-switcher button {
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--accent);
  color: white;
}

.article-content h2,
.article-content h3 {
  margin-top: 2em;
}

.article-content figure,
.article-content .wp-caption,
.article-content p:has(> img),
.article-content div:has(> img) {
  width: min(100%, 960px) !important;
  max-width: 960px !important;
  margin: 36px auto;
}

.article-content img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  max-height: min(720px, 76vh);
  object-fit: contain;
  background: var(--soft);
}

.article-content p:has(> img) {
  display: grid;
  gap: 18px;
  text-align: center;
}

.article-content p:has(> img) img + img {
  margin-top: 0;
}

.article-content figcaption,
.article-content .wp-caption-text {
  max-width: 780px;
  margin: 10px auto 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.article-content blockquote {
  border-left: 4px solid var(--gold);
  margin-left: 0;
  padding-left: 22px;
  color: var(--green);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 11px;
}

@media (max-width: 900px) {
  .header-inner,
  .hero-layout,
  .feature-slide,
  .section-title,
  .footer-inner {
    display: block;
  }

  .nav,
  .footer-nav {
    margin-top: 14px;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 42px;
  }

  .issue-note {
    margin-top: 28px;
  }

  .feature-slide img {
    min-height: 260px;
    aspect-ratio: 16 / 10;
  }

  .feature-copy {
    padding: 24px;
  }

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

  .article {
    width: min(100% - 24px, 1040px);
    padding: 34px 0;
  }

  .article h1 {
    font-size: 38px;
  }

  .article-content figure,
  .article-content .wp-caption,
  .article-content p:has(> img),
  .article-content div:has(> img) {
    margin: 28px auto;
  }
}
