/* Gentleman Savvy: warm black, gold leaf, editorial serif. */
:root {
  --bg: #0b0a08;
  --bg-2: #110f0b;
  --panel: #16130e;
  --panel-2: #1c1811;
  --text: #ece5d5;
  --soft: #cfc6b2;
  --muted: #9d937f;
  --gold: #d4af37;
  --gold-hi: #f4dc92;
  --gold-lo: #9c7a26;
  --line: rgba(212, 175, 55, 0.18);
  --line-strong: rgba(212, 175, 55, 0.42);
  --gold-grad: linear-gradient(135deg, #f7e4a3 0%, #d4af37 42%, #a8842a 70%, #f0d488 100%);
  --display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 76rem;
  --measure: 42rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(212, 175, 55, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(156, 122, 38, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 1.1rem/1.75 var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Fine film grain over everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--gold-hi); text-decoration-color: rgba(212, 175, 55, 0.45); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
a:hover { color: #fff3c9; text-decoration-color: var(--gold); }
::selection { background: rgba(212, 175, 55, 0.35); color: #fff; }
img { max-width: 100%; }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 8, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.top-inner, .foot-inner { max-width: var(--wide); margin: 0 auto; padding: 0.9rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); }
.brand-mark {
  display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1px solid var(--line-strong); font: 700 1.25rem/1 var(--display);
  background: radial-gradient(circle at 30% 25%, rgba(244, 220, 146, 0.25), transparent 60%), var(--panel);
  color: var(--gold-hi); box-shadow: 0 0 24px rgba(212, 175, 55, 0.15) inset;
}
.brand-word { font: 600 1.45rem/1 var(--display); letter-spacing: 0.02em; }
.brand-word em { font-style: italic; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top nav { display: flex; gap: 1.6rem; }
.top nav a { font: 500 0.78rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); text-decoration: none; }
.top nav a:hover { color: var(--gold-hi); }

main { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Shared type ---------- */
.eyebrow, .kicker {
  font: 600 0.72rem/1.2 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 0.75rem; margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: var(--gold-grad); }
.kicker { gap: 0.5rem; flex-wrap: wrap; }
.kicker span { color: var(--gold-lo); font-size: 0.6rem; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; color: #f6efdf; letter-spacing: 0.005em; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 0.75rem; }
.masters-sub, .hero-sub, .standfirst { color: var(--soft); }

.btn {
  display: inline-block; padding: 0.95rem 1.7rem; border-radius: 999px; text-decoration: none;
  font: 600 0.8rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: #1a1407; background: var(--gold-grad); background-size: 200% 200%;
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.55), 0 0 0 1px rgba(255, 236, 170, 0.35) inset;
  transition: transform 0.25s, box-shadow 0.25s, background-position 0.6s;
}
.btn:hover { color: #1a1407; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 40px -12px rgba(212, 175, 55, 0.7), 0 0 0 1px rgba(255, 236, 170, 0.5) inset; }
.btn-ghost { background: transparent; color: var(--gold-hi); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.btn-ghost:hover { color: #fff3c9; background: rgba(212, 175, 55, 0.08); box-shadow: 0 0 0 1px var(--gold) inset; }

/* ---------- Home ---------- */
.hero { position: relative; padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(3.5rem, 8vw, 6rem); max-width: 56rem; }
.hero-glow {
  position: absolute; inset: -20% -30% auto auto; width: 42rem; height: 42rem; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.06) 55%, transparent);
  filter: blur(10px); animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.65; transform: scale(1.05); } }
.hero h1 { position: relative; font-size: clamp(2.8rem, 7.5vw, 5.6rem); line-height: 1.02; margin: 0 0 1.4rem; font-weight: 600; }
.hero h1 em { font-style: italic; font-weight: 500; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { position: relative; font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 40rem; margin: 0 0 2.2rem; }
.hero-cta { position: relative; display: flex; gap: 1rem; flex-wrap: wrap; }

.featured, .latest, .masters, .more { padding: 3.5rem 0; border-top: 1px solid var(--line); }
.more-link { margin-top: 2rem; font: 600 0.8rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.more-link a { text-decoration: none; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 2rem; }
.card {
  position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 60px -30px rgba(212, 175, 55, 0.45); }
.card-img { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--panel-2); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s ease; filter: saturate(0.9) contrast(1.05); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 10, 8, 0.75)); }
.card:hover .card-img img { transform: scale(1.05); }
.card-ph { display: block; height: 100%; background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.25), transparent 60%), var(--panel-2); }
.card-text { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card h3, .card h2 { margin: 0 0 0.6rem; font-size: 1.55rem; }
.card h3 a, .card h2 a { color: #f6efdf; text-decoration: none; }
.card h3 a::after, .card h2 a::after { content: ""; position: absolute; inset: 0; }
.card .kicker { margin-bottom: 0.7rem; }
.dek { color: var(--soft); font-size: 1rem; line-height: 1.6; margin: 0 0 1.1rem; flex: 1; }
.byline { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 0; font: 500 0.78rem/1.4 var(--sans); letter-spacing: 0.06em; color: var(--muted); }
.byline > * + *::before { content: "\25C6"; color: var(--gold-lo); font-size: 0.55rem; margin-right: 1.1rem; vertical-align: 0.15em; }

.card-big { display: grid; grid-template-columns: 1.25fr 1fr; }
.card-big .card-img { aspect-ratio: auto; min-height: 26rem; }
.card-big .card-img::after { background: linear-gradient(90deg, transparent 60%, rgba(17, 15, 11, 0.95)); }
.card-big .card-text { padding: clamp(1.8rem, 4vw, 3rem); justify-content: center; }
.card-big h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.card-big .dek { font-size: 1.12rem; flex: 0; }

/* ---------- Masters strip ---------- */
.masters { text-align: center; padding: 5rem 0 4.5rem; }
.masters .eyebrow { justify-content: center; }
.masters .eyebrow::after { content: ""; width: 2.25rem; height: 1px; background: var(--gold-grad); }
.masters-sub { max-width: 38rem; margin: 0 auto 2.5rem; }
.names { list-style: none; padding: 0; margin: 0 auto; max-width: 60rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0; }
.names li { font: italic 500 clamp(1.25rem, 2.4vw, 1.7rem)/1.6 var(--display); color: var(--soft); padding: 0 1.1rem; position: relative; }
.names li + li::before { content: "\25C6"; position: absolute; left: -0.3rem; top: 50%; transform: translateY(-50%); font-size: 0.55rem; color: var(--gold); font-style: normal; }

/* ---------- Page heads ---------- */
.page-head { padding: clamp(3.5rem, 9vw, 6rem) 0 3rem; max-width: 50rem; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); margin: 0 0 1rem; }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; background: var(--gold-grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(212, 175, 55, 0.8); }
.post-head { max-width: 52rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) 0 2.2rem; text-align: center; }
.post-head .kicker { justify-content: center; }
.post-head h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.04; margin: 0 0 1.2rem; }
.standfirst { font: italic 400 clamp(1.15rem, 2vw, 1.4rem)/1.55 var(--serif); max-width: 40rem; margin: 0 auto 1.6rem; }
.post-head .byline { justify-content: center; }
.hero-fig { margin: 0 auto 3.5rem; max-width: 64rem; position: relative; }
.hero-fig img { width: 100%; height: auto; border-radius: 14px; display: block; border: 1px solid var(--line); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(212, 175, 55, 0.05); }
.post-grid, .faq, .more { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.more { max-width: var(--wide); }

.tldr {
  position: relative; margin: 0 0 2.6rem; padding: 1.5rem 1.7rem; border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.03));
  border: 1px solid var(--line-strong);
}
.tldr .eyebrow { margin-bottom: 0.6rem; }
.tldr p:last-child { margin: 0; font-size: 1.08rem; color: #f3ead6; }

.body { color: #e3dccb; }
.body > p:first-of-type::first-letter {
  float: left; font: 700 4.6rem/0.82 var(--display); margin: 0.35rem 0.6rem 0 0;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.body h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin: 3.4rem 0 1rem; padding-top: 1.6rem; position: relative; }
.body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 3.5rem; height: 2px; background: var(--gold-grad); }
.body h3 { font-size: 1.6rem; margin: 2.4rem 0 0.7rem; color: var(--gold-hi); }
.body h4 { font: 600 0.82rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 2rem 0 0.6rem; }
.body p { margin: 0 0 1.35rem; }
.body strong { color: #fbf3df; font-weight: 600; }
.body ul, .body ol { padding-left: 1.4rem; margin: 0 0 1.6rem; }
.body li { margin: 0.45rem 0; padding-left: 0.3rem; }
.body ul { list-style: none; padding-left: 0.2rem; }
.body ul > li { position: relative; padding-left: 1.6rem; }
.body ul > li::before { content: "\25C6"; position: absolute; left: 0; top: 0.1rem; color: var(--gold); font-size: 0.7rem; }
.body ol li::marker { color: var(--gold); font: 600 1rem var(--display); }
.body blockquote {
  margin: 2.2rem 0; padding: 0.4rem 0 0.4rem 1.6rem; border-left: 2px solid var(--gold);
  font: italic 500 1.55rem/1.45 var(--display); color: #f6edd6;
}
.body pre {
  margin: 1.8rem 0; padding: 1.3rem 1.5rem; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--gold);
  border-radius: 10px; white-space: pre-wrap; font: italic 400 1.05rem/1.7 var(--serif); color: #f0e7d2;
}
.body code { font: 0.9em ui-monospace, Consolas, monospace; background: var(--panel); padding: 0.1rem 0.35rem; border-radius: 4px; }
.body pre code { background: none; padding: 0; font: inherit; }
.body figure { margin: 2.6rem -2rem; }
.body figure img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); }
figcaption { margin-top: 0.7rem; text-align: center; font: italic 400 0.95rem/1.5 var(--serif); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 2rem 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.body table { border-collapse: collapse; width: 100%; font: 400 0.95rem/1.55 var(--sans); }
.body th { text-align: left; padding: 0.9rem 1rem; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); background: rgba(212, 175, 55, 0.07); border-bottom: 1px solid var(--line-strong); }
.body td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--soft); }
.body tr:last-child td { border-bottom: 0; }
.body td:first-child { color: #f3ead6; font-weight: 600; white-space: nowrap; }
.body hr { border: 0; height: 1px; background: var(--line-strong); margin: 3rem 0; }

.faq { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.faq h2 { font-size: 2.4rem; margin: 0 0 1.4rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font: 600 1.35rem/1.35 var(--display); color: #f3ead6; transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%); font: 300 1.8rem/1 var(--sans); color: var(--gold); transition: transform 0.3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--gold-hi); }
.faq details p { margin: 0 0 1.3rem; color: var(--soft); }

.empty { color: var(--muted); font-style: italic; padding: 2rem 0; }

/* ---------- Footer ---------- */
.foot { margin-top: 5rem; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.04)); }
.foot-inner { flex-wrap: wrap; padding-top: 2.6rem; padding-bottom: 2.6rem; align-items: flex-start; }
.foot-brand { display: flex; gap: 1rem; align-items: flex-start; max-width: 30rem; }
.foot-brand p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.foot-brand strong { font: 600 1.3rem var(--display); color: var(--text); }
.foot nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot nav a { font: 500 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); text-decoration: none; }
.fine { flex-basis: 100%; margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font: 400 0.8rem/1.6 var(--sans); color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .card-big { grid-template-columns: 1fr; }
  .card-big .card-img { min-height: 0; aspect-ratio: 16 / 10; }
  .card-big .card-img::after { background: linear-gradient(180deg, transparent 55%, rgba(17, 15, 11, 0.85)); }
  .body figure { margin: 2rem 0; }
}
@media (max-width: 600px) {
  body { font-size: 1.04rem; }
  .top nav { gap: 1rem; }
  .top nav a:nth-child(3) { display: none; }
  .brand-word { font-size: 1.25rem; }
  .grid { grid-template-columns: 1fr; }
  .body td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
