:root {
  color-scheme: dark;
  --bg: #151310;
  --panel: #1c1915;
  --text: #f7efe4;
  --muted: #baaea0;
  --accent: #ff9a4d;
  --line: #41382c;
  --header-height: 4.5rem;
  --ease-out: cubic-bezier(.2, .7, .25, 1);
  --mono: ui-monospace, Consolas, monospace;
  font-family: system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }
body { margin: 0; color: var(--text); background: var(--bg); }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
code { font-family: var(--mono); }
.wrap { width: min(1184px, calc(100% - 88px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 3; top: .75rem; left: .75rem; padding: .75rem 1rem; border-radius: 5px; background: var(--accent); color: #251608; }
.skip-link:not(:focus) { clip-path: inset(50%); }

.header { position: sticky; top: 0; z-index: 2; background: #181510; box-shadow: 0 8px 24px #0f0b0840; }
@supports (backdrop-filter: blur(10px)) {
  .header { background: #181510e8; backdrop-filter: blur(10px); }
}
.header-content, .footer-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-content { min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; font-size: 1.47rem; font-weight: 850; letter-spacing: -.06em; text-decoration: none; white-space: nowrap; }
.brand > span { color: var(--accent); }
.brand-icon { flex: none; margin-right: 9px; border: 1px solid #685747; border-radius: 5px; }
nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 35px); }
nav > a:not(.button) { color: var(--muted); text-decoration: none; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: .62em 1.12em;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .9375rem;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 170ms var(--ease-out);
}
.button-primary { background: var(--accent); color: #251608; }
.button-dark { background: #241e18eb; color: var(--text); border-color: #675040; }
.button-outline { background: transparent; color: var(--accent); border-color: #875837; }
.button, .copy-button { touch-action: manipulation; }
@media (hover: hover) {
  nav > a:not(.button):hover { color: var(--text); }
  .button-primary:hover { background: #ffb57c; }
  .button-dark:hover, .button-outline:hover { background: #35291e; border-color: #a57555; }
}
.button:active, .copy-button:active { transform: scale(.97); transition-duration: 75ms; }
.button-primary:active { background: #e78741; }
.button-dark:active, .button-outline:active, .copy-button:active { background: #493123; }

.hero { isolation: isolate; position: relative; overflow: hidden; background: #221a14; }
.hero-art, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-art { object-fit: cover; object-position: 65% 50%; }
.hero::after { content: ''; background: linear-gradient(90deg, #151310 0%, #151310f2 15%, #151310be 35%, #15131038 61%, transparent 80%), linear-gradient(0deg, #151310d4 0%, transparent 36%); }
.hero-content { display: flex; flex-direction: column; justify-content: center; min-height: clamp(480px, 67vh, 660px); padding-block: 60px 78px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 19px; color: var(--accent); font: 650 .875rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .105em; }
.eyebrow > span { display: inline-block; width: 20px; height: 2px; background: currentColor; }
h1, h2 { margin: 0; line-height: 1.02; }
h1 { font-size: clamp(4rem, 7.7vw, 7.5rem); font-weight: 930; letter-spacing: -.06em; }
h1 em { color: var(--accent); font-style: normal; }
.hero-summary { max-width: 420px; color: #eaded2; margin: 25px 0 30px; font-size: clamp(1.04rem, 1.6vw, 1.25rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .button { min-height: 50px; }

.status { background: var(--panel); border-block: 1px solid var(--line); }
.status-grid { display: grid; grid-template-columns: 1.45fr .82fr .9fr 1fr; padding-block: 22px 15px; margin-block: 0; }
.metric + .metric { padding-left: clamp(14px, 3vw, 36px); border-left: 1px solid var(--line); }
.metric dt { color: var(--muted); font-size: .9rem; }
.metric dd { display: flex; align-items: center; gap: 9px; min-height: 38px; margin: 0; font: 710 clamp(1.05rem, 2vw, 1.55rem)/1.25 var(--mono); }
.metric code { font-size: clamp(1rem, 2vw, 1.42rem); }
.copy-button { order: 1; display: inline-grid; place-items: center; width: 38px; height: 44px; margin: -3px -3px -3px 0; border: 0; border-radius: 4px; background: transparent; color: var(--accent); cursor: pointer; transition: transform 170ms var(--ease-out); }
.copy-icon { width: 12px; height: 13px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.copy-icon::after { content: ''; position: absolute; inset: -5px 3px 3px -5px; border: 1px solid currentColor; border-right: 0; border-bottom: 0; border-radius: 2px; }
.copy-button[data-copied] .copy-icon { width: 7px; height: 13px; border-width: 0 2px 2px 0; transform: rotate(42deg); }
.copy-button[data-copied] .copy-icon::after { display: none; }
.status-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 16px; padding-bottom: 13px; color: var(--muted); font-size: .875rem; }
.status-note p { margin: 0; }
.status-state [data-checked] { font-variant-numeric: tabular-nums; }
.status-state::before { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 9px 2px 0; border-radius: 50%; background: #a99884; }
.status-state[data-level='online']::before { background: #9fcd83; }
.status-state[data-level='offline']::before { background: var(--accent); }
.status-note a { text-underline-offset: .25em; }

.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); padding-block: clamp(48px, 8vw, 94px); }
.connect, .wallet { padding: clamp(16px, 3vw, 32px); border: 1px solid var(--line); border-radius: 6px; }
.connect { background: var(--panel); }
h2 { font-size: clamp(2.6rem, 5vw, 4.15rem); letter-spacing: -.045em; }
.steps { padding-left: 1.4em; margin: 23px 0; color: var(--muted); line-height: 1.65; }
.steps li { padding-left: .35em; margin-block: .32em; }
.steps li::marker { font-family: var(--mono); color: var(--accent); }
.steps strong { color: var(--text); }
.address-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 10px 8px 14px; background: #211c16; border: 1px solid var(--line); border-radius: 5px; }
.address-box + .address-box { margin-top: 8px; }
.address-box span { display: block; margin-bottom: 3px; color: var(--muted); font-size: .875rem; }
.address-box code { color: #ffb481; font-size: clamp(.875rem, 3.6vw, 1rem); }
.address-box .button { min-inline-size: 8.5em; }
.copy-feedback { min-height: 1.3em; margin: 7px 0 0; color: var(--muted); font-size: .875rem; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-underline-offset: .25em; }
.wallet { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 24px; border-color: #65442e; background: linear-gradient(135deg, #2c1f17, #201914 72%); }
.wallet-intro { width: 100%; }
.wallet-intro > p:last-child { color: #ded0c1; max-width: 36ch; margin: 23px 0 0; line-height: 1.65; }
.wallet-intro a { color: #ffb481; text-underline-offset: .2em; }
.wallet img { width: min(23%, 100px); height: auto; float: right; margin: -8px 0 5px 7px; transform: rotate(12deg); }
.modpack { padding-block: clamp(38px, 6vw, 66px); }
.modpack > .text-link { margin-top: 1rem; }
.modpack h2 { font-size: clamp(2.25rem, 4.8vw, 3.6rem); }
.modpack-meta { margin: 12px 0 24px; color: var(--muted); }
.downloads { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 8vw, 105px); }
.downloads h3 { margin: 0; font-size: 1.25rem; }
.downloads p { max-width: 38ch; margin: 8px 0 14px; color: var(--muted); line-height: 1.55; }
.download-size { margin-inline-start: 8px; color: var(--muted); font-size: .875rem; white-space: nowrap; }
.footer { border-top: 1px solid var(--line); }
.footer-content { min-height: 74px; font-size: .875rem; }
.footer nav { flex-wrap: wrap; gap: 4px clamp(12px, 3vw, 30px); }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .metric + .metric { padding-left: 14px; }
}
@media (max-width: 680px) {
  :root { --header-height: 3.875rem; }
  .wrap { width: calc(100% - 36px); }
  .brand { font-size: 1.26rem; }
  .brand-icon { width: 30px; height: 30px; margin-right: 7px; }
  nav .help-link, nav .hub-link { display: none; }
  .hero-art { object-position: 65% 42%; }
  .hero::after { background: linear-gradient(0deg, #151310 0%, #151310e8 20%, #151310ab 52%, #15131024 86%); }
  .hero-content { min-height: 525px; justify-content: flex-end; padding-block: 125px 37px; }
  h1 { font-size: clamp(2.6rem, 11.5vw, 4.65rem); letter-spacing: -.045em; }
  .hero-summary { margin: 17px 0 23px; }
  .hero-actions .button { min-height: 46px; }
  .status-grid { grid-template-columns: 1fr 1fr; gap: 15px 0; padding-block: 17px 9px; }
  .metric:nth-child(odd) { padding-left: 0; border: 0; }
  .metric dd { min-height: 32px; }
  .metric code { font-size: .875rem; }
  .copy-button { width: 28px; }
  .details { grid-template-columns: 1fr; gap: 26px; }
  .downloads { grid-template-columns: 1fr; gap: 24px; }
  .downloads section + section { padding-top: 23px; border-top: 1px solid var(--line); }
  .footer-content { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; padding-block: 15px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  .hero-actions .button { padding-inline: .65em; }
  .metric code { font-size: .81rem; }
  .metric dd { gap: 4px; }
  .address-box .button { padding-inline: .55em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .copy-button { transition: none; }
  .button:active, .copy-button:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .header { background: #181510; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #eddfd1; --line: #87725d; }
  .header { box-shadow: 0 1px var(--line); }
}
