html { color-scheme: dark; background: #16181c; scroll-padding-top: 1rem; }
body, figure { margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
.site { min-height: 100vh; background: var(--nt-color-surface); color: var(--nt-color-text); line-height: 1.55; }
.site a { color: var(--nt-color-accent); text-underline-offset: .2em; }
.mast, footer { border-block: 1px solid var(--nt-color-border); }
nav, main, footer a { max-width: 72rem; margin-inline: auto; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; padding: .75rem clamp(1rem, 4vw, 3rem); }
.mast a { color: var(--nt-color-text-muted); padding-block: .35rem; text-decoration: none; }
.mast a.active, .mast a:hover { color: var(--nt-color-text); text-decoration: underline; }
.brand { margin-right: auto; font-weight: 700; }
main { min-height: 67vh; padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem); }
footer a { display: block; width: fit-content; padding: 1rem; }
h1, h2 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 1.5rem 0 .5rem; }
p { max-width: 66ch; margin: .75rem 0 1.25rem; }
.lead { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.intro, .frames { display: grid; gap: clamp(1rem, 3vw, 2rem); align-items: center; grid-template-columns: 1fr 1.14fr; }
.frames { grid-template-columns: 1fr 1fr; align-items: start; }
figure img { display: block; width: 100%; height: auto; border-radius: var(--nt-radius-md); }
figcaption { margin-top: .4rem; color: var(--nt-color-text-muted); }
.section { margin-top: 2.75rem; border-top: 1px solid var(--nt-color-border); }
article { max-width: 70ch; }
.build-guide pre { padding: 1rem; overflow-x: auto; background: var(--nt-color-surface-raised); border: 1px solid var(--nt-color-border); border-radius: var(--nt-radius-md); }
.build-guide li + li { margin-top: .5rem; }
.build-guide kbd { font: inherit; font-weight: 600; }
audio { width: min(100%, 32rem); }
.login { display: grid; justify-items: start; gap: 1rem; }
.login label, .login input { display: block; }
.login input { min-height: 2.5rem; font: inherit; width: min(20rem, 80vw); }
.login .roles { display: grid; gap: .5rem; margin: 0; padding: .75rem 1rem; border: 1px solid var(--nt-color-border); border-radius: var(--nt-radius-md); }
.login .roles label { display: flex; align-items: center; gap: .5rem; }
.login .roles input { width: auto; min-height: 0; }
.table-scroll { overflow-x: auto; }
.accounts { border-collapse: collapse; min-width: 100%; }
.accounts th, .accounts td { padding: .5rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--nt-color-border); overflow-wrap: break-word; }
.accounts tbody th { font-weight: 600; }
.accounts .promote { display: flex; flex-wrap: wrap; gap: .5rem; }
.pager { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
dd { font-size: 1.5rem; margin-left: 0; }
.gardens li { margin-block: .75rem; overflow-wrap: anywhere; }
.skip { position: absolute; left: .5rem; top: 0; transform: translateY(-150%); background: var(--nt-color-surface); padding: .5rem; }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--nt-color-focus); outline-offset: 2px; }
@media (max-width: 42rem) { .intro, .frames { grid-template-columns: 1fr; } nav { gap: .25rem 1rem; } }
/* On a phone each account becomes a short block, so the promote buttons stay on screen. */
@media (max-width: 42rem) {
  .accounts thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .accounts, .accounts tbody, .accounts tr, .accounts th, .accounts td { display: block; }
  .accounts tr { padding-block: .75rem; border-bottom: 1px solid var(--nt-color-border); }
  .accounts th, .accounts td { padding: .15rem 0; border: 0; }
  .accounts td[data-label]::before { content: attr(data-label) ": "; color: var(--nt-color-text-muted); }
  .accounts .promote { margin-top: .5rem; }
}
