/* ==========================================================================
   Toby Ward — site stylesheet
   Single serif (Source Serif 4), warm off-white, one muted-red accent.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300..900;1,8..60,300..900&display=swap');

:root {
  --bg: #FBFAF6;
  --ink: #1A1A1A;
  --body: #2A2A2A;
  --muted: #6B6B6B;
  --faint: #888888;
  --accent: #7A2424;
  --hairline: rgba(0, 0, 0, 0.08);
  --rule: rgba(0, 0, 0, 0.12);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --measure: 720px;
}

* { box-sizing: border-box; }

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

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 36px 80px 0;
  max-width: 1160px;
}
.nav__name {
  font-size: 15px;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.nav__name:hover { color: var(--accent); }
.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
}
.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 0.5px solid var(--accent);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.main {
  padding: 70px 80px 90px;
  max-width: 1000px;
}
.page-label {
  font-size: 15px;
  font-style: italic;
  color: var(--faint);
  margin: 0 0 40px;
  letter-spacing: 0.02em;
}

/* Hero (home only) */
.hero { padding: 30px 0 50px; }
.hero h1 {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0 0 24px;
  max-width: var(--measure);
}
.hero__locations {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

/* Opening statement (subpages) */
.opener {
  font-size: 22px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 60px;
  max-width: var(--measure);
  letter-spacing: -0.005em;
}

/* Section */
.section {
  padding: 40px 0 50px;
  max-width: var(--measure);
}
.section h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}
.section p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 20px;
  color: var(--body);
}
.section p:last-child { margin-bottom: 0; }

/* Accent emphasis on key phrases */
.accent { color: var(--accent); }

/* --------------------------------------------------------------------------
   Centred ornamental divider
   -------------------------------------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  max-width: var(--measure);
}
.divider__rule {
  flex: 0 0 60px;
  height: 0.5px;
  background: rgba(122, 36, 36, 0.5);
}
.divider__mark {
  font-size: 14px;
  color: var(--accent);
  font-style: italic;
  margin: 0 16px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Services list (home + What I Do)
   -------------------------------------------------------------------------- */
.services {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.services li {
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  padding: 16px 0;
  border-bottom: 0.5px solid var(--hairline);
}
.services li:first-child { padding-top: 0; }
.services__name {
  font-weight: 500;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Engagements
   -------------------------------------------------------------------------- */
.engagements__intro {
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 32px;
}
.engagement {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 28px;
  color: var(--body);
}
.engagement:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Pull-quote
   -------------------------------------------------------------------------- */
.pullquote {
  margin: 60px auto;
  padding: 0 0 0 32px;
  border-left: 0.5px solid rgba(122, 36, 36, 0.4);
  max-width: 640px;
}
.pullquote p {
  font-size: 24px;
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* --------------------------------------------------------------------------
   About — chapters + headshot
   -------------------------------------------------------------------------- */
.about-narrative { max-width: var(--measure); }
.about-narrative .lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 48px;
}
.chapter { margin: 0 0 40px; }
.chapter h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.005em;
}
.chapter p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  margin: 0;
}
.headshot {
  float: right;
  width: 180px;
  height: 240px;
  object-fit: cover;
  margin: 0 0 24px 40px;
  background: #E8E4DC;
  filter: grayscale(15%);
}
.clearfix::after { content: ""; display: table; clear: both; }

/* --------------------------------------------------------------------------
   What I Do — capabilities
   -------------------------------------------------------------------------- */
.capabilities { max-width: var(--measure); }
.capability { margin: 0 0 44px; }
.capability:last-child { margin-bottom: 0; }
.capability h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 12px;
  letter-spacing: -0.003em;
}
.capability p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Experience — entries
   -------------------------------------------------------------------------- */
.exp-section { margin: 0 0 80px; max-width: var(--measure); }
.exp-section:last-child { margin-bottom: 0; }
.exp-section > h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 32px;
  letter-spacing: -0.005em;
}
.entry { margin: 0 0 32px; }
.entry:last-child { margin-bottom: 0; }
.entry h3 {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
}
.entry p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-block { max-width: var(--measure); }
.contact-block p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  margin: 0 0 12px;
}
.contact-block .email a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0.5px solid var(--ink);
  padding-bottom: 2px;
}
.contact-block .email a:hover { color: var(--accent); border-color: var(--accent); }
.contact-block .phones { margin-top: 28px; }
.contact-block .locations {
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 28px 0 0;
}
.contact-block .linkedin a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 0.5px solid var(--accent);
  padding-bottom: 2px;
}
.contact-block .confidential {
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  margin: 72px 0 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  padding: 70px 80px 56px;
  border-top: 0.5px solid var(--rule);
  margin-top: 60px;
  font-size: 14px;
  color: #4A4A4A;
  max-width: 1160px;
}
.footer__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer__col p { margin: 0 0 8px; line-height: 1.6; }
.footer__col a {
  color: #4A4A4A;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.2);
  padding-bottom: 1px;
}
.footer__col a:hover { color: var(--accent); border-color: var(--accent); }
.footer__copyright {
  margin-top: 44px;
  font-size: 12px;
  color: var(--faint);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Page load — gentle stagger
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 0.7s ease forwards;
  }
  .fade-in:nth-child(1) { animation-delay: 0.05s; }
  .fade-in:nth-child(2) { animation-delay: 0.15s; }
  .fade-in:nth-child(3) { animation-delay: 0.25s; }
  .fade-in:nth-child(4) { animation-delay: 0.35s; }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* --------------------------------------------------------------------------
   Responsive — mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 28px 0;
  }
  .nav__links {
    gap: 24px;
    flex-wrap: wrap;
  }

  .main { padding: 44px 28px 64px; }
  .footer { padding: 48px 28px 40px; }

  .hero { padding: 16px 0 36px; }
  .hero h1 { font-size: 23px; line-height: 1.4; }

  .opener { font-size: 19px; margin-bottom: 44px; }

  .section h2,
  .chapter h3,
  .exp-section > h2 { font-size: 20px; }

  .pullquote { margin: 44px auto; padding-left: 22px; }
  .pullquote p { font-size: 20px; }

  .headshot {
    float: none;
    display: block;
    margin: 0 0 32px 0;
    width: 160px;
    height: 213px;
  }

  .footer__row { flex-direction: column; gap: 24px; }
}

@media (max-width: 420px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: 13px; }
}
