/* alohamc.com: the site's own stylesheet, shared by every page and linked after the kit's (system,
   cards, motion, backgrounds, layout, icons). It holds what would otherwise be inline, so the pages
   run under a strict Content-Security-Policy with no inline style or script:
   1. the self-hosted fonts (no Google Fonts request);
   2. the :root block exactly as `start.mjs css --page gaming --palette warm-black-gold --type anybody`
      printed it;
   3. the parts every page shares: the bar, the skip link, the section box (every section as tall
      as its content), the page head, the close, the network count, the footer.
   Each page adds its own file (home.css, pages.css) and scopes it with body[data-page]. */

/* 1. fonts: Anybody, Onest and Martian Mono, all SIL Open Font License 1.1, latin subset, variable */
@font-face {
  font-family: "Anybody"; font-style: normal; font-weight: 400 600; font-stretch: 50% 150%; font-display: swap;
  src: url("../fonts/anybody-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/onest-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Martian Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("../fonts/martian-mono-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. the palette from the client's own colours (owner's instruction: the Discord server's icon, a
   diner neon sign), as `start.mjs brand --page gaming --bg "#0A0A0A" --surface "#161616" --ink "#F8F8F8"
   --muted "#9A9A9A" --accent "#C82828" --type anybody --radius sharp` printed it (keep after layout.css:
   it resets --ly-scale). The sign's red, stepped to #C82828: the button 3.57:1 on the ground, its white
   label 5.22:1 on it */
:root {
  --p-bg: #0a0a0a; --p-surface: #161616; --p-ink: #f8f8f8; --p-muted: #9a9a9a;
  --p-accent: #c82828; --p-accent-ink: #ffffff; --p-action: #c82828; --p-action-ink: #ffffff;
  --p-inv-bg: #f8f8f8; --p-inv-surface: #e5e5e5; --p-inv-ink: #0a0a0a; --p-inv-muted: #585858;
  --p-inv-accent: #c82828; --p-inv-accent-ink: #ffffff; --p-inv-action: #c82828; --p-inv-action-ink: #ffffff;
  --font-display: "Anybody", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 400;
  --display-tracking: -0.02em;
  --display-tracking-xl: -0.03em;
  --display-stretch: 115%;
  --ly-scale: 0.86;
}
/* the lit ground (the close and the footer, the dealt grounds' second tone): the sign's sky cyan, with
   the sign's black on it (12.05:1) and its deep blue as the ground's accent (owner's instruction) */
html[data-ground] {
  --ground-bg: #78d8e8; --ground-surface: #8fe0ee; --ground-ink: #0a0a0a; --ground-muted: #1f3d44; --ground-accent: #1858a8;
}
/* the brand's other colours, for the one coloured word a page and the live count's dot */
:root { --sky: #78d8e8; --grass: #6fa23c; }

/* 3. shared parts */

/* the browser's own surfaces, from the palette: dark scrollbars and form controls on the dark ground */
:root { color-scheme: dark; scrollbar-color: #3a3a3a var(--p-bg); }

/* the logo: the server's own icon, the picture the Minecraft server list shows */
.nav__logo .logo-icon { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.nav__logo { gap: var(--s-3); }

/* the bar: the name on the left line, the three pages on the right line (their last word ends on
   it), and no button. Three short words fit a tablet's bar, so only a phone gets the menu button. */
.nav .nav__links { flex: none; margin-left: auto; margin-right: calc(-1 * var(--s-3)); }
@media (min-width: 1024px) and (max-width: 1279px) { .nav .nav__links { margin-right: calc(-1 * var(--s-2)); } }
@media (min-width: 640px) and (max-width: 1023px) {
  .nav .nav__links { display: flex; }
  .nav .nav__toggle { display: none; }
}
@media (max-width: 639px) { .nav.is-open .nav__links { margin: 0; } }
/* the bar under the current page's word: the kit draws it as the link's ::after; here it is an
   element (.nav__here) in the same place, so it can travel between pages (effects.css) */
.nav__link:has(> .nav__here)::after { content: none; }
.nav__here { position: absolute; left: var(--s-3); right: var(--s-3); bottom: -2px; height: 2px; border-radius: 2px; background: currentColor; }
@media (min-width: 1024px) and (max-width: 1279px) { .nav__here { left: var(--s-2); right: var(--s-2); } }
@media (max-width: 639px) { .nav.is-open .nav__here { left: 0; right: auto; width: 24px; bottom: 10px; } }

/* the skip link: the first thing in the bar, out of sight until it has the focus (system.md) */
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; z-index: 20; padding: var(--s-2) var(--s-4); background: var(--bg); color: var(--ink); border-radius: var(--r-sm); }

/* addresses and commands in the mono face, a touch smaller so they sit on the text's line; never
   broken across two lines (a command split in two reads as two commands) */
.mono { font-family: var(--font-mono); font-size: 0.875em; letter-spacing: 0; white-space: nowrap; }

/* the map pictures are pixel art: one block, one square */
.pixel { image-rendering: pixelated; }

/* a line of plain links under a paragraph */
.links-line { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin: 0; }

/* what a script says to a screen reader (copy.js: "Address copied") */
.sr-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the section box. The kit makes every section exactly one or two screens tall; here a section is as
   tall as its content (owner's decision, 2026-11-24: the fixed screens left blank bands of up to 800px
   on a phone). The kit's padding stays: --padt above the h2, --padb below. The home hero alone keeps
   its one screen. */
main > section.section:not(.hero), footer.closing.footer { height: auto; min-height: 0; }
main > section.section:not(.hero) > .wrap { height: auto; }
/* a tablet and a phone: the hero's photograph sits above its words there, so the hero ends under its
   buttons too, not a screen's height further down */
@media (max-width: 1023px) { main > section.hero { height: auto; min-height: 0; padding-bottom: 0; } }
/* a section on a CSS ground keeps that same box: the kit's grounds add padding, a least height and
   centre the words (backgrounds.css) */
main > section.section:is(.bg-mist, .bg-halo, .bg-ruled, .bg-dots):not(.hero) { padding: var(--padt) 0 calc(var(--padb) + var(--bar)) !important; display: block; min-height: 0; }

/* the page head of /servers/ and /maps/: the h1, one line, and the first section close under it */
main > section.section.page-head { --padb: 0px; }
@media (min-width: 640px) { main > section.section.page-head { --padt: calc(var(--nav) + var(--s-8)); } }
main > section.section.page-head + .section { --padt: var(--s-9); }
.page-head h1 { max-width: 16ch; }
.page-head__count { margin: 0 0 var(--s-4); min-height: 0; }
.page-head__count:has(> .netcount:empty:only-child) { display: none; }
.page-head__lead { margin: var(--s-5) 0 0; font-size: var(--ly-lead, var(--t-lead)); line-height: 1.5; max-width: 52ch; text-wrap: pretty; color: var(--ink); }
.page-head .links-line { margin-top: var(--s-6); }

/* a button that copies has nowhere to lead: no chevron after its label */
html[data-buttons] .btn[data-copy]::after { content: none; }

/* the close's button keeps the site's one primary look (the red; 3.58:1 on the cyan, its label 5.22:1) */
.footer--statement .btn--primary { --action: var(--p-action); --action-ink: var(--p-action-ink); }
/* the footer: three link columns fill the row on a tablet; the legal row's lines stack below 1024 */
@media (min-width: 640px) and (max-width: 1023px) { .closing__links .footer__col { grid-column: auto / span 4; } }
@media (max-width: 1023px) { .footer__legal { flex-direction: column; align-items: flex-start; } }
/* the footer's one line in the text face (the kit sets it in the display face at 1.25, too tight
   for three lines on a phone) */
.closing__links .footer__lede { font: 400 var(--t-body)/1.5 var(--font-text); letter-spacing: 0; max-width: 32ch; }

/* the close (close-word, by the owner's instruction): the name set across the wrap in the headings'
   own width (the kit's font shorthand drops it), sized so it runs from line to line (about 8.65 em in
   Anybody at 115%) at every width, with room above it now that the footer is as tall as its content */
.close__word { margin-top: var(--s-7); font-stretch: var(--display-stretch); font-size: calc((min(100vw - 2 * var(--gut), 1280px)) / 8.8); line-height: .9; }
/* a phone: the name set across the wrap is right above the footer's own name, so that one goes */
@media (max-width: 639px) { .closing__links .nav__logo { display: none; } }
/* nothing in the footer may push its one column wider than the wrap */
footer.closing > .wrap > * { min-width: 0; }

/* the network's one live count: quiet, small; empty (no data) it takes no room */
.netcount { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); color: var(--ink); }
.netcount::before { content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--grass); }
.netcount:empty { display: none; }

/* one coloured word a page (system.md: colour inside a word once a page at most) */
.hue { color: var(--sky); }
