/* steveogden.dev — one stylesheet, no dependencies, no build step. */

:root {
  --bg: #fdfdfc;
  --surface: #f4f3f0;
  --text: #16181c;
  --muted: #5c6470;
  --rule: #e2e0da;
  --accent: #0b6b5e;
  --accent-soft: #e4f2ee;
  --max: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --text: #e8edf4;
    --muted: #9aa5b1;
    --rule: #232a33;
    --accent: #57d9c0;
    --accent-soft: #12231f;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Layout ------------------------------------------------------------- */

main,
.site {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--rule);
}

/* Header ------------------------------------------------------------- */

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

header.site { border-top: 0; }

.brand {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.site nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site nav a {
  color: var(--muted);
  text-decoration: none;
}

.site nav a:hover { color: var(--text); }

/* Hero --------------------------------------------------------------- */

.hero {
  padding: 4.5rem 0 3.5rem;
  border-top: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.875rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 2rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  transition: opacity 0.15s ease;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}

.btn:hover { opacity: 0.85; }

/* Sections ----------------------------------------------------------- */

h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

#about p { color: var(--text); max-width: 38rem; }

/* Work cards --------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
}

.card:last-child { margin-bottom: 0; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.9688rem;
  margin: 0;
}

.tag {
  flex: none;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

/* Contact ------------------------------------------------------------ */

.links {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.links a:hover { border-bottom-color: var(--accent); }

.icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
}

.icon.fill {
  fill: currentColor;
  stroke: none;
}

a { color: var(--accent); }

/* Footer ------------------------------------------------------------- */

footer.site {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  border-bottom: 0;
  margin-top: 1rem;
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

footer.site p { margin: 0; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }

/* Focus + skip link -------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
}

/* Narrow screens ----------------------------------------------------- */

@media (max-width: 34rem) {
  .hero { padding-top: 3rem; }
  section { padding: 2.75rem 0; }
  .site { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .card { padding: 1.15rem 1.15rem; }
}

@media print {
  .site nav, .actions, .skip { display: none; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .card { border: 1px solid #ccc; background: none; }
  a { color: #000; }
}
