/* ───────────────────────────────────────────────────────────
   coley.co.nz — Simon Coley
   Single long-scroll, LoveFrom × Frank Chimero restraint.
   Klein Blue used in two places only: availability + footer links.
   ─────────────────────────────────────────────────────────── */

/* ─── Tokens ─── */
:root {
  --bg:           #F5F6F8;
  --text:         #14171F;
  --body:         #2A2D36;
  --muted:        #6B7280;
  --image-fill:   #E4E6EB;
  --image-label:  #A8ACB5;
  --hairline:     rgba(20, 23, 31, 0.10);
  --klein:        #002FA7;
  --klein-rule:   rgba(0, 47, 167, 0.30);

  --serif: 'Libre Baskerville', 'Baskerville', 'Times New Roman', Times, serif;
  --sans:  'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

h1, h2, h3 { font-weight: 400; margin: 0; }

p { margin: 0; }

/* ─── Layout ─── */
.site-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 72px 56px;
}

/* ─── Nav ─── */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 104px;
}
.site-name {
  font-size: 14px;
  letter-spacing: 0.005em;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 26px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.nav-links a { color: inherit; }
.nav-links a:hover { color: var(--text); }

/* ─── Hero ─── */
.hero-h1 {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.005em;
  max-width: 480px;
  margin: 0 0 32px;
  color: var(--text);
}
.bio {
  font-size: 14px;
  line-height: 1.85;
  color: var(--body);
  max-width: 470px;
  margin: 0 0 24px;
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--klein);
}
.availability::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--klein);
}

/* ─── Section labels ─── */
.section-label {
  margin: 104px 0 36px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ─── Selected work ─── */
.work-item {
  margin-bottom: 64px;
}
#work {
  margin-top: 104px;
}
@media (max-width: 720px) {
  #work { margin-top: 72px; }
}
.work-item:last-of-type {
  margin-bottom: 0;
}
.work-image {
  background: var(--image-fill);
  height: 220px;
  border-radius: 2px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--image-label);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
img.work-image {
  display: block;
  width: 100%;
  object-fit: cover;
  background: transparent;
}
.work-meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.work-title {
  font-size: 18px;
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
  color: var(--text);
}
.work-desc {
  font-size: 14px;
  line-height: 1.78;
  color: var(--body);
  max-width: 520px;
}

/* ─── Earlier work ─── */
.earlier-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.earlier-item {
  padding: 18px 0;
  border-top: 0.5px solid var(--hairline);
}
.earlier-item:last-child {
  border-bottom: 0.5px solid var(--hairline);
}
.earlier-meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.earlier-desc {
  font-size: 14px;
  line-height: 1.78;
  color: var(--body);
  max-width: 520px;
}

/* ─── Writing ─── */
.writing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.writing-item {
  display: flex;
  gap: 22px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 0.5px solid var(--hairline);
  font-size: 14px;
}
.writing-item:last-child {
  border-bottom: 0.5px solid var(--hairline);
}
.writing-year {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  width: 44px;
  flex-shrink: 0;
}
.writing-title {
  flex: 1;
  font-style: italic;
  color: var(--text);
}
a.writing-title:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.5px;
}
.writing-pub {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

/* ─── About ─── */
.about {
  max-width: 520px;
}
.about-para {
  font-size: 14px;
  line-height: 1.85;
  color: var(--body);
  margin: 0 0 18px;
}
.about-para--tight { margin-bottom: 0; }
.about-subhead {
  margin: 36px 0 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ─── Footer ─── */
.footer {
  margin-top: 104px;
  padding-top: 28px;
  border-top: 0.5px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer a {
  color: var(--klein);
  border-bottom: 0.5px solid var(--klein-rule);
  padding-bottom: 1px;
}
.footer a:hover {
  border-bottom-color: var(--klein);
}
.footer-right {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}
.footer-sep {
  color: var(--muted);
}

/* ─── Mobile (≤720px) ─── */
@media (max-width: 720px) {
  .site-content {
    padding: 40px 24px 40px;
  }
  .site-nav {
    margin-bottom: 72px;
  }
  .section-label {
    margin: 72px 0 28px;
  }
  .hero-h1 {
    font-size: 22px;
    line-height: 1.45;
  }
  .work-item {
    margin-bottom: 48px;
  }
  .work-image {
    height: 180px;
  }
  .footer {
    margin-top: 72px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

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