/* SaleAmaze — Noir editorial */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,700;1,9..144,400&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

.noir {
  --bg: #09090b;
  --surface: #121215;
  --elev: #18181c;
  --border: #27272a;
  --muted: #a1a1aa;
  --text: #fafafa;
  --gold: #f59e0b;
  --gold-dim: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.22);
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --shell: min(100% - 2rem, 72rem);
  --r: 14px;
  --r-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 420px at 80% -10%, var(--gold-glow), transparent 55%),
    radial-gradient(600px 360px at 10% 30%, rgba(120, 120, 200, 0.06), transparent 45%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0H0v60' fill='none' stroke='%2327272a' stroke-width='0.5' opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.shell-header,
main,
.shell-footer {
  position: relative;
  z-index: 1;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -200px;
  top: 0;
  background: var(--gold);
  color: #000;
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 300;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

a {
  color: var(--gold);
  text-underline-offset: 3px;
}

a:hover {
  color: #fbbf24;
}

.shell-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(14px);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.35rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand:hover {
  color: var(--text);
}

.brand-glyph {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--gold), #ea580c);
  box-shadow: 0 0 24px var(--gold-glow);
}

.brand-text {
  font-family: var(--serif);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.nav .btn-gold {
  color: #09090b;
}

.burger {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--elev);
  cursor: pointer;
  position: relative;
}

.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1.1rem;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.burger::before {
  top: calc(50% - 5px);
}

.burger::after {
  top: calc(50% + 3px);
  box-shadow: 0 8px 0 var(--text);
}

.burger[aria-expanded='true']::before {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.burger[aria-expanded='true']::after {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: none;
}

@media (max-width: 760px) {
  .burger {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav .btn-gold {
    text-align: center;
    justify-content: center;
  }

  .shell-header {
    position: relative;
  }
}

.breadcrumb-shell {
  padding: 0.65rem 0 0;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.breadcrumb a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.bc-sep {
  opacity: 0.45;
  user-select: none;
}

.breadcrumb [aria-current='page'] {
  color: var(--text);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, filter 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-gold {
  background: linear-gradient(180deg, #fbbf24 0%, var(--gold) 100%);
  color: #09090b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35), 0 8px 28px var(--gold-glow);
}

.btn-gold:hover {
  filter: brightness(1.06);
  color: #09090b;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-small {
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
}

/* Hero home */
.hero {
  padding: 4rem 0 4.5rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.hero-k {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  line-height: 1.04;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 38ch;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: auto -30% -40% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  pointer-events: none;
}

.hero-card h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 1rem;
  position: relative;
}

.pill-grid {
  display: grid;
  gap: 0.65rem;
  position: relative;
}

.pill-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pill-grid a:hover {
  border-color: var(--gold-dim);
  background: rgba(245, 158, 11, 0.06);
}

.pill-grid span:last-child {
  color: var(--gold);
  font-size: 1.1rem;
}

.pill-grid small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.pill-grid .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Sections */
.sect {
  padding: 3rem 0;
}

.sect-edge {
  border-block: 1px solid var(--border);
  background: rgba(18, 18, 21, 0.65);
}

.sect-h {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.sect-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.sect-bar a {
  font-weight: 700;
  text-decoration: none;
}

.sect-intro {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 1.5rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.card {
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.15s ease, transform 0.12s ease;
  height: 100%;
}

.card:hover {
  border-color: #52525b;
  transform: translateY(-2px);
}

.card .tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.2;
}

.card h3 a {
  text-decoration: none;
  color: var(--text);
}

.card h3 a:hover {
  color: var(--gold);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card .go {
  margin-top: auto;
  padding-top: 0.25rem;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Article */
.pg-head {
  padding: 2rem 0 1.5rem;
}

.pg-k {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.pg-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  margin: 0 0 0.65rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.pg-dek {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 48ch;
  margin: 0;
  line-height: 1.55;
}

.byline {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--muted);
}

.byline strong {
  color: var(--text);
}

.art-wrap {
  display: grid;
  gap: 1.75rem;
  padding: 1.5rem 0 4rem;
}

@media (min-width: 1024px) {
  .art-wrap {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 2.5rem;
    align-items: start;
  }

  .art-aside {
    position: sticky;
    top: 5rem;
  }
}

@media (max-width: 1023px) {
  .art-aside {
    order: -1;
  }
}

.shell-wide {
  width: min(100% - 2rem, 84rem);
  margin-inline: auto;
}

.prose {
  max-width: 42rem;
  font-size: 1.04rem;
}

.prose.wide {
  max-width: 48rem;
}

.prose > p:first-of-type {
  font-size: 1.12rem;
  color: #d4d4d8;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 2.25rem 0 0.6rem;
  scroll-margin-top: 6rem;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: 1.08rem;
  margin: 1.35rem 0 0.4rem;
  color: #d4d4d8;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
  color: #d4d4d8;
}

.prose li {
  margin: 0.35rem 0;
}

.callout {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.95rem;
}

.callout strong {
  color: var(--gold);
}

/* TOC */
.toc {
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.15rem;
}

.toc-h {
  margin: 0 0 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.toc-ul a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.toc-ul a:hover {
  color: var(--gold);
}

.related {
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--r);
}

.related-h {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.related-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.related-ul a {
  font-weight: 700;
  text-decoration: none;
}

.related-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.faq {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.faq-h {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.faq-row {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 0.5rem;
  background: var(--surface);
  padding: 0;
}

.faq-row summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.95rem 1rem;
  list-style: none;
}

.faq-row summary::-webkit-details-marker {
  display: none;
}

.faq-row p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

/* Home FAQ block */
.home-faq-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .home-faq-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
}

.form label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form input,
.form textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--elev);
  color: var(--text);
}

.form textarea {
  min-height: 8rem;
}

/* Footer */
.shell-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: #050506;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  padding: 2.5rem 0;
}

.footer-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.footer-tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 20ch;
}

.footer-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.footer-ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-ul a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-ul a:hover {
  color: var(--gold);
}

.footer-mini {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
  max-width: 26ch;
}

.foot-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.foot-form input {
  flex: 1 1 140px;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--elev);
  color: var(--text);
  font: inherit;
}

.footer-base {
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-base p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-base a {
  font-weight: 600;
}

/* Guides list */
.glist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.glist li {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.glist a {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}

.glist a:hover {
  color: var(--gold);
}

.glist .hint {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.35rem;
  font-family: var(--font);
  font-weight: 400;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
