/* BNL Reborn website theme, matched to the 0.2.0-beta.66 launcher:
   parchment paper, dark-teal bar, ticket plates and the red Play plate.
   The launcher fonts (Core Sans N, Avenir Next Cyr) may not be redistributed,
   so the site self-hosts the closest open-licensed (OFL) substitutes. */
@font-face { font-family: "BNL Heading"; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-800-normal.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: "BNL Heading"; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "BNL Body"; font-weight: 400; font-display: swap; src: url("/assets/fonts/nunito-sans-latin-400-normal.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: "BNL Body"; font-weight: 400; font-display: swap; src: url("/assets/fonts/nunito-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "BNL Body"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/nunito-sans-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "BNL Body"; font-weight: 700; font-display: swap; src: url("/assets/fonts/nunito-sans-latin-700-normal.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: "BNL Body"; font-weight: 700; font-display: swap; src: url("/assets/fonts/nunito-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --ink: #102127;
  --muted: #3f4a42;
  --paper: #f1e5ce;
  --sand: #cec3a1;
  --plate: #e5d5bc;
  --bronze: #ab9678;
  --bronze-dark: #8c8064;
  --frame: #73725b;
  --night: #142c30;
  --night-edge: #536157;
  --teal: #164a53;
  --red: #801608;
  --red-ink: #8b2b16;
  --cream-edge: #dcc8a6;
  --gold: #e6ad34;
  --rule: #80826b70;
  --card: #f1e5cea6;
  --heading: "BNL Heading", "Barlow Semi Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --body: "BNL Body", "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  /* Launcher navigation plate outline: chamfered ends with side notches. */
  --ticket: polygon(8px 0, calc(100% - 8px) 0, calc(100% - 8px) 5px, 100% 10px, 100% calc(100% - 10px), calc(100% - 8px) calc(100% - 5px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 5px), 0 calc(100% - 10px), 0 10px, 8px 5px);
  /* Launcher Play plate outline: stepped corners. */
  --stepped: polygon(12px 0, calc(100% - 12px) 0, calc(100% - 12px) 10px, 100% 10px, 100% calc(100% - 10px), calc(100% - 12px) calc(100% - 10px), calc(100% - 12px) 100%, 12px 100%, 12px calc(100% - 10px), 0 calc(100% - 10px), 0 10px, 12px 10px);
  --star-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 23'%3E%3Cpath fill='%23102127' d='M12 0l2.8 8.6H24l-7.4 5.4 2.8 8.7L12 17.3l-7.4 5.4 2.8-8.7L0 8.6h9.2z'/%3E%3C/svg%3E");
  --star-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 23'%3E%3Cpath fill='%23f1e5ce' d='M12 0l2.8 8.6H24l-7.4 5.4 2.8 8.7L12 17.3l-7.4 5.4 2.8-8.7L0 8.6h9.2z'/%3E%3C/svg%3E");
  --star-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 23'%3E%3Cpath fill='%238b2b16' d='M12 0l2.8 8.6H24l-7.4 5.4 2.8 8.7L12 17.3l-7.4 5.4 2.8-8.7L0 8.6h9.2z'/%3E%3C/svg%3E");
  --star-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 23'%3E%3Cpath d='M12 0l2.8 8.6H24l-7.4 5.4 2.8 8.7L12 17.3l-7.4 5.4 2.8-8.7L0 8.6h9.2z'/%3E%3C/svg%3E");
  font-family: var(--body);
  background: var(--sand);
  color: var(--ink);
  scrollbar-color: #897c5d #8c80641f;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body { position: relative; margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--sand) url("/assets/paper.jpg") center top / cover fixed; }
/* Sunburst rays from the launcher backdrop, drawn instead of downloaded. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 72% 30%, #3f494124 0 2.6deg, transparent 2.6deg 5.2deg);
  -webkit-mask-image: radial-gradient(circle at 72% 30%, transparent 4%, #000 20%, #000 48%, transparent 92%);
  mask-image: radial-gradient(circle at 72% 30%, transparent 4%, #000 20%, #000 48%, transparent 92%); }
/* The launcher's double bronze window frame. */
body::after { content: ""; position: fixed; inset: 6px; z-index: 50; pointer-events: none; border: 2px solid var(--frame); outline: 1px solid var(--frame); outline-offset: -5px; }
::selection { background: var(--teal); color: var(--paper); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Site bar: the launcher sidebar, laid horizontally. */
.site-bar { position: relative; z-index: 10; background: var(--night); border-bottom: 3px solid var(--night-edge); box-shadow: 0 3px 0 #10212726; }
.site-bar-inner { width: calc(100% - 48px); max-width: 1180px; margin: 0 auto; padding: 16px 0 14px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; flex-direction: column; align-items: center; flex: none; color: var(--paper); text-decoration: none; }
.brand img { display: block; height: 76px; width: auto; }
.site-bar :focus-visible { outline-color: var(--gold); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-left: auto; }
.site-nav a { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px; color: var(--ink); background: var(--bronze); clip-path: var(--ticket); font: 800 1rem/1 var(--heading); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .15s ease; }
.site-nav a::before { content: ""; position: absolute; inset: 3px; z-index: -1; background: var(--plate); clip-path: var(--ticket); }
.site-nav a:hover { background: #d9b773; }
.site-nav a[aria-current="page"] { padding: 0 34px; background: var(--gold); }
.site-nav a[aria-current="page"]::before { background: var(--star-ink) no-repeat left 11px center / 11px, var(--star-ink) no-repeat right 11px center / 11px, var(--plate); }
.site-nav a:focus-visible { outline: none; background: var(--gold); }

main { position: relative; width: calc(100% - 48px); max-width: 1120px; margin: 0 auto; padding: 64px 0 80px; flex: 1 0 auto; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 24px; }
.hero::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -30px; width: 520px; aspect-ratio: 240 / 228; background: var(--ink); opacity: .07; pointer-events: none; -webkit-mask: var(--star-shape) center / contain no-repeat; mask: var(--star-shape) center / contain no-repeat; }
.hero-art { display: block; width: 100%; max-width: 430px; justify-self: end; filter: drop-shadow(0 18px 24px #10212740);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.hero-art[hidden] { display: block !important; visibility: hidden; }
.hero .actions { margin-top: 30px; }

.eyebrow { margin: 0 0 .7rem; color: var(--red-ink); font: 800 1.02rem/1.2 var(--heading); letter-spacing: .04em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: .82em; height: .82em; margin: 0 .55em .1em 0; vertical-align: middle; background: var(--star-red) center / contain no-repeat; }
h1, h2, h3 { font-family: var(--heading); font-weight: 800; text-transform: uppercase; color: var(--ink); letter-spacing: .005em; }
h1 { margin: .1rem 0 .4rem; font-size: clamp(3rem, 7.4vw, 5.9rem); line-height: .94; }
h1 span { display: block; color: var(--red-ink); }
h2 { margin: .2rem 0 .7rem; font-size: clamp(1.55rem, 2.6vw, 2.05rem); line-height: 1.05; }
h3 { margin: 1.6rem 0 .45rem; font-size: 1.3rem; line-height: 1.1; }
p { color: var(--ink); line-height: 1.62; }
.lead { max-width: 640px; font-size: 1.2rem; color: var(--ink); }
a { color: var(--red-ink); }
strong { font-weight: 700; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88em; padding: .08em .3em; background: #10212712; }

.live-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.stat { min-height: 128px; padding: 18px 20px; border: 1px solid var(--bronze); background: var(--card); box-shadow: inset 0 0 0 3px #f1e5ce80, inset 0 0 0 4px #ab967866; display: flex; flex-direction: column; }
.stat-label { color: var(--muted); font: 800 .95rem/1.2 var(--heading); letter-spacing: .04em; text-transform: uppercase; }
.stat-value { margin-top: 4px; font: 800 2.9rem/1.05 var(--heading); font-variant-numeric: tabular-nums; }
.stat-note { margin-top: auto; color: var(--muted); font-size: .82rem; }
.status-dot { display: inline-block; width: 9px; height: 9px; margin: 0 8px .1em 0; border-radius: 50%; background: #8c8064; box-shadow: 0 0 0 3px #8c806433; }
.status-dot.online { background: #2f8a4a; box-shadow: 0 0 0 3px #2f8a4a33, 0 0 10px #2f8a4a88; }

.panel, .community, .server-panel { width: 100%; min-width: 0; margin-top: 44px; padding: 30px 32px; border: 1px solid var(--bronze); background: var(--card); box-shadow: inset 0 0 0 4px #f1e5ce80, inset 0 0 0 5px #ab967866, 0 2px 0 #10212714; }
.download-panel, .community, .section-heading { display: flex; gap: 30px; align-items: center; justify-content: space-between; }
.download-panel > *, .community > *, .section-heading > *, .stat { min-width: 0; }
.download-panel p, .community p, .section-heading p { max-width: 650px; margin-bottom: 0; }
.panel > h2:first-child { margin-top: 0; }
.download-panel > .actions, .community > .button { flex: 0 0 340px; width: 340px; }
.download-panel > .actions { flex-direction: column; align-items: stretch; }
.download-panel > .actions .button { width: 100%; padding-left: 44px; padding-right: 44px; white-space: normal; text-align: center; }

/* Buttons: parchment ticket plates; primary is the launcher's red Play plate. */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px; color: var(--ink); background: var(--bronze); clip-path: var(--ticket); font: 800 1.12rem/1.1 var(--heading); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border: 0; transition: transform .15s ease, background .15s ease; }
.button::before { content: ""; position: absolute; inset: 3px; z-index: -1; background: var(--plate); clip-path: var(--ticket); }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--gold); outline: none; }
.button.primary { min-height: 60px; padding: 0 52px; color: var(--paper); background: var(--cream-edge); clip-path: var(--stepped); font-size: 1.45rem; }
.button.primary::before { clip-path: var(--stepped); background: var(--star-paper) no-repeat left 22px center / 17px, var(--star-paper) no-repeat right 22px center / 17px, var(--red); }
.button.primary:hover, .button.primary:focus-visible { background: var(--gold); }
.button.disabled, .button.disabled:hover { transform: none; color: #3f4a42; background: #a79c7e; cursor: not-allowed; }
.button.disabled::before { background: #cfc3a8; }
.button.discord { min-width: 210px; color: var(--paper); background: var(--night-edge); }
.button.discord::before { background: var(--night); }
.button.discord:hover, .button.discord:focus-visible { background: var(--gold); }
.button.discord svg { width: 23px; fill: currentColor; }

.server-panel { margin-top: 18px; }
.text-link { color: var(--red-ink); font: 800 1.05rem/1.3 var(--heading); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.panel-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.panel-links a { min-height: 114px; padding: 19px 20px; color: var(--ink); border: 1px solid var(--bronze); border-left: 4px solid var(--red-ink); background: #e5d5bccc; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.panel-links a:hover, .panel-links a:focus-visible { border-color: var(--red-ink); background: var(--paper); transform: translateY(-2px); }
.panel-links strong { font: 800 1.3rem/1.1 var(--heading); text-transform: uppercase; }
.panel-links span { color: var(--muted); font-size: .9rem; line-height: 1.45; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
article { padding: 24px 26px; border: 1px solid var(--bronze); border-top: 4px solid var(--teal); background: var(--card); }
article p { margin-bottom: 0; }

.site-footer { position: relative; background: var(--night); border-top: 3px solid var(--night-edge); color: #c9d2c4; }
.site-footer-inner { width: calc(100% - 48px); max-width: 1120px; margin: 0 auto; padding: 26px 0 30px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; font-size: .88rem; }
.site-footer strong { display: block; color: var(--paper); font: 800 1.1rem/1.2 var(--heading); text-transform: uppercase; letter-spacing: .03em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--paper); font: 800 .98rem/1.3 var(--heading); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--gold); outline-color: var(--gold); }

.download-page { max-width: 880px; }
.download-page h1 { font-size: clamp(2.5rem, 6.6vw, 4.6rem); }
.download-page .panel { display: block; }
.download-page .panel h3 { color: var(--red-ink); }
.release-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; }
.release-meta span + span::before { content: "Ã‚Â·"; margin-right: 18px; color: var(--bronze-dark); }
.release-files { display: grid; gap: 10px; margin: 22px 0; }
.release-file { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; color: var(--paper); background: var(--night); border: 1px solid var(--night-edge); border-left: 5px solid var(--red); text-decoration: none; transition: background .15s ease, transform .15s ease; }
.release-file strong { font: 800 1.25rem/1.15 var(--heading); text-transform: uppercase; letter-spacing: .02em; }
.release-file:hover, .release-file:focus-visible { background: var(--teal); border-left-color: var(--gold); transform: translateY(-2px); }
.release-file span { color: #c9d2c4; font-size: .88rem; white-space: nowrap; }
.steps { color: var(--ink); line-height: 1.7; }
.steps li::marker { color: var(--red-ink); font-weight: 700; }
.hashes { overflow-wrap: anywhere; }
.hashes code { display: block; margin: 7px 0 14px; padding: 8px 10px; color: var(--ink); background: #10212710; font-size: .78rem; }
.warning { padding: 14px 16px; border-left: 4px solid var(--red); background: #8016080f; color: var(--ink); }

/* Thin bronze scrollbars, as in the launcher. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #8c80641f; }
::-webkit-scrollbar-thumb { background: #897c5d; border: 2px solid transparent; border-radius: 5px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #655b42; }

@media (max-width: 900px) {
  .site-bar-inner { flex-direction: column; gap: 14px; padding: 18px 0 14px; }
  .site-nav { justify-content: center; margin-left: 0; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { position: absolute; right: -30px; top: -20px; width: 46%; max-width: 280px; opacity: .3; z-index: -1; }
  .hero::after { width: 320px; right: -40px; }
}
@media (max-width: 760px) {
  body::after { inset: 4px; outline-offset: -4px; }
  .site-bar-inner, main, .site-footer-inner { width: calc(100% - 32px); }
  .site-nav { gap: 8px; }
  .site-nav a { min-height: 38px; padding: 0 14px; font-size: .92rem; }
  .site-nav a[aria-current="page"] { padding: 0 28px; }
  .release-meta { flex-direction: column; gap: 2px; }
  .release-meta span + span::before { content: none; }
  main { padding-top: 40px; }
  .panel, .community, .server-panel { padding: 22px 20px; }
  .download-panel, .community, .section-heading { align-items: stretch; flex-direction: column; }
  .live-stats, .panel-links, .grid { grid-template-columns: 1fr; }
  .stat { min-height: 0; }
  .actions { width: 100%; flex-direction: column; }
  .actions .button { width: 100%; white-space: normal; text-align: center; }
  .button.discord { width: 100%; }
  .download-panel > .actions, .community > .button { flex: none; width: 100%; }
  .actions .button.primary { font-size: 1.25rem; }
  .release-file { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .button:hover, .panel-links a:hover, .release-file:hover { transform: none; }
}
