/* Public pages outside the app (the guides). Same look as the landing:
   night background, gold, Bebas Neue display over DM Sans. These pages load the
   fonts with a plain stylesheet link, which the site's security policy allows. */
:root {
  --night: #05060c;
  --well: #0c0e18;
  --gold: #c89b0c;
  --gold-hi: #e8b420;
  --bone: #ede8dc;
  --ash: #a29e94;
  --rule: rgba(237, 232, 220, 0.12);
  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --sans: "DM Sans", system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font: 400 18px/1.6 var(--sans);
}
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; margin-right: auto; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { font: 400 26px/1 var(--display); letter-spacing: 0.04em; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.site-nav a { color: var(--ash); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--bone); }
@media (max-width: 560px) { .site-nav .nav-extra { display: none; } }

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--night);
  font: 600 16px/1 var(--sans);
  padding: 14px 22px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--gold-hi); color: var(--night); }
.btn-quiet {
  background: transparent;
  color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.btn-quiet:hover { background: transparent; color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold); }
.site-nav .btn, .site-nav .btn:hover { padding: 10px 16px; font-size: 15px; color: var(--night); }

/* Display type */
.display {
  font: 400 clamp(48px, 8vw, 84px)/0.95 var(--display);
  letter-spacing: 0.01em;
  margin: 0;
}
.lede { font-size: 20px; color: var(--ash); max-width: 38em; margin: 20px 0 0; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); margin-top: 96px; padding: 32px 0 48px; font-size: 15px; color: var(--ash); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; }
.site-foot strong { color: var(--bone); font-weight: 600; margin-right: auto; }
.site-foot a { color: var(--ash); text-decoration: none; }
.site-foot a:hover { color: var(--bone); }

/* Closing call to action at the end of every guide */
.closer { margin-top: 72px; padding: 32px; background: var(--well); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--rule); }
.closer h2 { font: 400 40px/1 var(--display); letter-spacing: 0.01em; margin: 0 0 12px; }
.closer p { color: var(--ash); max-width: 36em; margin: 0 0 24px; }
@media (max-width: 560px) { .closer { padding: 24px 20px; } }

/* Guides */
.article { max-width: 44em; padding: 56px 0 0; }
.article .display { font-size: clamp(44px, 7vw, 72px); }
.byline { color: var(--ash); font-size: 15px; margin: 18px 0 0; }
.article h2 { font: 600 27px/1.25 var(--sans); margin: 52px 0 12px; }
.article h3 { font: 600 20px/1.35 var(--sans); margin: 32px 0 8px; }
.article p, .article li { color: #d9d4c8; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: 8px 0; }
.article strong { color: var(--bone); }
.article .source { font-size: 15px; color: var(--ash); }

/* Example texts, set the way a customer sees them */
.sms { margin: 14px 0 20px; display: grid; gap: 6px; }
.sms p {
  justify-self: start;
  max-width: 30em;
  margin: 0;
  padding: 12px 16px;
  background: #1a1d2b;
  color: var(--bone);
  border-radius: 18px 18px 18px 6px;
  font-size: 17px;
  line-height: 1.45;
}
.sms .when { padding: 0 0 0 4px; background: none; color: var(--ash); font-size: 14px; border-radius: 0; }

.article .guide-list { list-style: none; padding: 0; margin: 40px 0 0; max-width: 46em; }
.guide-list li { padding: 26px 0; border-top: 1px solid var(--rule); }
.guide-list li:last-child { border-bottom: 1px solid var(--rule); }
.guide-list a { font: 600 23px/1.3 var(--sans); color: var(--bone); text-decoration: none; }
.guide-list a:hover { color: var(--gold-hi); }
.guide-list p { color: var(--ash); margin: 6px 0 0; }

/* Inside a guide, the closing panel keeps its own heading, not the article's */
.article .closer h2 { font: 400 40px/1 var(--display); letter-spacing: 0.01em; margin: 0 0 12px; }
@media (max-width: 560px) { .site-foot strong { flex-basis: 100%; } }
