/* joeydrury.com — personal credential hub.
   Deliberately plain: warm paper, ink text, one quiet green accent.
   Not the TFS ember/graphite system, not the JKT amber system. */

:root {
  --paper: #faf7f1;
  --ink: #211e1a;
  --muted: #5c554b;
  --accent: #2f5d50;
  --rule: #ddd6ca;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

main {
  max-width: 38rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

/* Header */

.hello {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  font-style: italic;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.line {
  margin: 0.5rem 0 0;
  font-size: 1.1875rem;
  color: var(--muted);
}

/* Bio */

.bio {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.bio p { margin: 0; }

/* Route cards */

.routes {
  margin-top: 2.75rem;
}

.routes h2 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.card {
  display: block;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fffdf9;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover,
.card:focus-visible {
  border-color: var(--accent);
  transform: translateX(3px);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-name {
  display: block;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--accent);
}

.card-desc {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink);
}

.card-url {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* Footer */

footer {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}

footer p { margin: 0; }

footer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a:hover { color: var(--ink); }

footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sep {
  margin: 0 0.5rem;
  color: var(--muted);
}

/* Small screens */

@media (max-width: 400px) {
  main { padding: 3rem 1.125rem 2.5rem; }
}
