/* markupstudio.dev - one stylesheet, system fonts, light and dark */
:root {
  --text: #172b4d; --muted: #505f79; --bg: #ffffff; --soft: #f7f8f9; --line: #dcdfe4;
  --link: #0c66e4; --accent: #d9407b; --code: #f1f2f4;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --text: #dee4ea; --muted: #9fadbc; --bg: #1d2125; --soft: #22272b; --line: #38414a; --link: #579dff; --accent: #ff7ab0; --code: #2c333a; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
a { color: var(--link); }
a:hover { text-decoration: none; }

.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; text-decoration: none; }
.brand img { border-radius: 7px; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
nav a[aria-current="page"] { font-weight: 600; }

main { padding: 32px 20px 56px; }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 16px; }
h2 { font-size: 22px; margin: 36px 0 10px; }
h3 { font-size: 18px; margin: 28px 0 8px; }
p, li { max-width: 72ch; }
code { background: var(--code); border-radius: 4px; padding: 0.1em 0.35em; font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: var(--code); border-radius: 6px; padding: 12px 14px; overflow-x: auto; }
pre code { background: none; padding: 0; }
table { border-collapse: collapse; margin: 16px 0; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
th { background: var(--soft); }
blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--line); color: var(--muted); }
em:first-child:last-child { color: var(--muted); }

.hero { text-align: center; padding: 24px 0 8px; }
.hero img { border-radius: 16px; }
.hero h1 { font-size: 36px; margin-top: 16px; }
.hero p { margin-left: auto; margin-right: auto; }
.lead { font-size: 20px; color: var(--text); }
.links { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.button { background: var(--accent); color: #ffffff; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.button:hover { filter: brightness(1.08); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 40px; }
.card { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.card h2 { font-size: 18px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { padding-top: 18px; padding-bottom: 28px; }
