/* Laws of Power: Daily Deck landing page. Same palette as the privacy and
   support pages (go-redirects, src/vv_pages.js) and the store screenshots:
   near-black, warm white, gold. Dark only: every image on the page is dark. */

:root {
  --bg: #0b0b0a;
  --panel: #131311;
  --fg: #e8e4da;
  --muted: #a39e92;
  --gold: #c9a54a;
  --gold-hi: #e3c574;
  --rule: #2a2a27;
  /* The app's display face is Bodoni Moda. Apple devices carry Bodoni 72 and
     Didot, which read the same; elsewhere the page falls back to a serif. */
  --display: "Bodoni Moda", "Bodoni 72", "Bodoni MT", Didot, "Didot LT STD", Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Hanken Grotesk", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--body);
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--gold-hi); }
a:hover { color: var(--fg); }

h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--gold-hi);
  margin: 0;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.5rem, 8vw, 4.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); line-height: 1.15; }

.eyebrow {
  margin: 0 0 0.8rem;
  font: 600 0.72rem/1.4 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.lede { font-size: 1.12rem; max-width: 34rem; margin: 1.4rem 0 0; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }

/* Hero */

.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 3rem;
}

.hero-art { display: flex; justify-content: center; }

.hero-art img {
  width: min(64vw, 280px);
  height: auto;
  border-radius: 34px;
  border: 1px solid var(--rule);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 6px #050505;
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; padding: 5.5rem 0 4.5rem; }
  .hero-art img { width: 300px; }
}

/* Store buttons: text, no badge artwork */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.8rem 0 0.9rem;
}

.store-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  /* Both buttons share one row on a phone and stop growing on a desk. */
  flex: 1 1 9.5rem;
  max-width: 13rem;
  min-height: 3.5rem;
  padding: 0.5rem 1.3rem;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: #000;
  color: var(--fg);
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease;
}

.store-button:hover,
.store-button:focus-visible { background: var(--gold); color: #0b0b0a; }

.store-button-small { font-size: 0.7rem; letter-spacing: 0.04em; opacity: 0.8; }
.store-button-name { font-size: 1.22rem; font-weight: 600; }

/* Sections */

main > section { padding: 3rem 0; border-top: 1px solid var(--rule); }

.section-heading { max-width: 40rem; margin-bottom: 1.8rem; }

/* Screenshot strip: swipe sideways on a phone, all six in view on a desk */

.screenshot-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 20px 16px;
  margin: 0 -20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshot-strip figure {
  flex: 0 0 auto;
  width: min(62vw, 230px);
  margin: 0;
  scroll-snap-align: center;
}

.screenshot-strip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--rule);
}

@media (min-width: 1100px) {
  .screenshot-strip { overflow: visible; margin: 0; padding: 0; }
  .screenshot-strip figure { flex: 1 1 0; width: auto; }
}

/* Feature list */

.features {
  display: grid;
  gap: 1.4rem 2.5rem;
  margin: 0;
}

.features dt {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--fg);
}

.features dd { margin: 0.2rem 0 0; color: var(--muted); }

@media (min-width: 700px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: 1fr 1fr 1fr; } }

/* Panels */

.panels { display: grid; gap: 16px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
}

.panel h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.panel p { margin: 0; color: var(--muted); }

@media (min-width: 860px) { .panels { grid-template-columns: repeat(3, 1fr); } }

/* Closing */

.closing { text-align: center; }
.closing .store-buttons { justify-content: center; }

.disclaimer { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }

/* Footer */

footer { border-top: 1px solid var(--rule); padding: 1.6rem 0 2.2rem; }

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold-hi); }
footer p { margin: 0 0 0 auto; color: var(--muted); }

/* Not-found page */

.notfound { text-align: center; padding: 22vh 0 18vh; }
.notfound p { margin: 1.2rem 0 0; }

/* Top bar on the article pages */

.topnav { border-bottom: 1px solid var(--rule); }

.topnav .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.4rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.topnav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.topnav a:hover { color: var(--gold-hi); }
.topnav .brand { font-family: var(--display); font-size: 1.1rem; color: var(--gold-hi); }
.topnav nav { display: flex; gap: 1.3rem; }

/* Articles: one column, sized for reading */

.article { max-width: 44rem; padding-top: 3rem; }
.article h1 { font-size: clamp(2.1rem, 6.2vw, 3.3rem); line-height: 1.08; }
.article h2 { font-size: clamp(1.45rem, 3.8vw, 1.85rem); margin: 2.6rem 0 0.7rem; }
.article .lede { font-size: 1.2rem; max-width: none; color: var(--fg); }
.article p, .article li { font-size: 1.06rem; }
.article ul { padding-left: 1.2rem; }
.article li { margin: 0.45rem 0; }
.article li::marker { color: var(--gold); }
.article cite { font-style: italic; }
.article strong { color: var(--gold-hi); font-weight: 600; }

.card-box { margin: 3rem 0 0; }
.card-box h2 { font-size: 1.3rem; margin: 1.2rem 0 0.4rem; }
.card-box .eyebrow { margin: 0; }
.card-box p { color: var(--fg); }
.card-box .pull { font-family: var(--display); font-size: 1.35rem; line-height: 1.35; font-style: italic; }

.article .closing,
.article .related { border-top: 1px solid var(--rule); margin-top: 3rem; padding: 2.6rem 0 0; }
.article .closing h2 { margin-top: 0; }
.article .closing p { max-width: 34rem; margin-left: auto; margin-right: auto; }

.related ul { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.related li { margin: 0; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.related li a { display: block; font-family: var(--display); font-size: 1.3rem; text-decoration: none; }
.related li span { display: block; color: var(--muted); font-size: 0.98rem; margin-top: 0.15rem; }
.related h2 { margin-top: 0; }
.related.hub { border-top: 0; margin-top: 1.5rem; padding-top: 0; }

.article .disclaimer { margin-top: 3rem; }

/* The article's text size must not swallow the small labels. */
.article .eyebrow { font-size: 0.72rem; }
.article p.small { font-size: 0.86rem; }

/* The lines written to be quoted: the answer up top, three takeaways, the Q&A */

.article .byline { margin: 0.9rem 0 0; }

.takeaways {
  margin: 2rem 0 0;
  padding: 1.1rem 1.3rem 1.2rem;
  border-left: 3px solid var(--gold);
  background: var(--panel);
  border-radius: 0 12px 12px 0;
}

.takeaways h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.takeaways ul { margin: 0; }

.faq h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.22rem;
  color: var(--fg);
  margin: 1.6rem 0 0.3rem;
}

.faq p { margin: 0; color: var(--muted); }
