/* ============================================================
   Jeremy Stevenson — shared stylesheet
   Fonts: Lora (serif headings), Source Sans 3 (body)
   ============================================================ */

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

html {
  font-size: 18px;
}

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: #000;
  background: #fff;
  line-height: 1.7;
  padding-bottom: 6rem;
}

/* ── Navigation ─────────────────────────────────────────── */

nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  gap: 0.5rem;
}

.nav-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: nowrap;
  justify-content: center;
}

.nav-links a {
  font-size: 0.85rem;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Container ──────────────────────────────────────────── */

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
}

/* ── Page header ────────────────────────────────────────── */

.page-header {
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.page-header .tagline {
  font-size: 1rem;
}

/* ── Landing page ───────────────────────────────────────── */

.landing {
  padding-top: 4rem;
  text-align: center;
}

.landing h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.landing .tagline {
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* ── Book graphic ───────────────────────────────────────── */

.book-graphic {
  display: block;
  margin: 0 auto 3rem;
  max-width: 450px;
  width: 90%;
  height: auto;
}

/* ── Profile photo ──────────────────────────────────────── */

.profile-photo {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 2.5rem;
}

/* ── Section headings ───────────────────────────────────── */

h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  margin-top: 2.5rem;
}

section:first-of-type h2 {
  margin-top: 0;
}

/* ── Body text ──────────────────────────────────────────── */

p {
  margin-bottom: 1rem;
}

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

/* ── Bullet lists ───────────────────────────────────────── */

ul {
  list-style: none;
  padding: 0;
}

ul li {
  padding-left: 1.3em;
  position: relative;
  margin-bottom: 0.8rem;
}

ul li::before {
  content: '•';
  position: absolute;
  left: 0;
}

ul li:last-child {
  margin-bottom: 0;
}

/* ── Work list ──────────────────────────────────────────── */

.work-list {
  list-style: none;
  padding: 0;
}

.work-list li {
  padding: 1rem 0;
  border-top: 1px solid #e0e0e0;
}

.work-list li:last-child {
  border-bottom: 1px solid #e0e0e0;
}

.work-list li::before {
  display: none;
}

.work-list .work-title {
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

/* ── Links ──────────────────────────────────────────────── */

a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #999;
}

a:hover {
  text-decoration-color: #000;
}

/* ── Contact form ───────────────────────────────────────── */

.contact-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  display: block;
  width: 100%;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 1rem;
  color: #000;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0;
  padding: 0.55rem 0.7rem;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #000;
}

.form-group textarea {
  height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.form-submit {
  display: inline-block;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 1rem;
  color: #000;
  background: #000;
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  letter-spacing: 0.02em;
  margin-top: 0.4rem;
}

.form-submit:hover {
  background: #333;
}

/* ── Italics ────────────────────────────────────────────── */

em {
  font-style: italic;
}

/* ── Mobile ─────────────────────────────────────────────── */

@media (max-width: 600px) {
  html {
    font-size: 17px;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem 1.25rem 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.5rem 1.1rem;
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.78rem;
  }

  .container {
    padding: 2rem 1.25rem 0;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }
}
