/* Shared styles for generated pages (guides, tools). The home page keeps its own inline styles. */
:root {
  --paper: #F7F2EA; --paper-2: #EFE7DB; --card: #FFFFFF; --ink: #161412; --muted: #6B625A;
  --line: rgba(22, 20, 18, 0.14); --tomato: #E8513A; --sun: #F2C14E; --ok: #1F7A4D;
  --display: "Fraunces", Georgia, serif; --body: "Manrope", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14110F; --paper-2: #221D19; --card: #1D1916; --ink: #F5EFE6; --muted: #B4A99D;
    --line: rgba(245, 239, 230, 0.14); --tomato: #FF6A50; --sun: #F5C95E; --ok: #4CC38A;
  }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 18px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

header.site { padding: 20px 0; border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 24px/1 var(--display); text-decoration: none; }
.logo img { border-radius: 9px; }
nav.top { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 15px; }
nav.top a { text-decoration: none; }
nav.top a:hover { text-decoration: underline; }
.btn { display: inline-block; font: 800 15px/1 var(--body); text-decoration: none; padding: 12px 18px; border-radius: 999px; background: var(--tomato); color: #fff; border: 0; cursor: pointer; }
@media (max-width: 640px) { nav.top .hide-sm { display: none; } }

.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
article h1, .page h1 { font: 600 clamp(36px, 5vw, 54px)/1.08 var(--display); letter-spacing: -0.015em; margin: 14px 0 16px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 30px; }
article h2 { font: 600 30px/1.2 var(--display); margin: 44px 0 12px; letter-spacing: -0.01em; }
article h3 { font: 800 20px/1.35 var(--body); margin: 28px 0 8px; }
article p, article ul, article ol { margin: 0 0 18px; }
article ul, article ol { padding-left: 22px; }
article li { margin: 6px 0; }
article blockquote { margin: 18px 0; padding: 14px 18px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; }
article blockquote p:last-child { margin: 0; }
article code { font-family: var(--body); background: var(--paper-2); padding: 2px 6px; border-radius: 6px; font-size: 0.95em; }
article strong { font-weight: 800; }
article hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
article table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 16px; }
article th, article td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

.cta { margin: 48px 0; padding: 28px; border-radius: 22px; background: var(--ink); color: var(--paper); }
.cta h2 { font: 600 28px/1.2 var(--display); margin: 0 0 8px; color: var(--paper); }
.cta p { color: color-mix(in srgb, var(--paper) 80%, transparent); margin-bottom: 18px; }
.cta form { display: flex; gap: 10px; flex-wrap: wrap; }
.cta input[type=email] { flex: 1; min-width: 200px; font: 500 16px/1 var(--body); padding: 15px 18px; border-radius: 999px; border: 0; }
.hp { position: absolute; left: -10000px; }
.note { font-size: 14px; margin-top: 10px; min-height: 20px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 800; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--tomato); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

.related { margin: 40px 0; }
.related h2 { font: 600 24px/1.2 var(--display); margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { display: block; text-decoration: none; padding: 20px; border-radius: 18px; background: var(--card); border: 1.5px solid var(--line); }
.card:hover { border-color: var(--tomato); }
.card b { display: block; font: 600 21px/1.25 var(--display); margin-bottom: 6px; }
.card span { color: var(--muted); font-size: 15px; line-height: 1.5; }

footer.site { margin-top: 64px; padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }

/* Opener generator */
.tool { background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; padding: 22px; margin: 8px 0 28px; }
.tool label { font-weight: 800; display: block; margin-bottom: 8px; }
.tool textarea { width: 100%; min-height: 140px; font: 400 16px/1.5 var(--body); padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); resize: vertical; }
.heat { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.heat button { font: 800 14px/1 var(--body); padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.heat button[aria-pressed=true] { background: var(--tomato); border-color: var(--tomato); color: #fff; }
.results { display: grid; gap: 10px; margin-top: 18px; }
.line { text-align: left; font: 500 16px/1.45 var(--body); padding: 14px 16px; border-radius: 16px; background: var(--paper-2); border: 1.5px solid transparent; color: var(--ink); cursor: pointer; }
.line:hover { border-color: var(--tomato); }
.line.copied { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--paper-2)); }
.line.copied em::after { content: "  ✓ copied"; color: var(--ok); letter-spacing: 0; text-transform: none; font-weight: 800; }
.line em { display: block; font-style: normal; font: 800 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--tomato); margin-bottom: 6px; }
.status { font-size: 14px; color: var(--muted); margin-top: 10px; min-height: 20px; }
.status.err { color: var(--tomato); font-weight: 700; }
