/* jadhq.com: one small stylesheet, light and dark, no scripts. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #6b6963;
  --border: #e4e1da;
  --accent: #2f7d6d;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --surface: #161614;
    --text: #ecebe6;
    --muted: #9a9890;
    --border: #2a2926;
    --accent: #6fc3ae;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
}

main, header.site, footer.site {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

header.site a.home {
  font: 600 1.05rem var(--serif);
  color: var(--text);
  text-decoration: none;
}

header.site nav a { margin-left: 1rem; font-size: 0.95rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; }
h1 { font-size: 2.1rem; margin: 2.5rem 0 0.5rem; }
h2 { font-size: 1.4rem; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.25rem; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.lede { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); }

.app {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.app img { width: 88px; height: 88px; flex: none; }
.app h3 { margin-top: 0; }
.app p { margin: 0.25rem 0; }

dl dt { font-weight: 600; margin-top: 1rem; }
dl dd { margin: 0.25rem 0 0; }

footer.site {
  margin-top: 3.5rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 30rem) {
  .app { flex-direction: column; }
  h1 { font-size: 1.75rem; }
}
