/* derrickhess.com: calm, plain, fast. One accent color. */
:root {
  --bg: #fbfaf7;
  --fg: #1d2329;
  --muted: #5b6670;
  --accent: #1f5f8b;
  --accent-fg: #ffffff;
  --surface: #ffffff;
  --border: #e3e0d8;
  --field-border: #8a9097;
  --focus: #9a6a00;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181c;
    --fg: #e8e6e1;
    --muted: #a3acb4;
    --accent: #7cb7e0;
    --accent-fg: #0d1114;
    --surface: #1c2227;
    --border: #2e363d;
    --field-border: #6b7682;
    --focus: #f0c060;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 var(--font);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 2.9rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.4rem, 4vw, 1.75rem); margin: 2.2em 0 0.6em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 0.3em; }
p { margin: 0 0 1em; }

.wrap { max-width: 72ch; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header and nav */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); }

main { padding: 40px 0 64px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.hero img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.lede { font-size: 1.2rem; color: var(--muted); }
@media (min-width: 720px) {
  .hero { grid-template-columns: 1fr auto; }
  .hero img { width: 200px; height: 200px; }
}

/* Three paths */
.paths { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 32px 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.paths a { display: block; height: 100%; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); text-decoration: none; }
.paths a:hover { border-color: var(--accent); }
.paths strong { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 4px; color: var(--accent); }
.paths span { color: var(--muted); font-size: 0.95rem; }

/* Proof strip */
.proof { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 0.92rem; }
.proof li { border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.proof li > * , .proof li { display: flex; align-items: center; }
.proof a { min-height: 44px; padding: 6px 14px; }
.proof li:not(:has(a)) { min-height: 44px; padding: 6px 14px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline .when { display: block; font-size: 0.88rem; color: var(--muted); }
.timeline .what { font-weight: 600; }

ul.plain { padding-left: 1.2em; }
ul.plain li { margin-bottom: 0.4em; }

.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; margin: 24px 0; }

/* Forms */
.form { display: grid; gap: 14px; margin-top: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: 0.95rem; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--fg); background: var(--bg);
  border: 1px solid var(--field-border); border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
.form textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn { display: inline-block; font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 8px; padding: 12px 22px; min-height: 44px; cursor: pointer; text-decoration: none; justify-self: start; }
.btn:hover { filter: brightness(1.08); }

/* Press list */
.press { list-style: none; padding: 0; margin: 0; }
.press li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.press .src { display: block; font-size: 0.88rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
.site-footer p { margin: 0; }
