/* ─────────────────────────────────────────
   William Hicks — Personal Site Styles
   ───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
html {
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
  background: #fff;
  padding: 0 24px;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
nav,
main,
footer {
  max-width: 660px;
  margin: 0 auto;
}

/* ── Navigation ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 52px 0 72px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 64px;
}

.site-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1a1a1a;
}

/* ── Typography ── */
h1 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.3;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

p {
  color: #333;
  margin-bottom: 20px;
}

a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #555;
}

/* ── About Page ── */
.about-bio p {
  font-size: 1.05rem;
  line-height: 1.75;
}

.headshot {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 32px;
  display: block;
}

.bio-divider {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 40px 0;
}

.social-links {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.social-links a {
  font-size: 0.875rem;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}

.social-links a:hover {
  color: #1a1a1a;
  border-color: #1a1a1a;
}

/* ── Press Page ── */
.press-list {
  list-style: none;
}

.press-item {
  padding: 28px 0;
  border-bottom: 1px solid #e8e8e8;
}

.press-item:first-child {
  border-top: 1px solid #e8e8e8;
}

.press-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.press-type {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  background: #f2f2f2;
  padding: 2px 8px;
  border-radius: 3px;
}

.press-date {
  font-size: 0.82rem;
  color: #888;
}

.press-item h2 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.press-item h2 a {
  text-decoration: none;
  color: #1a1a1a;
}

.press-item h2 a:hover {
  color: #555;
}

.press-outlet {
  font-size: 0.875rem;
  color: #666;
}

/* ── Thoughts (Blog) Page ── */
.post-list {
  list-style: none;
}

.post-item {
  padding: 28px 0;
  border-bottom: 1px solid #e8e8e8;
}

.post-item:first-child {
  border-top: 1px solid #e8e8e8;
}

.post-date {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 6px;
  display: block;
}

.post-item h2 {
  margin-bottom: 8px;
}

.post-item h2 a {
  text-decoration: none;
  color: #1a1a1a;
}

.post-item h2 a:hover {
  color: #555;
}

.post-excerpt {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ── Individual Blog Post ── */
.post-header {
  margin-bottom: 48px;
}

.post-header h1 {
  margin-bottom: 10px;
}

.post-header .post-date {
  font-size: 0.875rem;
}

.post-content p {
  font-size: 1.025rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.post-content h2 {
  font-size: 1.15rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.post-content blockquote {
  border-left: 2px solid #ddd;
  padding-left: 20px;
  color: #555;
  margin: 32px 0;
  font-style: italic;
}

.back-link {
  display: inline-block;
  font-size: 0.875rem;
  color: #888;
  text-decoration: none;
  margin-bottom: 48px;
  transition: color 0.15s;
}

.back-link:hover {
  color: #1a1a1a;
}

/* ── Footer ── */
footer {
  padding: 48px 0 64px;
  margin-top: 80px;
  border-top: 1px solid #e8e8e8;
  font-size: 0.8rem;
  color: #aaa;
}

/* ── Empty State ── */
.empty-state {
  color: #aaa;
  font-size: 0.9rem;
  padding: 40px 0;
}

/* ── Responsive ── */
@media (max-width: 560px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 36px 0 48px;
    margin-bottom: 48px;
  }

  .nav-links {
    gap: 20px;
  }
}
