/* Shared site styles — homepage, category pages, about page.
   Drop pages keep their own drop.css. Both share the brand tokens (paper,
   ink, gold) so the masthead/footer feels uniform across page types. */

@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/GeistMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/InstrumentSerif-Regular.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #faf8f3;
  --ink: #0a0a0a;
  --muted: #666;
  --rule: #e8e0d0;
  --gold: #b8860b;
  --max-width: 960px;
  --max-text: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, system-ui, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

/* ------- Shared chrome (masthead + footer) ------- */

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.masthead .brand {
  font-family: 'Geist Mono', ui-monospace, monospace;
  letter-spacing: 0.18em;
  font-size: 14px;
  color: var(--ink);
}
.masthead .cta-app {
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 32px 24px;
  margin-top: 64px;
  text-align: center;
}
.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-mark {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

/* ------- Page layout ------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
}

.label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.badge {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ------- Homepage lead ------- */

.lead {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 32px;
  margin-bottom: 32px;
}
.lead-link { display: block; color: inherit; }
.lead h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.05;
  margin: 12px 0 16px;
}
.lead .teaser {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 12px;
  max-width: var(--max-text);
}
.lead .meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ------- Today grid ------- */

.today-grid { margin: 32px 0; }
.today-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.today-grid li {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 16px;
  transition: border-color 0.15s;
}
.today-grid li:hover { border-color: var(--ink); }
.today-grid li a { display: block; color: inherit; }
.today-grid h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  margin: 8px 0;
}
.today-grid .meta {
  color: var(--muted);
  font-size: 13px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  margin: 0;
}

/* ------- Topics tiles ------- */

.topics { margin: 48px 0; }
.topics ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.topics li a {
  display: flex;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--rule);
  padding: 16px 20px;
  border-radius: 6px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topics li a:hover { border-color: var(--ink); text-decoration: none; }
.topics .count { color: var(--muted); }

/* ------- App-strip ------- */

.app-strip {
  background: rgba(184, 134, 11, 0.06);
  border-left: 3px solid var(--gold);
  padding: 24px;
  margin: 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.app-strip p { margin: 0; }
.cta-large {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 28px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* ------- Archive teaser ------- */

.archive-teaser {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin: 48px 0;
}

/* ------- Empty state ------- */

.empty-state {
  text-align: center;
  padding: 96px 24px;
  color: var(--muted);
}

/* ------- Category page ------- */

.category-hero { margin-bottom: 32px; }
.category-hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  margin: 8px 0;
}
.category-hero .subtitle { color: var(--muted); margin: 0; }

.drop-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.drop-list li {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
}
.drop-list li:first-child { border-top: none; padding-top: 0; }
.drop-list a { display: block; color: inherit; }
.drop-list h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  margin: 8px 0;
}
.drop-list .teaser {
  color: var(--muted);
  margin: 0 0 8px;
  max-width: var(--max-text);
}
.drop-list .meta {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ------- About page ------- */

.about {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 32px 24px;
}
.about h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 24px;
}
.about h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 26px;
  margin: 32px 0 12px;
}
.about p { margin: 0 0 16px; }

/* ------- Mobile ------- */

@media (max-width: 600px) {
  .lead h1 { font-size: 32px; }
  .lead .teaser { font-size: 16px; }
  main { padding: 24px 16px; }
  .masthead { padding: 12px 16px; }
}
