/* Northwire sites: northwire.app, mods.northwire.app, link.northwire.app. Monochrome. */
:root {
  color-scheme: dark;
  --bg: #0a0a0a; --surface: #111111; --surface-2: #161616; --border: #222222; --border-2: #2e2e2e;
  --text: #ededed; --text-2: #a1a1a1; --text-3: #6f6f6f;
  --radius: 12px; --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
img.pixel { image-rendering: pixelated; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
button, select { font: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
b, strong { font-weight: 600; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 10, .8); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.nav .container { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; text-decoration: none; color: var(--text); }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.nav .btn { height: 34px; padding: 0 14px; font-size: 13px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 8px; font-size: 14px; font-weight: 500;
  text-decoration: none; background: var(--text); color: #0a0a0a; border: 1px solid var(--text); transition: background .15s, border-color .15s, color .15s; white-space: nowrap; cursor: pointer; }
.btn:hover { background: #ffffff; color: #0a0a0a; }
.btn.secondary, .btn-secondary, .secondary-button { background: transparent; color: var(--text); border: 1px solid var(--border-2); }
.btn.secondary:hover, .btn-secondary:hover, .secondary-button:hover { background: var(--surface-2); border-color: #3a3a3a; color: var(--text); }
.secondary-button { height: 36px; padding: 0 14px; border-radius: 8px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 104px 0 72px; }
.hero .icon { width: 56px; height: 56px; border-radius: 12px; margin-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); padding: 4px 12px; border-radius: 999px; margin-bottom: 24px; }
h1 { font-size: clamp(40px, 6.4vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -.045em; margin: 0; max-width: 15ch; }
.lead { font-size: 18px; color: var(--text-2); max-width: 58ch; margin: 20px 0 32px; }
.meta { font-size: 13px; color: var(--text-3); margin: 20px 0 0; }
.status { font-size: 13px; color: var(--text-2); margin: 10px 0 0; }
.status.review::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d4a72c; margin-right: 8px; vertical-align: 1px; }
.shot { border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.hero-shot { margin-top: 64px; }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section-head { margin-bottom: 40px; }
h2 { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.03em; margin: 0; }
.section-head p { color: var(--text-2); font-size: 16px; max-width: 60ch; margin: 12px 0 0; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color .15s; }
.card:hover { border-color: var(--border-2); }
.card p { color: var(--text-2); margin: 0 0 16px; font-size: 14.5px; }
.card .card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card .card-head img { width: 36px; height: 36px; border-radius: 8px; }
.card .card-head h3 { margin: 0; font-size: 19px; }
.card .card-head span { font-size: 13px; color: var(--text-3); }
.card .meta { margin: 0 0 20px; }
.card .status { margin: 16px 0 0; }
.card .actions .btn { height: 36px; padding: 0 14px; font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li { font-size: 12px; color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }

/* Lists */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; font-size: 14.5px; }
.checklist.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checklist li { position: relative; padding-left: 26px; color: var(--text); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 10px; height: 5px; border-left: 1.6px solid var(--text-2); border-bottom: 1.6px solid var(--text-2); transform: rotate(-45deg); }
.plain-list { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14.5px; }
.plain-list li { margin-bottom: 8px; }
.plain-list li::marker { color: var(--text-3); }
.plain-list b { color: var(--text); }
.card .plain-list { margin-bottom: 22px; }
.shots.spaced { margin-top: 56px; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.shots figure { margin: 0; }
.shots figcaption { font-size: 13.5px; color: var(--text-2); margin-top: 10px; }
.shots figcaption b { color: var(--text); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--border); }
.table th { font-weight: 500; color: var(--text-3); font-size: 13px; }
.table tr:last-child td { border-bottom: 0; }
.table .n { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.table-card { padding: 8px 28px 12px; }
.note { font-size: 13.5px; color: var(--text-2); margin: 18px 0 0; max-width: 72ch; }

/* Downloads panel (used by downloads.js and Link's releases.js) */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.release-toolbar { display: flex; flex-wrap: wrap; gap: 14px 24px; margin: 0 0 10px; }
.release-toolbar label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
select { height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 13px; }
.release-status { font-size: 13px; color: var(--text-3); margin: 0; }
.release-card { margin-top: 20px; }
.release-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0 14px; border-bottom: 1px solid var(--border); }
.release-heading h3 { font-size: 17px; margin: 0; }
.release-date { font-size: 13px; color: var(--text-3); margin: 2px 0 0; }
.release-badge { font-size: 12px; color: var(--text-2); border: 1px solid var(--border-2); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.download-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.download-option h4 { font-size: 14.5px; font-weight: 500; margin: 0; }
.download-option p { margin: 0; color: var(--text-2); font-size: 13px; grid-column: 1; }
.download-option .btn { grid-column: 2; grid-row: 1 / 4; align-self: center; height: 34px; padding: 0 14px; font-size: 13px; }
.download-option .btn span { margin-left: 2px; }
.download-file { grid-column: 1; font: 12px ui-monospace, monospace; color: var(--text-3); overflow-wrap: anywhere; }
.empty-downloads { color: var(--text-2); font-size: 14px; padding: 14px 0; }
.release-notes { padding: 22px 0 4px; }
.release-notes h4 { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.release-notes ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.release-notes li { font-size: 14px; margin: 6px 0; }
.release-notes-text { white-space: pre-wrap; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.release-provenance { font-size: 12.5px; color: var(--text-3); margin: 14px 0 0; }
.install-help { font-size: 13.5px; color: var(--text-2); margin: 20px 0 0; }

/* Questions */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 20px 0; font-size: 16px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(45deg); margin-right: 4px; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: -4px 0 20px; color: var(--text-2); font-size: 14.5px; max-width: 70ch; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer p { color: var(--text-3); margin: 12px 0 0; font-size: 13.5px; max-width: 34ch; }
.footer h4 { font-size: 13px; font-weight: 500; color: var(--text); margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--text-2); text-decoration: none; }
.footer li a:hover { color: var(--text); }
.footer .bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .grid-3, .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .shots, .shots.two, .checklist, .checklist.two { grid-template-columns: minmax(0, 1fr); }
  .card, .panel { padding: 22px; }
  .table-card { padding: 4px 18px 8px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .footer .cols > div:first-child { grid-column: 1 / -1; }
  .release-toolbar { flex-direction: column; }
  .release-toolbar label { justify-content: space-between; }
  .table th, .table td { padding-right: 10px; }
}
