/* ProfessionsForever website. Plain CSS, no build step. */
:root {
	--bg: #0e0c0a;
	--bg-raised: #17140f;
	--bg-card: #1c1812;
	--border: #3a3022;
	--border-strong: #5c4a30;
	--text: #ece4d6;
	--text-muted: #b3a690;
	--text-faint: #857a68;
	--gold: #f2c14e;
	--gold-deep: #c8962e;
	--bronze: #b08a4a;
	--arcane: #a674f5;
	--fel: #5fd08a;
	--danger: #e0685a;
	--radius: 10px;
	--maxw: 1120px;
	--font-head: "Cinzel", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background:
		radial-gradient(1200px 600px at 50% -200px, rgba(242, 193, 78, 0.10), transparent 70%),
		var(--bg);
	color: var(--text);
	font: 16px/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd {
	font-family: var(--font-mono);
	font-size: 0.88em;
	background: #241e16;
	border: 1px solid var(--border);
	border-radius: 5px;
	padding: 0.08em 0.38em;
	color: #f5dfa8;
	white-space: nowrap;
}
img { max-width: 100%; height: auto; }

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

/* Skip link */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(14, 12, 10, 0.86);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-head); font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--text-muted); padding: 6px 10px; border-radius: 6px; font-size: 0.94rem; }
.nav a:hover { color: var(--text); background: #221c14; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border-strong); color: var(--text); border-radius: 6px; padding: 6px 10px; font: inherit; cursor: pointer; }
@media (max-width: 1100px) {
	.nav-toggle { display: inline-block; }
	.nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-raised); border-bottom: 1px solid var(--border); padding: 8px 16px 14px; }
	.nav.open { display: flex; }
	.nav a { padding: 10px 8px; }
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 0.98rem;
	border: 1px solid var(--border-strong); color: var(--text); background: #221c14;
	transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { text-decoration: none; background: #2b2318; border-color: var(--bronze); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #1a1205; border-color: #e0b04a; }
.btn-primary:hover { background: linear-gradient(180deg, #ffd36a, var(--gold)); border-color: #ffd36a; }

/* Hero */
.hero { padding: 64px 0 40px; text-align: center; }
.hero-icon { width: 168px; height: 168px; filter: drop-shadow(0 0 40px rgba(242, 193, 78, 0.28)); }
.hero h1 { font-family: var(--font-head); font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.1; margin: 18px 0 10px; letter-spacing: 0.01em; }
.hero h1 span { color: var(--gold); }
.tagline { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--text-muted); max-width: 720px; margin: 0 auto 28px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.meta-line { margin-top: 22px; color: var(--text-faint); font-size: 0.9rem; display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; }
.meta-line span::before { content: "◆"; color: var(--bronze); margin-right: 8px; font-size: 0.7em; vertical-align: 0.15em; }

/* Hero banner */
.hero-shot { margin: 40px auto 0; max-width: 1000px; }
.hero-shot img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--border-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(242, 193, 78, 0.10); }

/* Screenshots */
figure { margin: 0; }
.shot img, .gallery img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--border-strong); background: #000; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
a.zoom { display: block; cursor: zoom-in; }
a.zoom:hover img { border-color: var(--bronze); }
a.zoom:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius); }
.tour { display: grid; gap: 56px; }
.tour-row { display: grid; gap: 22px; align-items: center; }
.tour-text h3 { font-family: var(--font-head); font-size: 1.35rem; margin-bottom: 10px; }
.tour-text p { color: var(--text-muted); margin: 0 0 12px; }
.tour-text strong { color: var(--text); }
.shot-inline { margin-top: 18px; max-width: 420px; }
.shot-inline figcaption { color: var(--text-faint); font-size: 0.88rem; margin-top: 8px; }
@media (min-width: 860px) {
	.tour-row { grid-template-columns: 1.35fr 1fr; gap: 40px; }
	.tour-row:nth-child(even) .shot { order: 2; }
	.tour-row .shot:only-child { grid-column: 1 / -1; }
}
.gallery { display: grid; gap: 32px; }
.gallery figcaption { color: var(--text-faint); font-size: 0.9rem; margin-top: 10px; text-align: center; }
.gallery-half { max-width: 760px; width: 100%; justify-self: center; }
.shot-narrow { max-width: 360px; width: 100%; justify-self: center; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 4, 3, 0.9); }
.lightbox img { display: block; max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 8px; border: 1px solid var(--border-strong); }
.lightbox-caption { color: var(--text-muted); text-align: center; font-size: 0.9rem; margin: 10px auto 0; max-width: 800px; padding: 0 16px; }
.lightbox-close { position: fixed; top: 12px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); background: #221c14; color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid #221c14; }
.eyebrow { font-family: var(--font-head); color: var(--bronze); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 6px; }
h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 1.12rem; margin: 0 0 8px; line-height: 1.35; }
.lead { color: var(--text-muted); max-width: 760px; margin: 0 0 32px; font-size: 1.05rem; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pillar {
	background: linear-gradient(180deg, var(--bg-card), var(--bg-raised));
	border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.pillar .ico { width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center; background: #2a2116; border: 1px solid var(--border-strong); margin-bottom: 14px; color: var(--gold); }
.pillar .ico svg { width: 22px; height: 22px; }
.pillar p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }

/* Feature detail */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.feature { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 8px; }
.feature h3 { color: var(--gold); font-family: var(--font-head); font-size: 1.08rem; letter-spacing: 0.01em; }
.feature ul { margin: 0 0 14px; padding-left: 18px; color: var(--text-muted); font-size: 0.95rem; }
.feature li { margin: 0 0 7px; }
.feature li::marker { color: var(--bronze); }
.feature strong { color: var(--text); font-weight: 600; }
@media (max-width: 400px) { .features { grid-template-columns: 1fr; } }

/* New in version */
.new-box {
	border: 1px solid var(--border-strong); border-radius: 14px; padding: 28px;
	background:
		radial-gradient(600px 220px at 0% 0%, rgba(166, 116, 245, 0.12), transparent 70%),
		radial-gradient(600px 220px at 100% 100%, rgba(242, 193, 78, 0.10), transparent 70%),
		var(--bg-raised);
}
.new-box { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .new-box { grid-template-columns: 1fr 300px; } }
.new-shot { max-width: 300px; justify-self: center; }
.new-box ul { columns: 2 260px; column-gap: 32px; padding-left: 18px; margin: 18px 0 22px; color: var(--text-muted); }
.new-box li { break-inside: avoid; margin-bottom: 8px; }
.new-box li::marker { color: var(--arcane); }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 999px; background: rgba(242, 193, 78, 0.14); color: var(--gold); border: 1px solid rgba(242, 193, 78, 0.35); vertical-align: middle; }

/* Integrations */
.integrations { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.integration { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--bg-raised); }
.integration h3 { font-size: 1rem; margin-bottom: 4px; }
.integration p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.note { color: var(--text-faint); font-size: 0.92rem; margin-top: 18px; }

/* Install steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { counter-increment: step; position: relative; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 20px 20px 64px; color: var(--text-muted); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); color: #1a1205; font-weight: 800; }
.steps strong { color: var(--text); display: block; margin-bottom: 4px; }
.steps code { white-space: normal; overflow-wrap: anywhere; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-raised); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid #2a2219; vertical-align: top; }
th { font-family: var(--font-head); color: var(--bronze); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; background: #1d1811; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; }
td { color: var(--text-muted); }
@media (max-width: 600px) { td:first-child { white-space: normal; } td:first-child code { white-space: normal; } }

/* Limits / FAQ */
.limits { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
details { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 18px; }
details[open] { padding-bottom: 14px; }
summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Community */
.community { text-align: center; }
.community .lead { margin: 0 auto 26px; }

/* Changelog page */
.changelog { max-width: 860px; }
.changelog h2 { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.changelog h2:first-of-type { margin-top: 8px; border-top: 0; padding-top: 0; }
.changelog h3 { font-family: var(--font-head); color: var(--gold); margin-top: 26px; font-size: 1.05rem; letter-spacing: 0.04em; }
.changelog h4 { margin: 18px 0 6px; }
.changelog ul { padding-left: 20px; color: var(--text-muted); }
.changelog li { margin-bottom: 9px; }
.changelog li::marker { color: var(--bronze); }
.changelog ul ul { margin-top: 8px; }
.changelog p { color: var(--text-muted); }
.changelog strong { color: var(--text); }
.changelog .toc-versions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.toc-versions a { display: inline-block; padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 0.9rem; color: var(--text-muted); }
.toc-versions a:hover { color: var(--gold); border-color: var(--bronze); text-decoration: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--text-faint); font-size: 0.88rem; }
.site-footer .wrap { display: grid; gap: 14px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }
.site-footer p { margin: 0; max-width: 820px; }

/* Feature rows: text, captions, wide row */
.tour-text ul { margin: 0 0 14px; padding-left: 18px; color: var(--text-muted); }
.tour-text li { margin-bottom: 8px; }
.tour-text li::marker { color: var(--bronze); }
.tour-text .sub-eyebrow { margin-top: 26px; }
.shot figcaption { color: var(--text-faint); font-size: 0.88rem; margin-top: 8px; text-align: center; }
.shot-inline figcaption { text-align: left; }
@media (min-width: 860px) {
	.tour-row.tour-row-wide { grid-template-columns: 1fr; }
	.tour-row.tour-row-wide .shot { order: 0; }
	.tour-text ul.cols { columns: 2 300px; column-gap: 36px; }
	.tour-text ul.cols li { break-inside: avoid; }
}
.features-tail { margin-top: 56px; }

/* What's new: one column of longer items */
.new-box ul.new-list { columns: auto; }
.new-shot figcaption { margin-top: 8px; }

/* Usage and commands */
.ref-grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .ref-grid { grid-template-columns: 1fr 1fr; } }
.table-title { font-family: var(--font-head); color: var(--gold); font-size: 1.08rem; margin: 0 0 12px; }
.ref-grid td:first-child { white-space: normal; }
.ref-grid td:first-child code { white-space: nowrap; }
#settings { margin-top: 32px; }
.settings-text { color: var(--text-muted); max-width: 900px; margin: 0; }

/* What's new without a screenshot; "New" tags on feature cards */
@media (min-width: 860px) { .new-box.no-shot { grid-template-columns: 1fr; } }
.new-box.no-shot ul.new-list { columns: 2 380px; column-gap: 40px; }
.new-box ul.new-list li { break-inside: avoid; }
.new-intro { color: var(--text-muted); margin: 0; }
.new-tag { display: inline-block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(166, 116, 245, 0.16); color: #c9a6ff; border: 1px solid rgba(166, 116, 245, 0.4); vertical-align: 0.15em; margin-left: 6px; }
