/* Bramp site theme: matches the app's default look (dark panel, amber accents). */
:root {
  --bg: #121418;
  --panel: #1B1D22;
  --panel-2: #23262d;
  --border: #2e323a;
  --fg: #e6e7ea;
  --muted: #9aa0a9;
  --amber: #FFB000;
  --amber-dim: rgba(255, 176, 0, .35);
  --amber-ink: #1B1D22;
  --scope-blue: #4fa3d1;
  --scope-red: #c9566b;
  --radius: 12px;
  --max: 1120px;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.2em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
code { background: var(--panel-2); padding: .1em .35em; border-radius: 4px; }
kbd { background: var(--panel-2); border: 1px solid var(--border); border-bottom-width: 2px; padding: .05em .4em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 2rem 1rem 3rem; }
.muted { color: var(--muted); }
.label { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--amber-ink); padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { background: var(--panel); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.header-inner { max-width: var(--max); margin: 0 auto; padding: .7rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand-sm { font-size: 1.05rem; }
.site-nav { display: flex; align-items: center; gap: .25rem 1.1rem; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--fg); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--amber); }

/* Footer */
.site-footer { background: var(--panel); border-top: 1px solid var(--border); margin-top: 3rem; padding: 2rem 0 1.5rem; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.footer-about { max-width: 28rem; }
.footer-about p { margin: .5rem 0 0; font-size: .95rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(8rem, auto)); gap: .35rem 2rem; align-content: start; }
.footer-nav a { color: var(--fg); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--amber); }
.footer-legal { max-width: var(--max); margin: 1.75rem auto 0; padding: 0 1rem; font-size: .85rem; text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2); color: var(--fg); text-decoration: none; font-weight: 600; line-height: 1.2; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { border-color: var(--amber); }
.btn-primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: #ffc233; border-color: #ffc233; }
.btn-sm { padding: .4rem .95rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Panels, cards, badges, notes */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.panel-amber { border-color: var(--amber-dim); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.cards .panel h3 { margin-top: 0; }
.badge { display: inline-block; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--amber-dim); color: var(--amber); vertical-align: middle; }
.note { border-left: 3px solid var(--amber); background: var(--panel); padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.25rem 0; }
.note > :last-child { margin-bottom: 0; }

/* Screenshots */
.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.shot figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }
.shot-phone img { border-radius: 22px; }
.shots-phone { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: var(--panel); font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }

/* Forms */
label { display: block; margin-bottom: 1rem; font-weight: 600; }
input, textarea, select { display: block; width: 100%; margin-top: .35rem; padding: .65rem .8rem; background: var(--panel-2); color: var(--fg); border: 1px solid var(--border); border-radius: 8px; font: inherit; font-weight: 400; }
input:focus, textarea:focus, select:focus { border-color: var(--amber); outline: none; }
textarea { min-height: 9rem; resize: vertical; }

@media (max-width: 560px) {
  .container { padding-top: 1.25rem; }
  .header-inner { justify-content: center; }
  .site-nav { justify-content: center; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Text helpers */
.lead { font-size: 1.2rem; color: var(--fg); max-width: 42rem; }
.small { font-size: .9rem; }
pre { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: .8rem 1rem; overflow-x: auto; }
pre code { background: none; padding: 0; }

/* Downloads */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.download-card { display: flex; flex-direction: column; scroll-margin-top: 5rem; }
.download-card h3 { margin: 0 0 .2rem; }
.download-card .label:empty { display: none; }
.download-card .download-action { margin-top: auto; }
.download-card:target { border-color: var(--amber); }
.btn-meta { font-weight: 400; opacity: .75; font-size: .9em; }
.checksum summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.checksum code { display: block; word-break: break-all; margin-top: .3rem; font-size: .8rem; }
.checksum p { margin: .4rem 0 0; }
.doc-list { padding-left: 1.2rem; }
.doc-list li { margin-bottom: .35rem; }
.release-cta .small { margin-top: .6rem; }
/* The all-in-one zip is the secondary choice. */
#get-everything .btn-primary { background: var(--panel-2); border-color: var(--border); color: var(--fg); }
#get-everything .btn-primary:hover { border-color: var(--amber); }

/* Home */
.hero { padding: 1.5rem 0 1rem; max-width: 46rem; }
.hero h1 { margin-top: .4rem; }
.hero-shot { margin: 2rem 0 1rem; }
.split { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
.split h2 { margin-top: 0; }
.split .shots-phone { grid-template-columns: repeat(2, minmax(0, 11.25rem)); justify-content: center; margin: 0; }
section.split { margin-top: 3.5rem; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin: 1.5rem 0; }
.closing { margin-top: 3.5rem; }
.closing h2 { margin-top: 0; }
@media (min-width: 760px) {
  .split { grid-template-columns: 1.1fr 1fr; gap: 2.5rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
}

/* Lists inside panels, table of contents */
.panel ul { padding-left: 1.2rem; margin: 0; }
.panel li { margin-bottom: .4rem; }
.toc { margin: 1.5rem 0 2rem; }
.toc ul { columns: 2 14rem; }
h2[id], h3[id] { scroll-margin-top: 5rem; }

/* FAQ */
.faq { margin: 1.5rem 0; display: grid; gap: .6rem; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: .2rem 1.2rem; }
.faq details[open] { border-color: var(--amber-dim); }
.faq summary { cursor: pointer; font-weight: 600; padding: .75rem 0; }
.faq summary::marker { color: var(--amber); }
.faq details > div { padding-bottom: .5rem; }

/* Contact */
.contact-email { margin: 1.5rem 0 1rem; }
.contact-email p { margin: 0; }
.contact-address { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; margin: .2rem 0 .4rem !important; }
.contact-address a { text-decoration: none; }
.contact-address a:hover { text-decoration: underline; }
.cards .panel > p:last-child { margin-bottom: 0; }

/* Comfortable line length for running text */
.container > p, .container > ol, .container > ul, .container > .note, .faq { max-width: 75ch; }
