:root {
  --ink: #17150f;
  --muted: #6d6a63;
  --gold: #d69200;
  --gold-dark: #b97700;
  --cream: #fffdf8;
  --line: #e8e3d9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: #111;
  border-radius: 5px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.header-inner {
  width: min(100% - 40px, 1160px);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  width: max-content;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1;
  text-decoration: none;
}

.wordmark span:last-child { color: var(--gold); }

.site-header nav a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
}

.article-shell {
  width: min(100% - 40px, 860px);
  margin: 0 auto;
  padding: 64px 0 88px;
}

.article-page {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 50px rgba(38, 31, 16, .06);
}

.article-header,
.article-content {
  width: min(100% - 48px, 700px);
  margin-inline: auto;
}

.article-header { padding: 56px 0 38px; }

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--gold-dark);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.article-category {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-header h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .88rem;
}

.article-excerpt {
  margin: 26px 0 0;
  color: #504c44;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.5vw, 1.4rem);
  line-height: 1.55;
}

.article-cover {
  width: min(100% - 48px, 780px);
  margin: 0 auto 48px;
  overflow: hidden;
  background: #f5f1e9;
  border-radius: 10px;
}

.article-cover img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-content {
  padding-bottom: 64px;
  color: #29261f;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.82;
}

.article-content p { margin: 0 0 1.45em; }

.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin: 1.7em 0 .65em;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.article-content h2 { font-size: 2rem; }
.article-content h3 { font-size: 1.65rem; }
.article-content h4 { font-size: 1.35rem; }

.article-content ul,
.article-content ol {
  margin: 0 0 1.5em;
  padding-left: 1.55em;
}

.article-content li { margin-bottom: .45em; padding-left: .2em; }

.article-content a {
  color: var(--gold-dark);
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
}

.article-inline-image {
  margin: 2.2em 0;
}

.article-inline-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  background: #f5f1e9;
  border-radius: 10px;
}

.article-inline-image figcaption {
  margin-top: .75em;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: .84rem;
  line-height: 1.5;
  text-align: center;
}

.article-support {
  width: min(100% - 48px, 700px);
  margin: -18px auto 56px;
  padding: 26px 28px;
  background: #fffaf0;
  border: 1px solid #ead9b8;
  border-radius: 10px;
}

.article-support h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
}

.article-support p {
  margin: 8px 0 17px;
  color: #5e5a53;
  font-size: .92rem;
}

.article-support-button {
  min-height: 42px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #dfa600, #c88100);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(191, 124, 0, .18);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}

.article-support-button:hover,
.article-support-button:focus-visible {
  background: linear-gradient(135deg, #e5ae09, #bd7800);
}

a:focus-visible {
  outline: 3px solid rgba(214, 146, 0, .42);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-footer {
  padding: 26px 20px;
  color: #77726a;
  background: #fff;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .82rem;
}

.site-footer p { margin: 0; }

@media (max-width: 640px) {
  .site-header { height: 68px; }
  .header-inner { width: min(100% - 28px, 1160px); }
  .wordmark { font-size: 1.75rem; }
  .article-shell {
    width: min(100% - 20px, 860px);
    padding: 28px 0 52px;
  }
  .article-page { border-radius: 10px; }
  .article-header,
  .article-content { width: min(100% - 32px, 700px); }
  .article-header { padding: 34px 0 28px; }
  .back-link { margin-bottom: 24px; }
  .article-header h1 { font-size: clamp(2.35rem, 12vw, 3.45rem); }
  .article-cover {
    width: 100%;
    margin-bottom: 34px;
    border-radius: 0;
  }
  .article-content { padding-bottom: 42px; font-size: 1.02rem; }
  .article-support {
    width: min(100% - 32px, 700px);
    margin: -8px auto 34px;
    padding: 22px 20px;
  }
  .article-support-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
