/* Shared styles for every page on the site */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

/* Goodmountain by Hermann S Designs (title + nav). Licence: /assets/Goodmountain-LICENSE.md. Added 2026-10-20. */
@font-face {
  font-family: "Goodmountain";
  src: url("/assets/Goodmountain-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0f13;
  --surface: #161920;
  --surface-2: #1d2129;
  --border: #262a33;
  --text: #e8eaed;
  --muted: #8b93a1;
  --accent: #d4a64a;
  --online: #3fb950;
  --offline: #f85149;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header + navigation */
.site-header { border-bottom: 1px solid var(--border); background: rgba(13, 15, 19, 0.85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 38px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: Goodmountain, Cinzel, Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #f7e3a3 0%, #d4a64a 55%, #a87b2c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { align-self: flex-start; text-align: left; white-space: nowrap; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 5px 12px; border-radius: 8px; color: var(--muted); font-family: Goodmountain, Cinzel, Georgia, serif; font-weight: 400; font-size: 19px; letter-spacing: 0.02em; line-height: 1.3; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface-2); }

main.container { padding-top: 32px; padding-bottom: 48px; }

/* Cards and sections */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.section { margin-top: 28px; }
.section-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 28px 20px; }

.site-footer { color: var(--muted); font-size: 13px; padding: 24px 0 40px; border-top: 1px solid var(--border); }

@media (max-width: 680px) {
  .brand-name { font-size: 25px; }
  .nav a { font-size: 17px; padding: 5px 10px; }
  .brand-sub { font-size: 10px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }
}

/* Narrow phones: let the header wrap so all nav tabs fit */
@media (max-width: 560px) {
  .site-header .container { height: auto; flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
}

/* Five nav tabs (About added 2026-11-14): on narrow phones let the tabs wrap
   onto a second line instead of running off the screen */
@media (max-width: 560px) {
  .nav { flex-wrap: wrap; row-gap: 4px; }
}
@media (max-width: 400px) {
  .nav a { padding: 5px 8px; }
}
