/* ------------------------------------------------------------------
   paulharris.ca — Conscious Evolution
   Palette: warm paper, near-black ink, one alive accent: sea teal
   Type: Fraunces (display) · Newsreader (prose) · system sans (meta)
------------------------------------------------------------------ */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #FBF8F2;
  --ink: #201D17;
  --muted: #6F6A5E;
  --faint: #8F897B;
  --line: #E7E0D2;
  --accent: #0E7C6B;
  --accent-deep: #085A4D;
  --wash: #EDF4F0;
  --display: 'Fraunces', Georgia, serif;
  --prose: 'Newsreader', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--prose);
  font-size: 1.1875rem;
  line-height: 1.68;
  font-optical-sizing: auto;
}

::selection { background: var(--accent); color: var(--paper); }

a { color: inherit; }

img { max-width: 100%; height: auto; border-radius: 4px; }

.wrap {
  max-width: 44.5rem;
  margin: 0 auto;
  padding: 0 1.35rem;
}

/* ---------------------------------------------------------- header */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  padding-top: 1.15rem;
  padding-bottom: 1.05rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 620;
  font-size: 1.28rem;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .mark { color: var(--accent); }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.3rem;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: .2rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover { color: var(--accent-deep); }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

/* home variant: nav floats alone above the hero */
.home-nav {
  max-width: 44.5rem;
  margin: 0 auto;
  padding: 1.35rem 1.35rem 0;
  justify-content: flex-end;
}

/* ---------------------------------------------------------- home */
.hero { padding: clamp(3rem, 9vh, 5.5rem) 0 0; }
.hero-name {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(3.1rem, 10.5vw, 6.1rem);
  font-weight: 480;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
}
.hero-name em {
  font-style: italic;
  font-weight: 380;
  color: var(--accent);
}
.hero-tag {
  font-family: var(--prose);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
  margin: 0;
}

.home-intro { padding-top: clamp(2.5rem, 7vh, 4rem); }
.intro-prose p {
  font-size: 1.3rem;
  line-height: 1.62;
  margin: 0;
}
.intro-more {
  margin: 1rem 0 0;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .06em;
}
.intro-more a, .all-link a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: .1rem;
  transition: border-color .15s ease;
}
.intro-more a:hover, .all-link a:hover { border-bottom-color: var(--accent); }

.home-recent { padding: clamp(3rem, 8vh, 4.5rem) 1.35rem 4rem; }
.section-label {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.6rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}
.home-cards { list-style: none; margin: 0; padding: 0; }
.home-card { margin: 0; }
.home-card a {
  display: block;
  text-decoration: none;
  padding: 1.35rem 0 1.45rem;
  border-bottom: 1px solid var(--line);
}
.card-date {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 .3rem;
}
.card-title {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 540;
  line-height: 1.18;
  margin: 0 0 .45rem;
  transition: color .15s ease;
}
.home-card a:hover .card-title { color: var(--accent); }
.card-excerpt {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.all-link {
  margin: 2.2rem 0 0;
  font-family: var(--sans);
  font-size: .84rem;
  letter-spacing: .05em;
}

/* ---------------------------------------------------------- archive */
.archive { padding-bottom: 4rem; }
.page-head { padding: clamp(2.5rem, 7vh, 4rem) 0 1rem; }
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 .7rem;
}
.page-sub {
  font-style: italic;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 44ch;
  margin: 0 0 1.8rem;
}
.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .95rem;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .05em;
  padding: .9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.year-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color .12s ease;
}
.year-nav a:hover { color: var(--accent); }

.arc-year { padding-top: 2.6rem; }
.year-head {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 460;
  margin: 0 0 .9rem;
  color: var(--ink);
}
.year-count {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--accent);
  vertical-align: super;
  margin-left: .45rem;
}
.arc-list { list-style: none; margin: 0; padding: 0; }
.arc-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  padding: .52rem 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.arc-list li { border-bottom: 1px solid var(--line); }
.arc-list li:last-child { border-bottom: none; }
.arc-title {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 480;
  line-height: 1.3;
  transition: color .15s ease;
}
.arc-link:hover .arc-title { color: var(--accent); }
.arc-date {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

/* ---------------------------------------------------------- post & pages */
.post { padding-bottom: 4rem; }
.post-head { padding: clamp(2.5rem, 7vh, 4rem) 0 1.4rem; }
.post-meta, .cats {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.post-meta { margin: 0 0 .8rem; }
.post-meta .cats { color: var(--accent-deep); }
.dot { color: var(--line); }
.post-title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  font-weight: 520;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
}

.prose { font-size: 1.1875rem; }
.prose p { margin: 0 0 1.35rem; }
.prose a { color: var(--accent-deep); text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color .15s ease; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--display);
  font-weight: 560;
  line-height: 1.2;
  margin: 2.2rem 0 .9rem;
}
.prose h2 { font-size: 1.7rem; }
.prose h3 { font-size: 1.45rem; }
.prose h4 { font-size: 1.2rem; }
.prose blockquote {
  margin: 1.8rem 0;
  padding: .2rem 0 .2rem 1.4rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--muted);
}
.prose blockquote p { margin-bottom: .8rem; }
.prose hr {
  border: none;
  margin: 2.4rem 0;
  text-align: center;
}
.prose hr::after {
  content: '✳';
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: .6em;
}
.prose ul, .prose ol { margin: 0 0 1.35rem; padding-left: 1.5rem; }
.prose li { margin-bottom: .4rem; }
.prose figure { margin: 1.9rem 0; max-width: 100% !important; }
.prose figure.alignleft, .prose .alignleft { float: left; margin: .35rem 1.6rem 1rem 0; max-width: min(46%, 20rem) !important; }
.prose figure.alignright, .prose .alignright { float: right; margin: .35rem 0 1rem 1.6rem; max-width: min(46%, 20rem) !important; }
.prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.prose figcaption, .prose .wp-caption-text {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--faint);
  margin-top: .55rem;
  line-height: 1.45;
}
.prose iframe { max-width: 100%; border: none; border-radius: 4px; }
.prose audio { width: 100%; margin: .5rem 0 1rem; }
.prose img { margin: .2rem 0; }
.prose .page-postlist {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  clear: both;
}
.prose .page-postlist li { border-bottom: 1px solid var(--line); margin: 0; }
.prose .page-postlist a {
  display: block;
  padding: .7rem 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  transition: color .15s ease;
}
.prose .page-postlist a:hover { color: var(--accent); }

article::after { content: ''; display: block; clear: both; }

/* ---------------------------------------------------------- comments */
.comments {
  margin-top: 3.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.comments-title {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.4rem;
}
.comment { margin-bottom: 1.7rem; }
.comment-reply { margin-left: 1.6rem; }
.comment-meta { margin: 0 0 .25rem; font-family: var(--sans); font-size: .8rem; }
.comment-author { font-weight: 600; color: var(--ink); }
.comment-date { color: var(--faint); margin-left: .6rem; font-size: .72rem; letter-spacing: .05em; }
.comment-body { font-size: 1rem; line-height: 1.6; color: var(--muted); }
.comment-body p { margin: 0 0 .7rem; }
.comment-body a { color: var(--accent-deep); }

/* ---------------------------------------------------------- pager */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.pager a {
  max-width: 46%;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.3;
  transition: color .15s ease;
}
.pager a:hover { color: var(--accent); }
.pager-next { text-align: right; margin-left: auto; }
.pager-label {
  display: block;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .25rem;
}

/* ---------------------------------------------------------- footer */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--wash);
  padding: 2.2rem 0 2.6rem;
  margin-top: 2rem;
}
.foot-more {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .03em;
  margin: 0 0 .9rem;
}
.foot-more a { color: var(--muted); text-decoration: none; transition: color .12s ease; }
.foot-more a:hover { color: var(--accent-deep); }
.foot-fine {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--faint);
  margin: 0;
}

/* ---------------------------------------------------------- small screens */
@media (max-width: 560px) {
  body { font-size: 1.09rem; }
  .prose { font-size: 1.09rem; }
  .prose figure.alignleft, .prose .alignleft,
  .prose figure.alignright, .prose .alignright {
    float: none;
    margin: 1.4rem 0;
    max-width: 100% !important;
  }
  .arc-link { flex-direction: column; gap: .1rem; }
  .head-row { justify-content: center; text-align: center; }
  .home-nav { justify-content: center; }
}
