/* ============================================
   Lucky Ace — design tokens
   ============================================ */
:root {
  --bg-void: #14002b;
  --bg-deep: #1a003a;
  --bg-panel: #29014c;
  --bg-panel-raised: #38105e;
  --line-soft: rgba(232, 184, 75, 0.16);
  --line-faint: rgba(255, 255, 255, 0.08);

  --gold: #e3b24f;
  --gold-soft: #f2d998;
  --spade: #7c5cff;

  --text-primary: #f6f2fb;
  --text-muted: #b6a3cf;
  --text-faint: #7e6a9a;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --content-width: 1120px;
  --radius-lg: 28px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-void);
  background-image:
    radial-gradient(ellipse 900px 500px at 12% -10%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(227, 178, 79, 0.08), transparent 55%);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--gold);
  color: #1a003a;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================
   Suit mark (brand glyph, used sparingly)
   ============================================ */
.suit {
  display: inline-block;
  transform: translateY(1px);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 0, 43, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-faint);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.brand .suit-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--bg-panel-raised), var(--bg-panel));
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  color: var(--gold);
}

.brand .suit-mark svg { width: 17px; height: 17px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--text-primary); }

.main-nav a.current { color: var(--gold-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Buttons / pills
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #251140;
}
.btn-gold:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-soft);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-faint);
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line-faint);
  border-radius: 999px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--line-faint);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.06;
  font-weight: 600;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.hero p.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--bg-panel-raised) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-art svg { width: 72%; height: 72%; }

/* ============================================
   Section headings
   ============================================ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 34px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  margin: 0;
}

.section-head .section-note {
  color: var(--text-faint);
  font-size: 15px;
}

/* ============================================
   Posts grid (asymmetric: one featured, one standard)
   ============================================ */
.posts-section { padding: 72px 0 96px; }

.posts-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 1px solid var(--line-faint);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  border-color: var(--line-soft);
  transform: translateY(-3px);
}

.post-card .card-art {
  position: relative;
  padding: 40px 32px;
  background: linear-gradient(150deg, var(--bg-panel-raised), var(--bg-panel));
  border-bottom: 1px solid var(--line-faint);
}

.post-card.featured .card-art { min-height: 220px; display: flex; align-items: flex-end; }
.post-card:not(.featured) .card-art { min-height: 150px; display: flex; align-items: flex-end; }

.card-art .suit-big {
  position: absolute;
  top: 24px;
  right: 28px;
  color: var(--line-soft);
}
.post-card.featured .card-art .suit-big svg { width: 46px; height: 46px; }
.post-card:not(.featured) .card-art .suit-big svg { width: 34px; height: 34px; }

.card-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.post-card.featured .card-body h3 { font-size: 28px; }
.post-card:not(.featured) .card-body h3 { font-size: 21px; }

.card-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.card-body p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15.5px;
}

.card-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--text-faint);
  font-size: 13.5px;
  margin-top: auto;
  padding-top: 10px;
}

.card-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); }

.card-link {
  margin-top: 6px;
  color: var(--gold-soft);
  font-weight: 600;
  font-size: 14.5px;
}

/* ============================================
   Guidance / "how to choose" strip
   ============================================ */
.guidance {
  padding: 80px 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guidance-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--line-faint);
}

.guidance-card .suit-icon {
  color: var(--gold);
  margin-bottom: 16px;
}
.guidance-card .suit-icon svg { width: 24px; height: 24px; }

.guidance-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 0 0 8px;
  font-weight: 600;
}

.guidance-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
}

/* ============================================
   Article page
   ============================================ */
.article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--line-faint);
}

.article-header .wrap { max-width: 760px; }

.breadcrumb {
  font-size: 14px;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--gold-soft); }

.article-header h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 20px;
}

.article-header .lede {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--text-faint);
  font-size: 14px;
}

.article-band {
  height: 120px;
  margin: 0 0 0;
  background: linear-gradient(120deg, var(--bg-panel-raised), var(--bg-deep) 70%);
  border-bottom: 1px solid var(--line-faint);
  position: relative;
  overflow: hidden;
}

.article-band .suit-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 40px;
  padding-left: 6%;
  opacity: 0.5;
}
.article-band .suit-row svg { width: 26px; height: 26px; color: var(--line-soft); }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 40px;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin: 44px 0 16px;
}

.article-body p {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 17px;
}

.article-body p strong { color: var(--text-primary); }

.article-body ul {
  color: var(--text-muted);
  padding-left: 0;
  margin: 0 0 24px;
  list-style: none;
}

.article-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 16.5px;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.pull-note {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: 4px 14px 14px 4px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--text-primary);
  line-height: 1.5;
}

.spotlight-box {
  margin: 40px 0;
  padding: 30px;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--bg-panel-raised), var(--bg-panel));
  border: 1px solid var(--line-soft);
}

.spotlight-box h3 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 0 0 10px;
}

.spotlight-box p { margin: 0 0 18px; }

.disclaimer-box {
  margin: 48px 0 0;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: var(--bg-deep);
  border: 1px solid var(--line-faint);
  font-size: 13.5px;
  color: var(--text-faint);
  line-height: 1.65;
}

.disclaimer-box strong { color: var(--text-muted); }

.article-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px 80px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-faint);
  padding-top: 36px;
}

.article-nav .nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 46%;
}
.article-nav .nav-link .dir { font-size: 13px; color: var(--text-faint); }
.article-nav .nav-link .title { font-family: var(--serif); font-size: 17px; color: var(--text-primary); }
.article-nav .nav-link:hover .title { color: var(--gold-soft); }
.article-nav .nav-link.next { text-align: right; align-items: flex-end; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--line-faint);
  padding: 48px 0 40px;
}

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

.footer-note {
  color: var(--text-faint);
  font-size: 13.5px;
  max-width: 52ch;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text-muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 340px; margin: 0 auto; }
  .posts-grid { grid-template-columns: 1fr; }
  .guidance-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .article-nav { flex-direction: column; }
  .article-nav .nav-link.next { text-align: left; align-items: flex-start; }
  .article-nav .nav-link { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
