/* The Gear Cabinet website: same palette and type as the app (src/lib/theme.ts). Fonts are
   served from this site, so visiting it never contacts Google Fonts. */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/CormorantGaramond_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/InstrumentSans_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/InstrumentSans_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --parchment: #f3ecdd;
  --paper: #fbf7ee;
  --line: #e2d6bf;
  --brass: #a8864a;
  --brass-light: #c9a96a;
  --leather: #7a4a2b;
  --brown: #3b2a1f;
  --ink: #2a1e16;
  --muted: #6e5e4e;
  --night: #1a120c;
  --cream: #f3ecdd;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font: 400 1.0625rem/1.6 'Instrument Sans', system-ui, sans-serif;
}

header.hero {
  background: radial-gradient(120% 70% at 25% 28%, #5c3d27 0%, #2e1f15 48%, #150f0a 100%);
  color: var(--cream);
  padding: 2.5rem 1rem 2.25rem;
  text-align: center;
}
header.hero a { color: inherit; text-decoration: none; }
header.hero svg { width: 56px; height: 56px; }
header.hero .name {
  margin: 0.75rem 0 0;
  font: 600 clamp(2.1rem, 6vw, 2.9rem)/1.05 'Cormorant Garamond', Georgia, serif;
}
header.hero .rule { width: 36px; height: 1px; background: var(--brass); margin: 0.9rem auto; }
header.hero .tagline {
  margin: 0;
  color: #dccaa3;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.15; }
h1 { font-size: 2.3rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.6rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 0.25rem; }

a { color: var(--leather); text-underline-offset: 0.15em; }
a:hover { color: var(--brown); }

.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.5rem; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.25rem; }
li { margin: 0.3rem 0; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
.table-wrap { overflow-x: auto; }

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem 1rem 2rem;
}
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: center; margin-bottom: 0.5rem; }
footer a { display: inline-block; padding: 0.35rem 0; }
