/*
 * "Still" chrome for guide articles.
 * Mirrors praze-website/web/src/styles/tokens.css + site.css so guide
 * pages match the rest of the marketing site. Fonts are self-hosted
 * from /fonts — no CDN or external requests.
 */
:root {
  /* Palette (Still tokens) */
  --ground: #faf8f3;
  --ink: #1e1b2e;
  --violet: #5a50c7;
  --gold: #c7913d;
  --card: #ffffff;
  --muted: #5c5668;
  --muted-small: #77718a; /* AA small text on light surfaces */
  --gold-deep: #8a6420; /* AA small gold text on light surfaces */
  --line: rgba(30, 27, 46, 0.08);
  --outline: rgba(30, 27, 46, 0.2);

  /* Type */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shape */
  --radius-pill: 999px;
  --radius-card: 18px;
  --shadow-card: 0 8px 30px rgba(30, 27, 46, 0.06);

  /* Layout */
  --content-width: 680px;
}

/* Self-hosted type: Newsreader (variable, normal + italic),
   Instrument Sans (variable), IBM Plex Mono (400/500). */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/Newsreader-Variable.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/Newsreader-Italic-Variable.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
}

img,
svg {
  max-width: 100%;
}

::selection {
  background: rgba(90, 80, 199, 0.18);
}

em {
  font-style: italic;
  font-weight: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-shell {
  width: min(100% - clamp(2rem, 8vw, 6rem), 1160px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* --- Header / nav (mirrors site.css) --- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--ink);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.nav-links > a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links > a:hover {
  color: var(--ink);
}

.nav-links > a.nav-cta {
  background: var(--ink);
  color: var(--ground);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.nav-cta:hover {
  background: #2c2842;
}

/* --- Article layout --- */
.page {
  padding: 3.5rem 0 0;
}

.article {
  width: min(100% - clamp(2rem, 8vw, 6rem), var(--content-width));
  margin-inline: auto;
}

.article h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

.answer {
  margin: 1.1rem 0 2.25rem;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted);
}

.article-header {
  margin-bottom: 2.25rem;
}

.article-header .answer {
  margin-bottom: 0;
}

.article-header + .article-body > :first-child {
  margin-top: 0;
}

/* Long-form typography: Newsreader headings over Instrument Sans body. */
.article h2 {
  margin: 2.4rem 0 0.8rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.2;
  font-optical-sizing: auto;
}

.article h3 {
  margin: 1.8rem 0 0.6rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
  font-optical-sizing: auto;
}

.article p,
.article li {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.article li {
  margin-bottom: 0.6rem;
}

.article ul,
.article ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.article strong {
  color: var(--ink);
  font-weight: 600;
}

.article a {
  color: var(--violet);
  font-weight: 600;
  text-decoration: none;
}

.article a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- FAQ --- */
.faq {
  margin-top: 3rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq details p {
  margin: 0.75rem 0 0;
}

/* --- Related links --- */
.related {
  margin-top: 3rem;
}

.related ul {
  list-style: none;
  padding: 0;
}

.related li {
  margin-bottom: 0.5rem;
}

/* --- CTA --- */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 3rem;
}

.article .cta-link,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  background: var(--ink);
  color: var(--ground);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.article .cta-link:hover,
.cta-link:hover {
  background: #2c2842;
  text-decoration: none;
}

/* --- Disclaimer --- */
.disclaimer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.article .disclaimer p {
  font-size: 13px;
  color: var(--muted-small);
}

/* --- Footer (mirrors site.css) --- */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 4.5rem;
  padding: 36px 0;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

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

.footer-brand .brand-name {
  font-size: 19px;
}

.footer-tag {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-small);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links a {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
  transition: color 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .site-nav {
    padding: 18px 0;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links > a:not(.nav-cta):not(.nav-record) {
    display: none;
  }

  .page {
    padding-top: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
  }
}
