/*
Theme Name: WhatIsDatabase
Theme URI: https://whatisdatabase.com/
Author: WhatIsDatabase
Description: Lightweight migration theme preserving semantic content and URL parity.
Version: 1.0.0
Requires at least: 6.9
Requires PHP: 8.3
Text Domain: whatisdatabase
*/

:root {
  --ink: #172033;
  --muted: #5c6575;
  --line: #e4e8ee;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --accent: #3056d3;
  --measure: 760px;
}

* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.site-header, .site-footer { border-color: var(--line); border-style: solid; }
.site-header { border-width: 0 0 1px; }
.site-footer { border-width: 1px 0 0; margin-top: 4rem; }
.site-shell { width: min(calc(100% - 2rem), 1120px); margin-inline: auto; }
.site-header__inner, .site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}
.site-brand { color: var(--ink); font-weight: 800; text-decoration: none; }
.site-nav ul { display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.site-main { padding-top: 3rem; }
.content-measure { width: min(100%, var(--measure)); margin-inline: auto; }
.page-header { margin-bottom: 2.5rem; }
.entry-title { margin: 0 0 0.75rem; font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.1; }
.entry-meta { color: var(--muted); font-size: 0.9rem; }
.entry-content h2, .entry-content h3 { line-height: 1.25; margin-top: 2em; }
.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--soft); }
.entry-content code { overflow-wrap: anywhere; }
.post-list { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.post-card { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.post-card h2 { margin: 0 0 0.35rem; line-height: 1.25; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.term-list { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.term-list a { display: block; padding: 0.35rem 0.7rem; background: var(--soft); border-radius: 999px; text-decoration: none; }
.pagination { margin-top: 2rem; }
.hero { padding-block: 3rem 5rem; text-align: center; }
.hero p { color: var(--muted); font-size: 1.15rem; }
@media (max-width: 680px) {
  .site-header__inner { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
  .site-nav ul { flex-wrap: wrap; }
  .site-main { padding-top: 2rem; }
}

