/* Topit guides — shared styles for the three prerendered content pages.
 *
 * These pages are static HTML in public/, NOT React routes. They are served by
 * an Amplify Console rewrite (/guides/<slug> -> /guides/<slug>.html, 200) that
 * sits ABOVE the SPA catch-all. See the header comment in each page.
 *
 * A SEPARATE .css FILE RATHER THAN INLINE <style>, and the reason is the same
 * rewrite rule: `css` IS in the catch-all's extension allowlist
 * (^[^.]+$|\.(?!(css|gif|ico|...)$)...), so this path falls through to real file
 * resolution and needs no Console rule of its own. That is exactly why
 * sitemap.xml has always worked and why an extensionless path never does.
 *
 * Tokens copied from src/theme.ts v3.0 (cream / warm-black). Copied rather than
 * imported because these files are outside the Vite graph by design — nothing
 * bundles them. If theme.ts changes, this does not follow automatically.
 */

:root {
  --cream: #FDEFD8;
  --ink: #0B0A07;
  --ink-60: rgba(11, 10, 7, 0.60);
  --border: rgba(11, 10, 7, 0.14);
  --accent: #9A3412;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 22px 64px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.masthead a.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.masthead a.cta {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.masthead a.cta:hover { text-decoration: underline; }

h1, h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(29px, 5vw, 40px);
  line-height: 1.18;
  margin: 0 0 26px;
}

h2 {
  font-size: clamp(21px, 3.2vw, 26px);
  line-height: 1.3;
  margin: 42px 0 14px;
}

p { margin: 0 0 18px; }

strong { font-weight: 700; }

a { color: var(--accent); }

.related {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-size: 19px;
  margin: 0 0 12px;
}

.related ul {
  margin: 0;
  padding-left: 20px;
}

.related li { margin-bottom: 8px; }

.foot {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-60);
}

.foot a { color: var(--ink); font-weight: 700; }
