@font-face {
  font-family: Prata;
  src: url("/assets/Prata-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #171422;
  --night-soft: #221b2d;
  --plum: #382336;
  --cream: #f8eddb;
  --cream-soft: #dbcbb8;
  --gold: #d9b77b;
  --line: rgba(235, 205, 159, .23);
  --content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: Prata, Georgia, serif; font-weight: 400; line-height: 1.22; }
h1 { font-size: clamp(2.5rem, 4.3vw, 4.5rem); letter-spacing: -.035em; margin: .35em 0; }
h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); letter-spacing: -.025em; margin: 0 0 .5em; }
h3 { font-size: 1.38rem; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
::selection { background: #af8557; color: #171422; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.container { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.eyebrow { color: var(--gold); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.muted { color: var(--cream-soft); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--night);
}
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 1.23rem/1.1 Prata, Georgia, serif; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font: 1.7rem/1 Georgia, serif; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.8vw, 36px); margin-left: auto; }
.nav a { font-size: .88rem; text-decoration: none; color: var(--cream-soft); }
.nav a:hover, .text-link:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--cream); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 7px; }
.header-cta { margin-left: 4px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 49px;
  padding: 12px 23px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: #241826;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background .18s, color .18s, transform .18s;
}
.button:hover { background: #efd09b; transform: translateY(-2px); }
.button-outline { background: transparent; color: var(--cream); }
.button-outline:hover { background: rgba(217, 183, 123, .12); color: var(--cream); }
.button-small { min-height: 40px; padding: 9px 16px; font-size: .78rem; }

.hero {
  overflow: hidden;
  background: radial-gradient(ellipse at 78% 30%, #523040 0, #2a1b31 40%, var(--night) 78%);
}
.hero-inner { display: grid; grid-template-columns: .91fr 1.09fr; align-items: start; gap: 5.5%; padding-block: 54px 72px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 22px; }
.hero-copy p { max-width: 480px; color: var(--cream-soft); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-photo { position: relative; margin: 0; }
.hero-photo::before { content: ""; position: absolute; inset: 16px -15px -16px 15px; border: 1px solid var(--gold); opacity: .7; }
.hero-photo img { width: 100%; height: auto; object-fit: contain; box-shadow: 0 22px 65px rgba(0,0,0,.43); }
.hero-photo figcaption { position: absolute; right: 13px; bottom: 13px; padding: 6px 11px; background: rgba(20, 14, 27, .84); color: var(--cream); font-size: .72rem; }
.offer-strip { border-block: 1px solid var(--line); background: #241b2d; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.offer-item { padding: 27px 30px; border-right: 1px solid var(--line); }
.offer-item:first-child { padding-left: 0; }
.offer-item:last-child { border-right: 0; }
.offer-item strong { display: block; color: var(--gold); font: 1.85rem Prata, Georgia, serif; }
.offer-item span { color: var(--cream-soft); font-size: .84rem; }

.section { padding-block: clamp(56px, 7vw, 88px); }
.section-soft { background: var(--night-soft); }
.section-heading { max-width: 680px; margin-bottom: 40px; }
.section-heading p { color: var(--cream-soft); }
.showcase { display: grid; grid-template-columns: 1.2fr .8fr; gap: 6%; align-items: center; }
.showcase-img { border: 1px solid var(--line); box-shadow: 0 22px 75px rgba(0,0,0,.3); }
.showcase-img img { width: 100%; height: auto; object-fit: contain; }
.showcase-copy { padding-block: 30px; }
.showcase-copy p { color: var(--cream-soft); }
.position { display: grid; grid-template-columns: 31px 1fr; gap: 12px; padding-block: 16px; border-top: 1px solid var(--line); }
.position:last-child { border-bottom: 1px solid var(--line); }
.position .number { color: var(--gold); font-family: Prata, Georgia, serif; }
.position strong { display: block; font-size: .96rem; }
.position span:last-child { color: var(--cream-soft); font-size: .83rem; }
.reading-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 16px; }
.reading-links a { color: var(--gold); text-underline-offset: 4px; }
.faq-list { max-width: 780px; }
.faq-list details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-size: 1rem; font-weight: 650; }
.faq-list details p { color: var(--cream-soft); font-size: .9rem; margin: 13px 0 0; }
.closing { text-align: center; background: radial-gradient(circle at center, #493045, var(--night) 68%); }
.closing h2, .closing p { max-width: 640px; margin-inline: auto; }
.closing p { color: var(--cream-soft); }
.site-footer { padding-block: 36px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { font-size: .8rem; color: var(--cream-soft); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

.page-hero { padding-block: 75px 55px; background: radial-gradient(ellipse at 70% 20%, #472e42, var(--night) 70%); }
.page-hero .container { max-width: var(--content); }
.page-hero h1 { font-size: clamp(2.25rem, 4.3vw, 4.15rem); }
.page-hero p { max-width: 700px; color: var(--cream-soft); font-size: 1.09rem; }
.breadcrumbs { margin-bottom: 18px; color: var(--cream-soft); font-size: .8rem; }
.breadcrumbs a { color: var(--gold); text-decoration: none; }
.article-layout { display: block; padding-block: 62px 110px; }
.article-body { width: 100%; min-width: 0; }
.article-body > p:first-child { font-size: 1.23rem; color: var(--cream); }
.article-body p, .article-body li { color: var(--cream-soft); }
.article-body strong { color: var(--cream); }
.article-body h2 { font-size: clamp(1.65rem, 2.7vw, 2.25rem); margin: 1.8em 0 .5em; }
.article-body h3 { margin: 1.5em 0 .45em; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 1.35em; }
.article-body li { margin-bottom: .45em; }
.article-body figure { margin: 34px 0; }
.article-body figure img { width: 100%; border: 1px solid var(--line); }
.article-body figcaption { margin-top: 8px; color: #b8a9b6; font-size: .78rem; }
.article-related { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-related h2 { margin: 0 0 12px; font-size: 1.15rem; }
.article-related p { margin: 0; }
.article-end-cta { margin: 26px 0 0; }
.article-aside { position: fixed; top: 50%; right: 24px; z-index: 10; width: 230px; max-height: calc(100vh - 110px); overflow: auto; transform: translateY(-50%); padding: 24px; border: 1px solid var(--line); background: #241d2d; }
.article-aside p { color: var(--cream-soft); font-size: .85rem; }
.article-aside .button { width: 100%; }
.text-link { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card-meaning-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.card-meaning { padding: 20px 0; border-top: 1px solid var(--line); }
.card-meaning h3 { color: var(--cream); }
.card-meaning p { margin: 0; }
.card-meaning-list .card-meaning:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .card-meaning-list { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 65px; gap: 38px; }
  .hero-copy { padding: 0; }
  .hero-photo { max-width: 710px; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-copy { padding: 0; }
}
@media (max-width: 1699px) {
  .article-aside { position: static; width: 100%; max-height: none; margin: 48px auto 0; overflow: visible; transform: none; }
}
@media (max-width: 700px) {
  .container { width: min(calc(100% - 36px), var(--content)); }
  .header-inner { min-height: 72px; flex-wrap: wrap; gap: 0 18px; padding-block: 12px; }
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 32px; height: 32px; font-size: 1.4rem; }
  .nav { order: 3; width: 100%; margin: 12px 0 0; flex-wrap: wrap; gap: 8px 18px; }
  .header-cta { margin-left: auto; }
  .hero-inner { padding-block: 56px 69px; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-item, .offer-item:first-child { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .offer-item:last-child { border-bottom: 0; }
  .offer-item strong { font-size: 1.4rem; }
  .page-hero { padding-block: 50px 32px; }
  .article-layout { padding-block: 38px 80px; }
}
@media (max-width: 440px) {
  body { font-size: 16px; }
  .header-cta { display: inline-flex; padding: 8px 10px; font-size: .72rem; white-space: nowrap; }
  .hero-actions .button { width: 100%; }
  .hero-photo::before { inset: 9px -9px -9px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* Card reference */
.wiki-hero { background: radial-gradient(ellipse at 12% 0, #352437, var(--night) 72%); }
.wiki-hero .container { max-width: 1060px; }
.wiki-hero p { max-width: 770px; color: var(--cream-soft); }
.wiki-page { padding-block: 42px 100px; }
.wiki-jump { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.wiki-jump a, .card-switch { border: 1px solid var(--line); border-radius: 30px; color: var(--cream); background: #2b2131; text-decoration: none; }
.wiki-jump a { padding: 8px 15px; font-size: .88rem; }
.wiki-jump a:hover, .card-switch:hover { border-color: var(--gold); color: var(--gold); }
.wiki-section { padding-top: 60px; scroll-margin-top: 120px; }
.wiki-section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.wiki-section-head h2 { margin: 6px 0; }
.wiki-section-head p { margin: 0; color: var(--cream-soft); }
.wiki-section-head > a, .wiki-related a, .wiki-suit-link h2 a { color: var(--gold); text-underline-offset: 5px; }
.wiki-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.wiki-tile { min-width: 0; padding: 12px 12px 18px; border: 1px solid var(--line); background: #211b2a; }
.wiki-tile h3 { margin: 14px 2px 7px; font: 1.25rem/1.3 Prata, Georgia, serif; }
.wiki-tile h3 a { text-decoration: none; }
.wiki-tile h3 a:hover { color: var(--gold); text-decoration: underline; }
.wiki-tile p { margin: 0 2px; color: var(--cream-soft); font-size: .86rem; line-height: 1.5; }
.card-compare { min-width: 0; }
.card-visual { display: grid; place-items: center; aspect-ratio: 2 / 3; overflow: hidden; background: #15121d; border: 1px solid var(--line); }
.card-visual img { width: 100%; height: 100%; object-fit: contain; }
.card-switch { display: block; min-height: 40px; width: 100%; margin-top: 8px; padding: 8px 10px; font: .78rem/1.2 system-ui, sans-serif; cursor: pointer; }
.card-switch[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.wiki-intro { max-width: 800px; margin: 0 0 42px; color: var(--cream-soft); font-size: 1.07rem; }
.wiki-suit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-block: 44px 100px; }
.wiki-suit-link { padding: 30px; border: 1px solid var(--line); background: #211b2a; }
.wiki-suit-link h2 { margin: 7px 0 13px; }
.wiki-suit-link p { color: var(--cream-soft); }
.wiki-detail { display: grid; grid-template-columns: minmax(250px, 390px) minmax(0, 690px); gap: clamp(30px, 6vw, 80px); padding-block: 55px 75px; }
.wiki-detail-visual .card-compare { max-width: 390px; }
.wiki-detail-visual .muted { margin-top: 12px; font-size: .8rem; }
.wiki-detail-copy h2 { font-size: clamp(1.55rem, 2.2vw, 2.05rem); margin: 1.45em 0 .4em; }
.wiki-detail-copy h2:first-child { margin-top: 0; }
.wiki-detail-copy p { max-width: 670px; color: var(--cream-soft); }
.wiki-related { margin-top: 42px; padding-top: 8px; border-top: 1px solid var(--line); }
.wiki-bottom { padding: 32px 0 105px; border-top: 1px solid var(--line); }
.wiki-bottom h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
.wiki-bottom p { max-width: 650px; color: var(--cream-soft); }
@media (max-width: 1000px) {
  .wiki-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .wiki-grid, .wiki-suit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wiki-detail { grid-template-columns: 1fr; padding-block: 34px 50px; }
  .wiki-detail-visual .card-compare { max-width: 310px; margin-inline: auto; }
  .wiki-detail-visual .muted { text-align: center; }
  .wiki-section { padding-top: 45px; }
  .wiki-section-head { align-items: start; flex-direction: column; }
  .wiki-tile { padding: 8px 8px 14px; }
  .wiki-tile h3 { font-size: 1.04rem; }
  .wiki-tile p { font-size: .79rem; }
  .card-switch { min-height: 44px; font-size: .74rem; }
  .wiki-suit-link { padding: 20px; }
}
@media (max-width: 410px) {
  .wiki-grid, .wiki-suit-grid { gap: 10px; }
  .wiki-tile p { display: none; }
  .wiki-suit-link { grid-column: 1 / -1; }
}
