/* Ondinha site: black, ivory type, the logo's band colours as accents. */
:root {
  --bg: #000;
  --raised: #0f0f10;
  --line: #232325;
  --text: #f4f1e8;
  --body: #cfcbc0;
  --muted: #8f8a80;
  --blue: #65bcfb;
  --violet: #c663e7;
  --rose: #e94766;
  --orange: #fca236;
  --butter: #fcde73;
  --band: var(--blue);
  --display: 'Outfit', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; overflow-y: scroll; }   /* same width on short and long pages */
body {
  margin: 0; background: var(--bg); color: var(--body);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--band); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); color: var(--text); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; font-weight: 500; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
code { font: 400 0.88em var(--mono); color: var(--text); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* menu top right, social links bottom right */
.top, .bottom { display: flex; align-items: center; justify-content: flex-end; max-width: 1120px; width: 100%; margin: 0 auto; padding: 32px var(--gutter); }
.top nav, .bottom nav { display: flex; align-items: center; gap: 22px; }
.top nav a, .bottom nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .15s; }
.top nav a:hover, .top nav a[aria-current], .bottom nav a:hover { color: var(--text); }
.top nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--blue); padding-bottom: 2px; }
.bottom .icon svg { width: 20px; height: 20px; display: block; }

/* home */
.hero-home { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; min-height: calc(100vh - 200px); padding: 24px var(--gutter); }
.hero-home h1 { font-size: clamp(36px, 5vw, 52px); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--body); max-width: 36em; }
.hero-home .lede { color: var(--muted); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 8px; }
.section-head .more { color: var(--muted); font-size: 15px; }
.section-lede { color: var(--muted); margin-bottom: 28px; max-width: 40em; }

/* plugin index */
.page-head { padding-top: clamp(40px, 8vh, 80px); }
.page-head .lede { margin-top: 16px; color: var(--muted); }
.page-head { margin-bottom: 48px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; margin: 8px 0 64px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--raised); border: 1px solid var(--line);
  border-top: 3px solid var(--band); border-radius: 6px 6px 10px 10px; overflow: hidden; transition: border-color .2s, transform .2s; }
.card:hover { border-color: color-mix(in srgb, var(--band) 55%, var(--line)); border-top-color: var(--band); transform: translateY(-2px); }
.card .shot { display: block; background: #050505; border-bottom: 1px solid var(--line); aspect-ratio: 980 / 596; overflow: hidden; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.card-name { font: 500 22px/1.2 var(--display); color: var(--text); letter-spacing: -0.01em; }
.card-line { color: var(--muted); font-size: 15px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { font-size: 12.5px; font-weight: 500; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.status { font-size: 13px; color: var(--band); margin-left: auto; }

/* plug-in page */
.plugin-hero { padding-top: clamp(28px, 6vh, 64px); display: grid; gap: 18px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.tagline { font: 500 clamp(20px, 2.6vw, 26px)/1.3 var(--display); color: var(--band); letter-spacing: -0.01em; max-width: 30em; }
.plugin-hero .lede { max-width: 40em; }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 10px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--text); color: #000;
  font-weight: 600; font-size: 16px; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--band); }
.btn-alt { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-off { background: var(--raised); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.dl-note { flex-basis: 100%; font-size: 14px; color: var(--muted); }
.dl-note a { color: var(--muted); }
.shot-large { margin-top: 48px; margin-bottom: 72px; }
.shot-large img { border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--band) 40%, transparent); }

/* content sections: heading left, content right on wide screens */
.split { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 12px 48px; padding-top: 36px; padding-bottom: 36px; border-top: 1px solid var(--line); }
.split > :not(h2) { grid-column: 2; }
.split > * { min-width: 0; }   /* the install command and the table scroll inside, they don't widen the page */
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split > :not(h2) { grid-column: 1; } }
.prose { max-width: 40em; }
.aside { color: var(--muted); font-size: 15px; margin-top: 12px; }
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px 36px; }
.use h3 { margin-bottom: 6px; }
.features { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.features li { padding-left: 22px; position: relative; max-width: 40em; }
.features li::before { content: ''; position: absolute; left: 2px; top: .68em; width: 9px; height: 3px; border-radius: 2px; background: var(--band); }
.table-scroll { overflow-x: auto; }
.controls { width: 100%; border-collapse: collapse; font-size: 15px; }
.controls th, .controls td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.controls thead th { color: var(--muted); font-weight: 500; font-size: 13px; }
.controls tbody th { color: var(--text); font-weight: 500; white-space: nowrap; }
.controls .num { font: 400 13.5px/1.6 var(--mono); color: var(--text); white-space: nowrap; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px 32px; }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 2px 0 0; color: var(--text); }
.steps { margin: 0; padding-left: 1.4em; display: grid; gap: 12px; max-width: 44em; }
.steps li::marker { color: var(--band); font-weight: 600; }
pre { margin: 10px 0 0; padding: 14px 16px; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; }
pre code { font-size: 13px; line-height: 1.6; white-space: pre; }
.faq { display: grid; max-width: 44em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; color: var(--text); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; color: var(--body); }

/* phones: each control stacks (name and range, then what it does) instead of a squeezed table */
@media (max-width: 600px) {
  .controls thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .controls tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .controls th, .controls td { display: block; padding: 0; border: 0; }
  .controls .num { white-space: normal; align-self: baseline; }
  .controls td:last-child { grid-column: 1 / -1; color: var(--body); }
}
.installs { display: grid; gap: 28px; }
.installs h3 { margin-bottom: 10px; }
.runs-on { color: var(--text); font-weight: 500; }
.top { padding-top: 20px; padding-bottom: 20px; }

/* top bar: home link left, menu right */
.top { justify-content: space-between; }
.home { font: 600 18px var(--display); color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 14px; padding: 4px 8px;
  border: 1px solid var(--line); border-radius: 999px; transition: color .15s, border-color .15s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); border-color: var(--muted); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; margin: 0; padding: 6px; list-style: none; min-width: 160px;
  background: var(--raised); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
.lang li a { display: block; padding: 7px 12px; border-radius: 5px; color: var(--body); text-decoration: none; font-size: 15px; }
.lang li a:hover { background: var(--line); color: var(--text); }
.lang li a[aria-current] { color: var(--text); box-shadow: inset 2px 0 0 var(--blue); }

/* changelog */
.changelog { display: grid; gap: 24px; max-width: 44em; }
.release h3 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.release h3 a { text-decoration: none; }
.release time { font: 400 14px var(--sans); color: var(--muted); }
.changes p + p, .changes ul { margin-top: 6px; }
.changes ul { margin-bottom: 0; padding-left: 1.2em; }
.changes li::marker { color: var(--band); }
.installs > *, .steps > li { min-width: 0; }
.steps code { overflow-wrap: anywhere; }
