/* ericjwilson.com — Norvig-clean, single column, no JS */

:root {
  --text:    #1a1a1a;
  --muted:   #666;
  --accent:  #1a5490;   /* muted dark blue */
  --visited: #5a3d82;   /* slight shift for visited links */
  --logo:    #444;
  --maxwidth: 680px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* Links — default-feeling, underline on hover only */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:visited { color: var(--visited); }

/* Headings — sentence case (as authored), restrained weight */
h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 38px 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e6e6e6;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 22px 0 8px;
}

p { margin: 0 0 14px; }

/* Header */
.site-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 8px;
}

.headshot {
  width: 160px;
  height: 160px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.header-text { padding-top: 2px; }

.tagline {
  font-size: 18px;
  color: var(--text);
  margin: 0 0 10px;
}

.contact {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* Work entries */
.work-entry { margin: 0 0 12px; }

/* Tight link lists */
.linklist {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}
.linklist li { margin: 0 0 7px; }

/* Press — logo row */
.as-seen-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 4px 0 14px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 16px;
  color: var(--logo);
  margin-bottom: 28px;
}
.logo-row img {
  height: 22px;
  width: auto;
  display: block;
}

/* Footer */
footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid #e6e6e6;
}
footer p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Mobile — stack the header below 600px */
@media (max-width: 600px) {
  main { padding: 32px 20px 48px; }
  .site-header {
    flex-direction: column;
    gap: 16px;
  }
  .headshot { width: 140px; height: 140px; }
  h1 { font-size: 26px; }
  .logo-row { gap: 24px; }
}
