:root {
  color-scheme: dark;
  --ink: #101a17;
  --ink-2: #14201c;
  --surface: #1b2923;
  --surface-2: #22342a;
  --text: #f2f0e5;
  --muted: #b7c1b8;
  --quiet: #a0afa3;
  --line: #34473b;
  --line-strong: #59715b;
  --emerald: #c4e69d;
  --emerald-strong: #91b66e;
  --gold: #e8cc98;
  --blue: #a6d2e8;
  --danger: #ff9b8f;
  --radius: 0px;
  --hero-focal-x: 72%;
  --hero-mobile-scene-height: 700px;
  --hero-mobile-clearance: 400px;
  --wrap: min(1240px, calc(100% - 80px));
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Arial Black", "Helvetica Neue", var(--font);
  --block-edge: #080f0c;
  --block-light: #48604d;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--text); font: 400 16px/1.65 var(--font); text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
.wrap { width: var(--wrap); margin: 0 auto; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 12px 18px; border: 2px solid var(--gold); border-radius: var(--radius); background: var(--ink); color: var(--text); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: var(--ink); }
.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; font-family: var(--display); font-size: 18px; font-weight: 700; text-decoration: none; letter-spacing: -.04em; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 0px; background: var(--emerald); color: var(--ink); font: 900 24px/1 var(--mono); box-shadow: inset -5px -5px 0 rgba(16,26,23,.16); }
.nav-links { display: flex; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 13px; border-radius: 0px; text-decoration: none; }
.nav-links a:first-child { color: var(--emerald); }
.nav-links a:last-child { margin-left: 8px; border: 1px solid var(--line); }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.nav-links a:focus-visible { outline-offset: -3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.08; letter-spacing: -.045em; }
h1 { margin-bottom: 24px; font-size: clamp(48px, 6.1vw, 86px); }
h2 { margin-bottom: 20px; font-size: clamp(32px, 3.7vw, 50px); }
h3 { margin-bottom: 12px; font-size: 23px; letter-spacing: -.03em; }
.eyebrow, .section-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--emerald); font: 600 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before, .section-eyebrow::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; background: currentColor; }
.lead { max-width: 510px; margin-bottom: 24px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.section-heading { max-width: 680px; margin-bottom: 38px; }
.section-lead { max-width: 600px; margin-bottom: 0; color: var(--muted); font-size: 16px; }
.button, .copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; border: 1px solid var(--emerald); border-radius: 0px; background: var(--emerald); color: var(--ink); font: 700 12px/1.2 var(--mono); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.button { padding: 0 23px; }
.button-support { border-color: var(--line-strong); background: transparent; color: var(--text); }
.button:hover, .copy-button:hover { border-color: #dcf5bf; background: #dcf5bf; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero { padding: 0; }
.hero-grid { position: relative; isolation: isolate; display: grid; align-items: center; min-height: 700px; background: #0b192a; }
.hero-content { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; }
.hero-copy { width: 49%; max-width: 600px; padding: 30px; background: rgba(14, 26, 21, .94); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-copy h1 { font-size: clamp(48px, 5.7vw, 82px); }
.hero-copy h1 span { color: var(--emerald); }
.hero-copy .lead { max-width: 450px; }
.hero-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focal-x) center; }
.hero-highlights { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 25px 0; color: var(--muted); font: 500 11px/1.5 var(--mono); }
.hero-highlights span { display: flex; align-items: center; gap: 10px; }
.hero-highlights span::before { content: "+"; color: var(--emerald); }
.status-strip, .panel-status { display: flex; flex-wrap: wrap; gap: 16px; }
.status-strip { margin: 20px 0; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; color: var(--muted); font: 500 11px/1.4 var(--mono); }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 0px; background: var(--quiet); }
.status-dot.is-online { background: var(--emerald); box-shadow: 0 0 0 3px rgba(196,230,157,.12); }
.join-panel, .growth-join-panel { padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.join-panel { margin-top: 40px; }
.join-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.join-panel .section-eyebrow { margin-bottom: 8px; font-size: 10px; }
.join-panel h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }
.growth-join-panel { display: grid; gap: 22px; }
.growth-join-panel .section-heading { margin: 0; }
.join-list { display: grid; grid-template-columns: 1.25fr 1fr .8fr; gap: 26px; }
.join-item { min-width: 0; border-left: 1px solid var(--line); padding-left: 24px; }
.join-item:first-child { border-left: 0; padding-left: 0; }
.join-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--muted); font: 500 10px/1.4 var(--mono); }
.join-label span:last-child { color: var(--quiet); }
.address-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.address { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font: 500 clamp(15px, 1.65vw, 21px)/1.4 var(--mono); overflow-wrap: anywhere; }
.copy-button { min-width: 52px; min-height: 44px; padding: 0 10px; flex: 0 0 auto; border-color: var(--line-strong); background: transparent; color: var(--text); font-size: 11px; }
main > section:not(.hero) { padding: 96px 0; border-top: 1px solid var(--line); }
main > section[id], main > aside[id], article[id], .growth-join-panel[id] { scroll-margin-top: 112px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: features; }
.card, .faq-item, .command-preview-card, .command-group { min-width: 0; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.grid .card::before, .growth-card::before { counter-increment: features; content: "0" counter(features); display: block; margin-bottom: 38px; color: var(--emerald); font: 500 12px/1 var(--mono); }
.card p, .faq-item p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.guide-panel, .rules, .contact-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 8vw, 110px); align-items: start; }
#rules { background: #e8eadf; color: #22352b; }
#rules .section-eyebrow { color: #496135; }
#rules .section-lead, #rules .rules-list li, #rules .notice { color: #465a4b; }
#rules .rules-list li { border-color: #c4cec0; }
.guide-steps, .rules-list, .contact-reasons { display: grid; margin: 0; padding: 0; list-style: none; }
.guide-steps { margin-top: 28px; counter-reset: steps; }
.guide-steps li { counter-increment: steps; display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.guide-steps li::before { content: "0" counter(steps); color: var(--emerald); font: 500 12px/1.8 var(--mono); }
.step-text { color: var(--muted); font-size: 14px; }
.step-text strong { color: var(--text); }
.faq-list { display: grid; gap: 0; }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { padding-top: 0; }
.faq-item h3 { font-size: 20px; }
.inline-code { display: inline-block; padding: 3px 6px; border: 1px solid var(--line); border-radius: 0px; background: var(--ink); color: var(--emerald); font: 500 .88em/1.4 var(--mono); overflow-wrap: anywhere; }
.notice { margin-top: 28px; padding: 0 0 0 18px; border-left: 2px solid #819568; color: var(--muted); font-size: 13px; }
.rules-list { counter-reset: rules; }
.rules-list li { position: relative; padding: 17px 0 17px 36px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rules-list li:first-child { padding-top: 0; }
.rules-list li::before { counter-increment: rules; content: "0" counter(rules); position: absolute; left: 0; color: #587145; font: 500 11px/2 var(--mono); }
.commands-preview-panel, .commands-catalog-panel { min-width: 0; }
.commands-preview-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.commands-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.command-preview-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); text-decoration: none; font-size: 13px; }
.command-preview-card .inline-code { justify-self: start; font-size: 15px; background: transparent; padding: 0; border: 0; }
.command-preview-card span:last-child { grid-column: 1 / -1; }
.command-preview-card::after { content: "↗"; grid-column: 2; grid-row: 1; color: var(--quiet); }
.command-preview-card:hover { border-color: var(--emerald-strong); background: var(--surface-2); }
.commands-preview-actions { display: flex; justify-content: flex-start; margin-top: 26px; }
#support { padding: 40px 0; }
#support .contact-panel { grid-template-columns: 1fr auto; align-items: center; }
#support h2 { font-size: 27px; margin-bottom: 10px; }
#support .section-eyebrow { margin-bottom: 12px; }
#support .section-lead { font-size: 14px; }
#contact { background: var(--surface-2); }
.contact-reasons { padding-top: 35px; }
.contact-reasons li { padding: 20px 0; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: 14px; }
footer { padding: 38px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-grid { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.footer-grid .brand { font-size: 18px; color: var(--text); }
.footer-grid nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-grid nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-grid nav a:hover { color: var(--emerald); }
.disclaimer { margin-top: 16px; color: var(--quiet); font: 400 9px/1.7 var(--mono); letter-spacing: .02em; }
/* Every public guide keeps the same typography, spacing, and terrain colors. */
.commands-page-main, .growth-main { min-height: calc(100vh - 88px); padding: 48px 0 80px; }
.commands-page-intro { display: grid; gap: 24px; padding-bottom: 44px; }
.commands-page-intro h1 { max-width: 900px; margin-bottom: 0; }
.commands-page-intro .section-lead { max-width: 600px; }
.commands-breadcrumb { display: flex; align-items: center; gap: 12px; color: var(--quiet); font: 500 11px/1.5 var(--mono); }
.commands-breadcrumb a { color: var(--muted); }
.command-grid--catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.command-group { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.command-group h2 { margin-bottom: 22px; font-size: 27px; }
.command-list { display: grid; margin: 0; padding: 0; list-style: none; }
.command-list li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.command-list li:last-child { border: 0; padding-bottom: 0; }
.commands-page-note { margin: 26px 0 0; color: var(--muted); font-size: 14px; }
.commands-help-link { color: var(--emerald); }
.growth-layout { display: grid; gap: 44px; }
.growth-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .48fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.growth-hero h1 { max-width: 780px; }
.growth-hero .actions { margin-bottom: 0; }
.growth-proof { display: grid; gap: 12px; padding: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.growth-proof img { width: 100%; height: 180px; object-fit: cover; object-position: center 70%; margin-bottom: 12px; }
.growth-proof strong, .growth-proof span { margin: 0 24px; }
.growth-proof strong { font: 500 25px/1.1 var(--display); letter-spacing: -.04em; }
.growth-proof span { color: var(--muted); font-size: 12px; }
.growth-proof .growth-proof-kicker { color: var(--emerald); font: 500 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.growth-section { padding: 44px 0 0; border-top: 1px solid var(--line); }
.growth-section .section-heading { margin-bottom: 28px; }
.growth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: features; }
.growth-join { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.growth-join h2 { margin-bottom: 12px; font-size: 32px; }
.growth-join .section-eyebrow { margin-bottom: 16px; }
/* Block-built controls and inventory panels. Body copy stays readable. */
.mark { border: 2px solid var(--block-edge); box-shadow: inset 3px 3px 0 #dfefc7, inset -4px -4px 0 #719154, 3px 3px 0 var(--block-edge); }
.nav-links a { font-family: var(--mono); font-size: 12px; }
.hero-copy { border: 2px solid var(--block-edge); box-shadow: inset 3px 3px 0 var(--block-light), inset -3px -3px 0 #16251b, 6px 6px 0 rgba(0,0,0,.35); }
.hero-copy h1 { text-shadow: 3px 3px 0 #050c08; }
.eyebrow::before, .section-eyebrow::before { width: 8px; height: 8px; box-shadow: 3px 3px 0 rgba(145,182,110,.3); }
.button, .copy-button { border: 2px solid var(--block-edge); box-shadow: inset 2px 2px 0 rgba(255,255,255,.28), inset -3px -3px 0 rgba(0,0,0,.28), 0 4px 0 var(--block-edge); }
.button-support, .copy-button { background: var(--surface-2); }
.button:hover, .copy-button:hover { background: #dcf5bf; border-color: var(--emerald); }
.button:active, .copy-button:active { box-shadow: inset 2px 2px 0 rgba(0,0,0,.3), 0 1px 0 var(--block-edge); transform: translateY(3px); }
.join-panel, .growth-join-panel, .card, .command-group, .growth-join { border: 2px solid var(--block-edge); box-shadow: inset 2px 2px 0 var(--block-light), inset -2px -2px 0 #142019, 4px 4px 0 var(--block-edge); }
.command-preview-card { border: 2px solid var(--block-edge); box-shadow: inset 2px 2px 0 #34473b, inset -2px -2px 0 #111d16; }
.command-preview-card:hover { box-shadow: inset 2px 2px 0 var(--emerald-strong), inset -2px -2px 0 #34473b; }
.inline-code { border-color: #425646; box-shadow: inset 2px 2px 0 #080f0c; }
#features .card { border-top: 5px solid var(--emerald-strong); }
#features .card::before { content: ""; width: 40px; height: 40px; margin-bottom: 24px; background-repeat: no-repeat; background-size: contain; image-rendering: pixelated; }
#features .card:nth-child(1)::before { background-image: url("/assets/ravia-block.svg"); }
#features .card:nth-child(2)::before { background-image: url("/assets/ravia-shield.svg"); }
#features .card:nth-child(3)::before { background-image: url("/assets/ravia-pickaxe.svg"); }
#rules { border-top: 6px solid #91a17e; border-bottom: 6px solid #c1c9b3; }
.guide-steps li::before { align-self: start; padding: 4px 0; text-align: center; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 2px 2px 0 var(--block-edge); }
@media (max-width: 1100px) {
  :root { --wrap: calc(100% - 48px); }
  .nav { gap: 16px; }
  .nav-links a { padding: 0 10px; }
  .join-list { gap: 18px; }
  .join-item { padding-left: 18px; }
  .join-label { flex-direction: column; gap: 3px; }
  .address { font-size: 16px; }
}
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: 8px; padding: 16px 0 12px; }
  .nav-links { justify-content: flex-start; width: 100%; }
  .nav-links a:first-child { padding-left: 0; padding-right: 18px; }
  .hero-grid { min-height: 660px; }
  .hero-copy h1 { font-size: clamp(43px, 6.1vw, 56px); }
  .hero-copy .actions { flex-direction: column; align-items: stretch; }
  .join-list { grid-template-columns: 1fr; gap: 16px; }
  .join-item, .join-item:first-child { padding: 0 0 16px; border-left: 0; border-bottom: 1px solid var(--line); }
  .join-item:last-child { padding-bottom: 0; border-bottom: 0; }
  .join-label { flex-direction: row; }
  .address { font-size: 21px; }
  .hero-highlights { justify-content: flex-start; }
  main > section[id], main > aside[id], article[id], .growth-join-panel[id] { scroll-margin-top: 150px; }
  .grid, .growth-grid { gap: 14px; }
  .card { padding: 22px; }
  .guide-panel, .rules, .contact-panel { gap: 40px; }
  .commands-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .growth-hero { grid-template-columns: minmax(0, 1fr) minmax(240px, .6fr); gap: 30px; }
}
@media (max-width: 700px) {
  :root { --wrap: calc(100% - 40px); }
  header { position: static; }
  .nav { gap: 12px; }
  .brand { font-size: 17px; }
  .nav-links { flex-wrap: wrap; gap: 2px 4px; overflow: visible; white-space: normal; }
  .nav-links a:first-child { padding: 0 12px; }
  .nav-links a:last-child { margin-left: 0; }
  .nav-links a { padding: 0 12px; font-size: 12px; }
  .guide-panel, .rules, .contact-panel, .growth-hero { grid-template-columns: 1fr; }
  /* Keep the flag below the text even when the text grows on a narrow screen. */
  .hero-grid { min-height: 0; padding-bottom: var(--hero-mobile-clearance); }
  .hero-content { padding-top: 24px; padding-bottom: 0; }
  .hero-copy { width: 100%; max-width: none; padding: 22px; }
  .hero-copy h1, h1 { font-size: clamp(48px, 10.8vw, 70px); }
  .hero-copy .lead { max-width: 540px; }
  .hero-copy .actions { flex-direction: row; margin-bottom: 12px; }
  .hero-copy .actions .button { flex: 1 1 auto; }
  .hero-scene { top: auto; height: var(--hero-mobile-scene-height); }
  .hero-scene img { object-position: var(--hero-focal-x) bottom; }
  .hero-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 10px; }
  .join-panel { margin-top: 24px; }
  .join-panel, .growth-join-panel { padding: 24px; }
  .join-panel-head { align-items: start; flex-direction: column; gap: 14px; }
  .join-panel h2 { font-size: 26px; }
  main > section:not(.hero) { padding: 64px 0; }
  main > section[id], main > aside[id], article[id], .growth-join-panel[id] { scroll-margin-top: 20px; }
  .section-heading { margin-bottom: 28px; }
  .grid, .growth-grid, .command-grid--catalog { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .grid .card::before, .growth-card::before { margin-bottom: 24px; }
  .commands-preview-grid { grid-template-columns: 1fr 1fr; }
  .command-preview-card { padding: 18px; gap: 12px; }
  .commands-preview-head { margin-bottom: 28px; }
  #support .contact-panel, .growth-join { grid-template-columns: 1fr; }
  #support .button, .growth-join .button { justify-self: start; }
  .contact-reasons { padding-top: 0; }
  .footer-grid { flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .footer-grid nav { gap: 26px; }
  .commands-page-main, .growth-main { padding-top: 30px; padding-bottom: 56px; }
  .commands-page-intro { gap: 26px; }
  .growth-layout { gap: 32px; }
  .growth-hero { gap: 32px; }
  .growth-proof { display: none; }
  .growth-section { padding-top: 32px; }
  .growth-join { padding: 24px; }
}
@media (max-width: 380px) {
  :root { --wrap: calc(100% - 32px); }
  .hero-copy h1, h1 { font-size: 44px; }
  .hero-copy .actions { flex-direction: column; }
  .join-panel, .growth-join-panel { padding: 18px; }
  .address { font-size: 17px; }
  .hero-highlights { grid-template-columns: 1fr; }
  .commands-preview-grid { grid-template-columns: 1fr; }
  .command-group { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
