
:root {
  --ink: #eee5cf;
  --ink-dark: #241c14;
  --muted: #b9ad94;
  --night: #12100d;
  --stone: #1c1915;
  --stone-2: #25211b;
  --wood: #3b2818;
  --wood-dark: #21160f;
  --parchment: #d9c69b;
  --parchment-light: #eee1bf;
  --parchment-dark: #a99062;
  --crimson: #6d2024;
  --crimson-dark: #3b1216;
  --brass: #b7832f;
  --brass-light: #e3c473;
  --iron: #756e63;
  --success: #6e9d67;
  --warning: #d6a447;
  --danger: #b65d58;
  --border: rgba(190, 145, 62, .36);
  --border-soft: rgba(205, 179, 119, .17);
  --shadow: 0 18px 42px rgba(0,0,0,.38);
  --max: 1180px;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.62;
  background:
    radial-gradient(circle at 16% -10%, rgba(109,32,36,.22), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(183,131,47,.11), transparent 27rem),
    linear-gradient(180deg, #181510, #0f0d0b 70%, #0b0908);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url('/assets/grain.svg');
  opacity: .14;
  mix-blend-mode: soft-light;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 80%);
  z-index: 0;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed; top: 8px; left: 8px; transform: translateY(-140%);
  z-index: 1000; padding: .65rem 1rem; background: var(--parchment-light);
  color: var(--ink-dark); border: 2px solid var(--brass); text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.site-shell { position: relative; z-index: 1; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(31,22,15,.98), rgba(18,14,11,.96));
  border-bottom: 3px ridge rgba(183,131,47,.58);
  box-shadow: 0 8px 24px rgba(0,0,0,.38);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 4px;
  background: repeating-linear-gradient(90deg, transparent 0 20px, rgba(227,196,115,.33) 20px 22px, transparent 22px 42px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-width: max-content; }
.brand img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,.45)); }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-family: var(--serif); font-size: 1.28rem; letter-spacing: .07em; text-transform: uppercase; }
.brand-copy span { color: var(--brass-light); font-size: .69rem; letter-spacing: .17em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a { position: relative; color: var(--muted); text-decoration: none; padding: .72rem .78rem; font-size: .88rem; font-weight: 750; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .38rem; height: 1px; background: var(--brass-light); transform: scaleX(0); transform-origin: center; transition: transform .18s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; color: var(--ink); background: var(--wood-dark); border: 1px solid var(--border); padding: .64rem .82rem; cursor: pointer; }

.hero { position: relative; overflow: hidden; padding: clamp(4.6rem, 8vw, 7rem) 0 clamp(3.6rem, 6vw, 5rem); }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 45%; height: 640px; background: url('/assets/map-lines.svg') center/cover no-repeat; opacity: .26; filter: sepia(.6); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-copy { position: relative; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: .55rem; color: var(--brass-light); font-size: .74rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before, .kicker::before { content: "✦"; font-size: .8rem; color: var(--brass); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; margin: 0 0 1rem; text-wrap: balance; }
h1 { max-width: 12ch; font-size: clamp(3.15rem, 7.4vw, 6.15rem); letter-spacing: -.045em; text-shadow: 0 3px 0 rgba(0,0,0,.26); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.025em; }
h3 { font-size: 1.35rem; }
.lede { max-width: 61ch; color: var(--muted); font-size: clamp(1.03rem, 2vw, 1.17rem); }
.gold-text { color: var(--brass-light); text-shadow: 0 2px 0 #4a2a0e; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 47px; padding: .76rem 1.05rem; border: 1px solid transparent; text-decoration: none; font-weight: 850; cursor: pointer; transition: transform .16s ease, filter .16s ease; }
.btn-primary { color: #241709; background: linear-gradient(#e5cc80, #af7627); border-color: #f1dc95 #714515 #714515 #f1dc95; box-shadow: 0 5px 0 #4f2d0e, 0 10px 22px rgba(0,0,0,.28); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-secondary { color: var(--ink); background: linear-gradient(#34271c, #21170f); border-color: #6d5535 #1a100a #1a100a #6d5535; box-shadow: 0 4px 0 #0f0b08; }
.btn-secondary:hover { transform: translateY(-1px); }

.noticeboard {
  position: relative; color: #2a2116; padding: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.7rem;
  background:
    linear-gradient(rgba(255,255,255,.12), rgba(84,55,24,.05)),
    var(--parchment);
  border: 12px solid #3b2817; outline: 3px ridge #76502a;
  box-shadow: var(--shadow), inset 0 0 45px rgba(94,61,22,.18);
  transform: rotate(.35deg);
}
.noticeboard::before, .noticeboard::after { content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e0ba66, #72501e 70%); box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.noticeboard::before { top: 14px; left: 16px; }
.noticeboard::after { top: 14px; right: 16px; }
.noticeboard h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); max-width: 13ch; color: #2b2014; }
.noticeboard p { color: #54442d; }
.noticeboard-label { display: inline-block; margin-bottom: .85rem; color: #6d2024; font-size: .73rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; border-bottom: 1px solid rgba(109,32,36,.35); }
.noticeboard dl { margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.noticeboard dl div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .45rem; border-bottom: 1px dashed rgba(64,46,23,.35); }
.noticeboard dt { font-weight: 800; }
.noticeboard dd { margin: 0; color: #6b5534; }
.wax-seal { position: absolute; right: 20px; bottom: -26px; width: 58px; height: 58px; display: grid; place-items: center; color: #d8b662; font-family: var(--serif); font-size: 1.7rem; font-weight: 900; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9e3737, #61191e 70%); border: 4px double #4c1115; box-shadow: 0 4px 8px rgba(0,0,0,.28); transform: rotate(-8deg); z-index: 2; }

.clan-oath { display: flex; flex-wrap: wrap; gap: .55rem .9rem; padding: 0; margin: 1.35rem 0 0; list-style: none; color: #c6b89f; font-size: .89rem; }
.clan-oath li::before { content: "◆"; color: var(--brass); margin-right: .42rem; font-size: .72rem; }

.section { padding: clamp(3.7rem, 7vw, 6.3rem) 0; }
.section-tight { padding: 1.9rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-head p { max-width: 57ch; color: var(--muted); margin: 0; }
.section-head::after { content: ""; display: block; flex: 1; height: 1px; min-width: 80px; background: linear-gradient(90deg, rgba(183,131,47,.55), transparent); margin-bottom: .65rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }

.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); background: linear-gradient(180deg,#302419,#1e1711); border: 5px ridge rgba(126,87,43,.7); box-shadow: var(--shadow); }
.stat { padding: 1rem 1.15rem; border-right: 1px solid rgba(205,179,119,.18); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); color: var(--brass-light); font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: .84rem; }

.card { position: relative; padding: 1.35rem; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), #211b15; border: 1px solid var(--border); border-radius: 3px; box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(218,190,126,.08); pointer-events: none; }
.card p { color: var(--muted); }
.card-link { text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.card-link:hover { transform: translateY(-2px); border-color: rgba(227,196,115,.58); }
.card .icon, .empty-state .icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 1rem; background: #17120e; border: 1px solid rgba(183,131,47,.42); transform: rotate(-1deg); }
.card .icon img, .empty-state .icon img { width: 30px; height: 30px; }

.route-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 1rem; }
.route-card { position: relative; min-height: 245px; display: flex; flex-direction: column; justify-content: end; padding: 1.7rem; color: var(--ink); text-decoration: none; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(145deg, rgba(109,32,36,.48), rgba(28,22,16,.98)); box-shadow: var(--shadow); }
.route-card:nth-child(2) { background: linear-gradient(145deg, rgba(95,70,31,.48), rgba(28,22,16,.98)); }
.route-card::before { content: ""; position: absolute; inset: 0; opacity: .2; background: url('/assets/map-lines.svg') center/cover; }
.route-card > * { position: relative; }
.route-card h3 { font-size: clamp(1.8rem,3vw,2.6rem); margin-bottom: .5rem; }
.route-card p { max-width: 53ch; color: #cfc2aa; }
.route-card .route-mark { position: absolute; top: 20px; right: 24px; width: 68px; height: 68px; opacity: .85; }
.route-card:hover { border-color: rgba(227,196,115,.68); }

.ledger-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.ledger-item { position: relative; padding: 1.3rem 1.3rem 1.3rem 4.7rem; min-height: 155px; border-top: 1px solid rgba(227,196,115,.45); border-bottom: 1px solid rgba(227,196,115,.18); }
.ledger-item .icon { position: absolute; left: .2rem; top: 1.3rem; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--border); background: #17120e; }
.ledger-item .icon img { width: 32px; height: 32px; }
.ledger-item h3 { margin-bottom: .5rem; }
.ledger-item p { color: var(--muted); margin-bottom: 0; }

.callout { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: clamp(1.5rem,4vw,2.4rem); border: 6px ridge rgba(118,80,42,.76); background: linear-gradient(120deg, #3a2417, #21160f); box-shadow: var(--shadow); }
.callout::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(227,196,115,.13); pointer-events: none; }
.callout p { color: var(--muted); margin-bottom: 0; }

.page-hero { position: relative; padding: clamp(3.8rem,7vw,5.8rem) 0 3rem; overflow: hidden; border-bottom: 1px solid rgba(183,131,47,.18); }
.page-hero::before { content: ""; position: absolute; right: -120px; top: -130px; width: 650px; height: 520px; background: url('/assets/map-lines.svg') center/contain no-repeat; opacity: .16; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 15ch; font-size: clamp(2.8rem,6vw,5rem); }
.breadcrumbs { color: #8f8370; font-size: .83rem; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--brass-light); text-decoration: none; }

.notice { border-left: 4px solid var(--brass); padding: 1rem 1.1rem; color: var(--muted); background: #211a13; border-top: 1px solid rgba(183,131,47,.18); border-bottom: 1px solid rgba(183,131,47,.18); }
.notice strong { color: var(--ink); }
.notice-danger { border-left-color: var(--danger); background: rgba(90,31,31,.22); }
.steps { counter-reset: steps; display: grid; gap: 1rem; }
.step { counter-increment: steps; display: grid; grid-template-columns: 50px 1fr; gap: 1rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px dashed rgba(205,179,119,.16); }
.step::before { content: counter(steps, upper-roman); width: 43px; height: 43px; display: grid; place-items: center; color: #251709; font-family: var(--serif); font-weight: 900; background: var(--parchment); border: 3px double #705024; transform: rotate(-1deg); }
.step h3 { margin-top: .3rem; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--muted); }

.command-list { display: grid; gap: .7rem; }
.command { display: grid; grid-template-columns: minmax(190px,.75fr) 1.25fr; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px dashed rgba(205,179,119,.16); }
.command:last-child { border-bottom: 0; }
.command p { margin: 0; color: var(--muted); }
code { color: #f0d78f; background: #15110d; border: 1px solid rgba(183,131,47,.22); padding: .18rem .42rem; overflow-wrap: anywhere; }
.tabs { display: flex; gap: .45rem; flex-wrap: wrap; margin: 1.4rem 0; }
.tab-btn { cursor: pointer; color: var(--muted); background: #1b1611; border: 1px solid var(--border-soft); padding: .55rem .85rem; font-weight: 800; }
.tab-btn[aria-selected="true"] { color: #251709; background: var(--parchment); border-color: #6f4d22; }
.tab-panel[hidden] { display: none; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .55rem; color: var(--brass-light); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--border); background: rgba(183,131,47,.08); }
.badge-success { color: #b7d7ad; border-color: rgba(110,157,103,.45); background: rgba(110,157,103,.11); }
.badge-muted { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); }
table { width: 100%; min-width: 650px; border-collapse: collapse; background: #1f1914; }
th, td { text-align: left; padding: 1rem; border-bottom: 1px solid rgba(205,179,119,.13); vertical-align: top; }
th { color: var(--brass-light); font-family: var(--serif); font-size: .77rem; text-transform: uppercase; letter-spacing: .12em; }
td { color: var(--muted); }
.filter-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.search-input { flex: 1; min-width: 220px; padding: .78rem .9rem; color: var(--ink); background: #16120e; border: 1px solid var(--border); }
.search-input:focus { outline: 2px solid rgba(227,196,115,.28); border-color: var(--brass-light); }
.empty-state { text-align: center; padding: 2.4rem 1.5rem; color: var(--muted); border: 1px dashed rgba(227,196,115,.34); background: rgba(31,25,20,.55); }
.empty-state .icon { margin-inline: auto; }
.status-list { display: grid; gap: .65rem; }
.status-row { display: flex; justify-content: space-between; gap: 1rem; padding: .82rem 0; border-bottom: 1px dashed rgba(205,179,119,.15); }
.status-row:last-child { border-bottom: 0; }
.status-row span { color: var(--muted); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: .45rem; background: var(--iron); box-shadow: 0 0 0 4px rgba(117,110,99,.12); }
.status-dot.online { background: var(--success); box-shadow: 0 0 0 4px rgba(110,157,103,.12); }
.status-dot.degraded { background: var(--warning); box-shadow: 0 0 0 4px rgba(214,164,71,.12); }
.prose { max-width: 78ch; }
.prose h2 { margin-top: 2.5rem; font-size: 2rem; padding-bottom: .45rem; border-bottom: 1px solid rgba(183,131,47,.24); }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose a { color: var(--brass-light); }
.quote { margin: 2rem 0; padding: 1.4rem 1.55rem; color: #2f2518; font-family: var(--serif); font-size: 1.25rem; background: var(--parchment); border: 8px solid #3c2817; box-shadow: var(--shadow); transform: rotate(-.2deg); }
.small { font-size: .85rem; color: var(--muted); }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.footer { position: relative; margin-top: 4rem; background: #0b0908; border-top: 5px ridge rgba(111,75,35,.72); }
.footer::before { content: ""; position: absolute; top: -11px; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(227,196,115,.28) 18px 20px, transparent 20px 40px); }
.footer-grid { padding: 3rem 0; display: grid; grid-template-columns: 1.35fr repeat(3,.7fr); gap: 2rem; }
.footer h3 { font-size: 1rem; color: var(--brass-light); }
.footer p, .footer a { color: #9f947f; }
.footer a { display: block; text-decoration: none; margin: .36rem 0; }
.footer a:hover { color: var(--ink); }
.footer-bottom { padding: 1rem 0 1.5rem; color: #756e62; font-size: .78rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(205,179,119,.10); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; inset: 76px 1rem auto; display: none; flex-direction: column; align-items: stretch; padding: .65rem; background: #17120e; border: 3px ridge rgba(111,75,35,.72); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .82rem 1rem; }
  .hero-grid, .route-grid { grid-template-columns: 1fr; }
  .hero::before { left: 15%; }
  .noticeboard { transform: none; }
  .ledger-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .ledger-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(205,179,119,.18); }
  .section-head { align-items: start; flex-direction: column; }
  .section-head::after { display: none; }
  .callout { grid-template-columns: 1fr; }
  .command { grid-template-columns: 1fr; gap: .45rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  h1 { font-size: clamp(2.85rem,14vw,4.4rem); }
  .noticeboard dl div { display: grid; gap: .1rem; }
  .wax-seal { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* Adventurer's toolkit */
.resource-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.resource-card { position: relative; min-height: 292px; display: flex; flex-direction: column; padding: 1.35rem; color: var(--ink); text-decoration: none; background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), #211b15; border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(0,0,0,.22); transition: transform .16s ease, border-color .16s ease; }
.resource-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(218,190,126,.08); pointer-events: none; }
.resource-card:hover { transform: translateY(-2px); border-color: rgba(227,196,115,.62); }
.resource-card .icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1rem; border: 1px solid var(--border); background: #17120e; }
.resource-card .icon img { width: 31px; height: 31px; }
.resource-card .badge { align-self: start; }
.resource-card h3 { margin-top: .9rem; margin-bottom: .5rem; font-size: 1.55rem; }
.resource-card p { color: var(--muted); margin: 0 0 1rem; }
.external-label { margin-top: auto; color: var(--brass-light); font-size: .84rem; font-weight: 850; letter-spacing: .04em; }
.install-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1rem; align-items: start; }
.compact-steps .step { grid-template-columns: 44px 1fr; gap: .8rem; padding-bottom: .78rem; }
.compact-steps .step::before { width: 37px; height: 37px; font-size: .82rem; }
.plugin-category { margin-top: 2.4rem; border-top: 5px ridge rgba(126,87,43,.62); background: rgba(24,19,15,.55); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.plugin-category:first-of-type { margin-top: 0; }
.plugin-category-head { display: grid; grid-template-columns: 1fr minmax(240px,.72fr); gap: 2rem; align-items: end; padding: 1.35rem 1.4rem; background: linear-gradient(90deg, rgba(59,40,24,.85), rgba(27,21,16,.62)); border-bottom: 1px solid rgba(205,179,119,.16); }
.plugin-category-head h2 { margin: .65rem 0 0; font-size: clamp(1.7rem,3vw,2.4rem); }
.plugin-category-head p { margin: 0; color: var(--muted); }
.plugin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 2rem; padding: .2rem 1.4rem .7rem; }
.plugin-entry { padding: 1.25rem 0; border-bottom: 1px dashed rgba(205,179,119,.17); }
.plugin-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.plugin-title h3 { margin: 0; font-size: 1.28rem; }
.plugin-entry p { margin: .5rem 0 0; color: var(--muted); }
.source-pill { flex: 0 0 auto; padding: .2rem .45rem; color: var(--brass-light); font-size: .67rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; background: rgba(183,131,47,.08); border: 1px solid rgba(183,131,47,.32); }
.source-pill-built-in { color: #b7d7ad; background: rgba(110,157,103,.09); border-color: rgba(110,157,103,.38); }

@media (max-width: 1100px) {
  .resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .install-layout, .plugin-category-head { grid-template-columns: 1fr; }
  .plugin-category-head { gap: .55rem; }
}
@media (max-width: 720px) {
  .resource-grid, .plugin-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 0; }
  .plugin-title { align-items: start; }
}

@media (max-width: 560px) { .brand img { width: 52px; height: 52px; } }

/* Hall of Yon: Mightyon founder monument */
.hall-page-hero {
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
}
.hall-page-hero h1 {
  max-width: 15ch;
}
.hall-founder-section {
  padding-top: 1rem;
}
.mightyon-monument {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, .92fr) minmax(330px, 1.12fr) minmax(245px, .68fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  padding: clamp(1rem, 2vw, 1.45rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 35%, rgba(183,131,47,.14), transparent 27rem),
    linear-gradient(135deg, rgba(59,40,24,.52), rgba(18,15,12,.86) 45%, rgba(10,9,8,.96));
  border: 6px ridge rgba(126,87,43,.78);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(227,196,115,.13);
}
.mightyon-monument::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(227,196,115,.16);
}
.mightyon-monument::after {
  content: "Y";
  position: absolute;
  right: 1.2rem;
  bottom: -4.3rem;
  color: rgba(183,131,47,.035);
  font-family: var(--serif);
  font-size: 18rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.mightyon-portrait-panel,
.mightyon-biography,
.mightyon-stats,
.mightyon-quote {
  position: relative;
  z-index: 1;
}
.mightyon-portrait-frame {
  height: 100%;
  min-height: 620px;
  overflow: hidden;
  background: #0e0c09;
  border: 5px ridge rgba(126,87,43,.8);
  box-shadow: 0 18px 34px rgba(0,0,0,.42), inset 0 0 34px rgba(0,0,0,.3);
}
.mightyon-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.86) contrast(1.04) brightness(.93);
}
.mightyon-biography {
  align-self: center;
  padding: clamp(.4rem, 1vw, .9rem) 0;
}
.mightyon-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin: .8rem 0 1.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(183,131,47,.42);
}
.mightyon-title-row h2 {
  margin: 0;
  color: var(--brass-light);
  font-size: clamp(3rem, 5.5vw, 5.1rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #4a2a0e, 0 8px 20px rgba(0,0,0,.42);
}
.mightyon-rank {
  margin: .15rem 0 0;
  color: var(--parchment);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.mightyon-crown {
  color: var(--brass-light);
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 1;
  text-shadow: 0 4px 0 #4a2a0e;
  transform: rotate(4deg);
}
.mightyon-biography p {
  margin: 0 0 1.05rem;
  color: #c9bea8;
}
.mightyon-biography strong {
  color: #f0d78f;
}
.mightyon-declaration {
  margin-top: 1.35rem !important;
  color: var(--brass-light) !important;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 900;
  line-height: 1.2;
}
.mightyon-stats {
  align-self: stretch;
  padding: 1.15rem;
  background: linear-gradient(180deg, rgba(42,33,24,.93), rgba(17,14,11,.96));
  border: 3px double rgba(183,131,47,.58);
  box-shadow: inset 0 0 28px rgba(0,0,0,.35);
}
.mightyon-stats-header {
  display: flex;
  gap: .8rem;
  align-items: center;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(183,131,47,.3);
}
.mightyon-stats-header .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #17120e;
  border: 1px solid var(--border);
}
.mightyon-stats-header .icon img {
  width: 28px;
  height: 28px;
}
.mightyon-stats-header span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mightyon-stats-header h3 {
  margin: .2rem 0 0;
  color: var(--brass-light);
  font-size: 1.35rem;
}
.legend-stat-list {
  margin: .75rem 0 1rem;
}
.legend-stat-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .7rem;
  align-items: center;
  padding: .72rem 0;
  border-bottom: 1px dashed rgba(205,179,119,.18);
}
.legend-stat-list dt {
  color: #d8cdb8;
  font-family: var(--serif);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.legend-stat-list dd {
  margin: 0;
  color: var(--brass-light);
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: .95;
  text-align: right;
}
.legend-stat-list dd small {
  display: block;
  margin-top: .28rem;
  color: #a99c85;
  font-family: var(--sans);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.mightyon-titles {
  padding: .9rem;
  background: rgba(183,131,47,.06);
  border: 1px solid rgba(183,131,47,.27);
}
.mightyon-titles h3 {
  margin: 0 0 .6rem;
  color: var(--brass-light);
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mightyon-titles ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mightyon-titles li {
  padding: .22rem 0;
  color: #c9bea8;
  font-family: var(--serif);
  font-size: .87rem;
}
.mightyon-titles li::before {
  content: "♛";
  margin-right: .45rem;
  color: var(--brass);
}
.mightyon-quote {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.35rem clamp(1.2rem, 3vw, 2.4rem);
  text-align: center;
  background: linear-gradient(180deg, rgba(52,39,28,.93), rgba(28,21,16,.98));
  border: 3px double rgba(183,131,47,.5);
}
.mightyon-quote p {
  margin: 0;
  color: var(--brass-light);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.28;
}
.mightyon-quote cite {
  display: block;
  margin-top: .6rem;
  color: var(--muted);
  font-family: var(--serif);
  font-style: normal;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hall-records-heading {
  padding-top: clamp(3.4rem, 6vw, 5rem);
}

@media (max-width: 1080px) {
  .mightyon-monument {
    grid-template-columns: minmax(270px, .8fr) minmax(340px, 1.2fr);
  }
  .mightyon-stats {
    grid-column: 1 / -1;
  }
  .legend-stat-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.5rem;
  }
}
@media (max-width: 760px) {
  .mightyon-monument {
    grid-template-columns: 1fr;
    padding: .8rem;
  }
  .mightyon-portrait-frame {
    min-height: 0;
    aspect-ratio: 561 / 669;
  }
  .mightyon-biography {
    padding: .8rem .35rem .2rem;
  }
  .mightyon-title-row h2 {
    font-size: clamp(2.75rem, 15vw, 4.3rem);
  }
  .mightyon-stats,
  .mightyon-quote {
    grid-column: auto;
  }
  .legend-stat-list {
    grid-template-columns: 1fr;
  }
  .mightyon-quote p {
    font-size: 1.35rem;
  }
}

/* Hall of Yon mobile presentation overhaul */
.mightyon-portrait-frame picture {
  display: block;
  width: 100%;
  height: 100%;
}
.mightyon-portrait-panel,
.mightyon-biography,
.mightyon-stats,
.mightyon-quote,
.mightyon-title-row > div {
  min-width: 0;
}

@media (max-width: 760px) {
  .hall-page-hero {
    padding-top: 1.45rem;
    padding-bottom: 1.6rem;
  }
  .hall-page-hero .breadcrumbs {
    margin-bottom: .8rem;
  }
  .hall-page-hero .eyebrow {
    font-size: .67rem;
    letter-spacing: .12em;
  }
  .hall-page-hero h1 {
    max-width: 11ch;
    margin-top: .55rem;
    font-size: clamp(2.15rem, 10.5vw, 3.15rem);
    line-height: .98;
  }
  .hall-page-hero .lede {
    max-width: 30rem;
    margin-top: .8rem;
    font-size: .98rem;
    line-height: 1.5;
  }
  .hall-founder-section {
    padding-top: .45rem;
  }
  .hall-founder-section > .container {
    width: min(100% - 1rem, var(--container));
  }
  .mightyon-monument {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-width: 3px;
    background:
      radial-gradient(circle at 50% 9%, rgba(183,131,47,.18), transparent 18rem),
      linear-gradient(180deg, rgba(38,29,21,.92), rgba(12,10,8,.98));
    box-shadow: 0 18px 44px rgba(0,0,0,.4), inset 0 0 0 1px rgba(227,196,115,.12);
  }
  .mightyon-monument::before {
    inset: 6px;
  }
  .mightyon-monument::after {
    right: -1.5rem;
    bottom: 11rem;
    font-size: 13rem;
  }
  .mightyon-portrait-panel {
    order: 1;
    width: 100%;
    padding: .55rem .55rem 0;
  }
  .mightyon-portrait-frame {
    min-height: 0;
    aspect-ratio: 505 / 520;
    border-width: 2px;
    box-shadow: 0 14px 30px rgba(0,0,0,.46);
  }
  .mightyon-portrait-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    filter: saturate(.9) contrast(1.05) brightness(.95);
  }
  .mightyon-biography {
    order: 2;
    width: 100%;
    padding: 1.15rem 1rem .85rem;
  }
  .mightyon-biography .kicker {
    display: inline-flex;
    max-width: 100%;
    padding: .34rem .5rem;
    overflow-wrap: anywhere;
    background: rgba(183,131,47,.08);
    border: 1px solid rgba(183,131,47,.24);
    font-size: .61rem;
    letter-spacing: .1em;
  }
  .mightyon-title-row {
    align-items: center;
    gap: .55rem;
    margin: .8rem 0 1rem;
    padding-bottom: .85rem;
  }
  .mightyon-title-row h2 {
    max-width: 100%;
    font-size: clamp(2.45rem, 12.5vw, 3.35rem);
    line-height: .9;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
  }
  .mightyon-rank {
    margin-top: .38rem;
    font-size: .78rem;
    line-height: 1.35;
    letter-spacing: .12em;
  }
  .mightyon-crown {
    flex: 0 0 auto;
    font-size: 2.3rem;
  }
  .mightyon-biography p {
    margin-bottom: .95rem;
    font-size: .96rem;
    line-height: 1.58;
    overflow-wrap: anywhere;
  }
  .mightyon-declaration {
    margin: 1.2rem 0 .2rem !important;
    padding: .9rem 1rem;
    background: linear-gradient(90deg, rgba(183,131,47,.12), rgba(183,131,47,.025));
    border-left: 3px solid var(--brass);
    font-size: 1.35rem !important;
    line-height: 1.2 !important;
  }
  .mightyon-stats {
    order: 3;
    width: calc(100% - 1.1rem);
    margin: 0 .55rem .55rem;
    padding: .95rem;
    border-width: 2px;
  }
  .mightyon-stats-header {
    padding-bottom: .75rem;
  }
  .mightyon-stats-header .icon {
    width: 38px;
    height: 38px;
  }
  .mightyon-stats-header h3 {
    font-size: 1.22rem;
  }
  .legend-stat-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin: .75rem 0 1rem;
  }
  .legend-stat-list > div {
    display: flex;
    min-width: 0;
    min-height: 96px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: .45rem;
    padding: .75rem;
    background: rgba(183,131,47,.045);
    border: 1px solid rgba(205,179,119,.16);
  }
  .legend-stat-list > div:last-child {
    grid-column: 1 / -1;
    min-height: 82px;
  }
  .legend-stat-list dt {
    font-size: .7rem;
    line-height: 1.3;
    letter-spacing: .055em;
  }
  .legend-stat-list dd {
    width: 100%;
    font-size: 1.45rem;
    text-align: left;
  }
  .legend-stat-list dd small {
    font-size: .51rem;
    line-height: 1.3;
    letter-spacing: .08em;
  }
  .mightyon-titles {
    padding: .8rem;
  }
  .mightyon-titles li {
    padding: .28rem 0;
    font-size: .84rem;
    line-height: 1.35;
  }
  .mightyon-quote {
    order: 4;
    width: calc(100% - 1.1rem);
    margin: 0 .55rem .55rem;
    padding: 1rem .9rem;
    border-width: 2px;
  }
  .mightyon-quote p {
    font-size: 1.16rem;
    line-height: 1.35;
  }
  .mightyon-quote cite {
    margin-top: .48rem;
    font-size: .68rem;
  }
  .hall-records-heading {
    padding-top: 2.5rem;
  }
  .hall-records-heading .section-head {
    gap: .7rem;
  }
  .hall-records-heading h2 {
    font-size: 1.85rem;
  }
}

@media (max-width: 370px) {
  .mightyon-title-row h2 {
    font-size: 2.25rem;
  }
  .mightyon-crown {
    font-size: 2rem;
  }
  .mightyon-biography {
    padding-inline: .85rem;
  }
  .mightyon-stats {
    padding: .8rem;
  }
  .legend-stat-list {
    grid-template-columns: 1fr;
  }
  .legend-stat-list > div:last-child {
    grid-column: auto;
  }
}

@media (min-width: 761px) {
  .mightyon-crown {
    display: none;
  }
}
