/* Fonts load from catch/fonts with relative URLs, so they resolve under any base path. */
@font-face {
  font-family: 'Inter';
  src: url('./catch/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('./catch/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* Change --accent to match ACCENT in src/brand.js. */
:root {
  --bg: #050b1a;
  --surface: #0e1a33;
  --border: #1c2d4d;
  --text: #e6eefc;
  --text-strong: #ffffff;
  --muted: #9aaed4;
  --accent: #E9B949;
  --accent-hi: #F2CB74;
  --accent-deep: #1E3A8A;
  --green: #2bd98a;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--accent-hi); }
h1, h2, h3 { color: var(--text-strong); line-height: 1.25; }
.muted { color: var(--muted); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.brand { color: var(--text-strong); font-weight: 700; font-size: 18px; text-decoration: none; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.avatar { width: 28px; height: 28px; border-radius: 50%; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent-hi); font: inherit; cursor: pointer; text-decoration: underline; }

.page { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 32px 24px; }

.button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--text-strong);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}
.button-primary { background: var(--accent); color: var(--accent-deep); }
.button-ghost { background: transparent; }
.button-small { padding: 6px 14px; font-size: 14px; }

/* The galleon background sits behind a band's words: the image fills the band, a shade from the page colour fades it
   out from the left so the text reads. */
.hero, .brand-band { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); }
.hero { margin-bottom: 32px; padding: 48px 32px; }
.brand-band { margin-bottom: 24px; padding: 32px; }
.brand-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before, .brand-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 25%, transparent); }
.hero-logo { display: block; width: 120px; height: auto; margin: 0 0 16px; }
.hero h1 { font-size: 40px; margin: 0 0 12px; }
.lead { max-width: 36em; color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.parts h2 { margin-bottom: 0; }
.parts-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; list-style: none; margin: 16px 0 0; padding: 0; }
.parts-list li { padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 700; overflow-wrap: anywhere; }
.price { margin: 20px 0 0; color: var(--accent-hi); font-weight: 700; }

.card { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.narrow { max-width: 520px; margin: 32px auto; }
.error-card { text-align: center; }
.empty { color: var(--muted); }

.page-head h1 { margin-bottom: 4px; }
.server-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.server { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.server-icon { width: 44px; height: 44px; border-radius: 50%; }
.server-icon-blank { display: inline-flex; align-items: center; justify-content: center; background: var(--border); font-weight: 700; }
.server-name { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.status { color: var(--muted); font-size: 14px; font-weight: 700; }
.status-on { color: var(--green); }

.site-footer { padding: 20px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }
