/* Cameron McLellan — personal site v1 */
:root {
  color-scheme: light dark;
  --bg: #f4f1ea;
  --surface: #e9e5dc;
  --text: #171713;
  --muted: #69675f;
  --line: #cbc6ba;
  --accent: #344b40;
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11110f;
    --surface: #1a1a17;
    --text: #f0eee7;
    --muted: #a4a198;
    --line: #34342f;
    --accent: #a8c1b3;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--text); color: var(--bg); }
a { color: inherit; }
.skip-link {
  position: absolute; left: -9999px; top: 1rem;
}
.skip-link:focus {
  left: 1rem; z-index: 20; padding: .6rem .8rem; background: var(--text); color: var(--bg);
}
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; text-decoration: none; font-size: .76rem;
  font-weight: 700; letter-spacing: .08em;
}
nav { display: flex; gap: 28px; }
nav a {
  text-decoration: none; color: var(--muted); font-size: .82rem;
  transition: color .2s ease;
}
nav a:hover, nav a:focus-visible { color: var(--text); }

main, footer { max-width: var(--max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.hero {
  min-height: 82vh;
  padding: 13vh 0 10vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 60px;
  align-content: center;
}
.eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 30px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
}
h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.3rem, 9vw, 8.7rem);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.065em;
}
.hero-line {
  align-self: end;
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.hero-line span { color: var(--accent); font-style: italic; }
.intro {
  grid-column: 2;
  max-width: 540px;
  margin: 38px 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
}
.text-link {
  grid-column: 2;
  width: max-content;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
  font-size: .86rem;
}
.section {
  border-top: 1px solid var(--line);
  padding: 110px 0 125px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 3fr;
  gap: 60px;
}
.section-label span {
  color: var(--muted); font-size: .67rem; letter-spacing: .12em;
}
.section-label h2 {
  margin: 8px 0 0;
  text-transform: uppercase; font-size: .75rem; letter-spacing: .16em; font-weight: 600;
}
.lead {
  max-width: 830px;
  margin: 0 0 58px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.1vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.lead.compact { max-width: 650px; }
.columns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  color: var(--muted); font-size: .98rem;
}
.columns p { margin: 0; max-width: 430px; }
.topic-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.topic-grid div {
  min-height: 110px; padding: 22px 10px 20px 0;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem;
}
.topic-grid div:not(:nth-child(3n+1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.topic-grid span {
  display: block; margin-bottom: 26px;
  color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .62rem; letter-spacing: .1em;
}
.kicker {
  margin: 0 0 18px; color: var(--accent); text-transform: uppercase;
  letter-spacing: .13em; font-size: .7rem; font-weight: 600;
}
.coming-soon {
  display: flex; align-items: center; gap: 18px; color: var(--muted);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .09em;
}
.rule { height: 1px; background: var(--line); flex: 1; }
.links {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.links a {
  min-width: 170px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  text-decoration: none;
  display: flex; justify-content: space-between;
  transition: background .2s ease, color .2s ease;
}
.links a:hover, .links a:focus-visible { background: var(--text); color: var(--bg); }
.setup-note { color: var(--muted); font-size: .75rem; margin-top: 18px; }
footer {
  border-top: 1px solid var(--line);
  padding-top: 42px; padding-bottom: 48px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
  color: var(--muted); font-size: .75rem;
}
.footer-name { color: var(--text); text-decoration: none; font-weight: 600; }
footer p { margin: 0; }
footer p:last-child { text-align: right; }

@media (max-width: 760px) {
  .site-header { padding: 22px 20px; }
  nav { gap: 16px; }
  nav a:nth-child(2), nav a:nth-child(3) { display: none; }
  main, footer { padding-left: 20px; padding-right: 20px; }
  .hero { min-height: 80vh; display: block; padding: 14vh 0 10vh; }
  .eyebrow { margin-bottom: 24px; }
  h1 { font-size: clamp(4.1rem, 20vw, 6.5rem); }
  .hero-line { margin-top: 54px; }
  .intro { margin-top: 30px; }
  .text-link { display: inline-block; margin-top: 6px; }
  .section { grid-template-columns: 1fr; gap: 48px; padding: 78px 0 90px; }
  .lead { font-size: clamp(2.15rem, 10vw, 3.2rem); margin-bottom: 44px; }
  .columns { grid-template-columns: 1fr; gap: 24px; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-grid div, .topic-grid div:not(:nth-child(3n+1)) {
    border-left: 0; padding: 18px 0;
    min-height: 88px;
  }
  .topic-grid span { margin-bottom: 17px; }
  footer { grid-template-columns: 1fr; }
  footer p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > *, .section-content > * {
    animation: reveal .65s ease both;
  }
  .hero > *:nth-child(2), .section-content > *:nth-child(2) { animation-delay: .06s; }
  .hero > *:nth-child(3), .section-content > *:nth-child(3) { animation-delay: .12s; }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
