/* Chantel Hill — Writing
   Shares the portfolio type + palette system. */

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

:root {
  --white: #FFFFFF;
  --off-white: #F7F5F1;
  --paper: #F0EDE7;
  --forest: #2C4A35;
  --forest-dark: #1E3326;
  --forest-light: #3D6147;
  --charcoal: #1C1C1A;
  --mid: #737067;
  --light: #DDD9D1;
  --rule: #E4E0D8;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 60px; height: 64px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; letter-spacing: .01em;
  color: var(--charcoal); text-decoration: none;
}
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mid); text-decoration: none; transition: color .2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--charcoal); }
.nav-cta {
  color: var(--white) !important; background: var(--forest);
  padding: 9px 18px; border-radius: 2px;
}
.nav-cta:hover { background: var(--forest-dark); }

/* LAYOUT */
main { padding-top: 64px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 60px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

.page-head { padding: 90px 0 54px; border-bottom: 1px solid var(--rule); }
.sec-idx {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 16px;
}
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.02em; max-width: 16ch;
}
.page-title em { font-style: italic; color: var(--forest); }
.page-sub { margin-top: 20px; color: var(--mid); max-width: 56ch; font-size: 1.02rem; }

/* INDEX LIST */
.post-list { padding: 10px 0 90px; }
.post-row {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start;
  padding: 40px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit; transition: opacity .2s ease;
}
.post-row:hover { opacity: .68; }
.post-meta {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mid); display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 12px;
}
.audio-badge {
  color: var(--forest); border: 1px solid var(--light);
  border-radius: 999px; padding: 2px 9px; letter-spacing: .1em;
}
.post-row h2 {
  font-family: 'Playfair Display', serif; font-size: 1.72rem;
  font-weight: 700; line-height: 1.22; letter-spacing: -0.01em; margin-bottom: 12px;
}
.post-row p { color: var(--mid); font-size: .98rem; max-width: 62ch; }
.post-arrow { font-size: 1.1rem; color: var(--forest); padding-top: 26px; }

/* ARTICLE */
.article-head { padding: 76px 0 34px; }
.article-head h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.02em; margin: 14px 0 20px;
}
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tag {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mid); border: 1px solid var(--rule); border-radius: 2px; padding: 4px 10px;
}

.audio-player {
  margin: 30px 0 10px; padding: 18px 20px;
  background: var(--off-white); border: 1px solid var(--rule); border-radius: 3px;
}
.audio-player .label {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 10px;
}
.audio-player audio { width: 100%; }

.article-body { padding: 20px 0 60px; font-size: 1.06rem; line-height: 1.78; }
.article-body > * + * { margin-top: 1.25em; }
.article-body h2 {
  font-family: 'Playfair Display', serif; font-size: 1.62rem;
  font-weight: 700; line-height: 1.26; letter-spacing: -0.01em;
  margin-top: 2.4em; margin-bottom: .1em;
}
.article-body h3 { font-size: 1.06rem; font-weight: 600; margin-top: 1.9em; }
.article-body strong { font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: .5em; }
.article-body hr { border: 0; border-top: 1px solid var(--rule); margin: 3em 0; }
.article-body blockquote {
  border-left: 2px solid var(--forest); padding-left: 20px; color: var(--mid); font-style: italic;
}
.article-body .lede { font-size: 1.2rem; line-height: 1.68; }

.sources { background: var(--off-white); border: 1px solid var(--rule); padding: 30px 30px 34px; margin-top: 44px; }
.sources h2 { margin-top: 0 !important; font-size: 1.2rem !important; }
.sources ul { font-size: .92rem; color: var(--mid); }

/* SHARE */
.share-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 30px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin: 40px 0;
}
.share-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); margin-right: 6px; }
.share-btn {
  font-family: 'Jost', sans-serif; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--charcoal); background: var(--white); border: 1px solid var(--light);
  border-radius: 2px; padding: 9px 15px; text-decoration: none; cursor: pointer;
  transition: all .2s ease;
}
.share-btn:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }

.pin-image { margin: 40px 0; }
.pin-image img { width: 100%; max-width: 460px; display: block; border: 1px solid var(--rule); }
.pin-caption { font-size: .74rem; color: var(--mid); margin-top: 8px; letter-spacing: .04em; }

/* NEXT + COMMENTS */
.next-up { padding: 20px 0 40px; }
.next-up .sec-idx { margin-bottom: 20px; }
.comments-wrap { padding: 20px 0 90px; }
.comments-wrap .sec-idx { margin-bottom: 18px; }

footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 60px; border-top: 1px solid var(--rule);
  font-size: .78rem; color: var(--mid); gap: 16px; flex-wrap: wrap;
}
footer a { color: var(--mid); text-decoration: none; }
footer a:hover { color: var(--charcoal); }

.back-link {
  display: inline-block; font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mid); text-decoration: none;
}
.back-link:hover { color: var(--forest); }

@media (max-width: 860px) {
  nav { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: .7rem; letter-spacing: .06em; }
  .wrap { padding: 0 24px; }
  .post-row { grid-template-columns: 1fr; gap: 10px; }
  .post-arrow { display: none; }
  footer { flex-direction: column; text-align: center; padding: 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.discuss { background: var(--off-white); border: 1px solid var(--rule); padding: 30px 32px 34px; }
.discuss .sec-idx { margin-bottom: 10px; }
.discuss p { color: var(--mid); margin-bottom: 18px; max-width: 46ch; }

/* ARTICLE + LIST IMAGERY */

/* Article hero: no fixed height, so the full editorial image shows uncropped. */
.article-hero { width: 100%; background: var(--paper); line-height: 0; }
.article-hero img { width: 100%; height: auto; display: block; }

/* List thumbnails: 2:1, matching the artwork's native shape. */
.post-row { grid-template-columns: 260px 1fr auto; align-items: center; }
.row-art { width: 260px; aspect-ratio: 2 / 1; background: var(--paper); overflow: hidden; }
.row-art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }

@media (max-width: 1000px) {
  .post-row { grid-template-columns: 200px 1fr auto; }
  .row-art { width: 200px; }
}
@media (max-width: 860px) {
  .post-row { grid-template-columns: 1fr; gap: 14px; }
  .row-art { width: 100%; aspect-ratio: 2 / 1; }
  .post-arrow { display: none; }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 860px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  nav { left: 0; right: 0; width: 100%; padding: 0 20px; }

  /* Nav collapses to a scrollable strip rather than overflowing */
  .nav-links { gap: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: .66rem; letter-spacing: .05em; white-space: nowrap; }
  .nav-cta { padding: 7px 12px; }

  .wrap, .narrow { padding-left: 20px; padding-right: 20px; }
  .page-head { padding: 62px 0 34px; }
  .page-title { font-size: clamp(1.65rem, 7vw, 2.3rem); max-width: none; }
  .page-sub { font-size: .95rem; }

  .article-head { padding: 44px 0 26px; }
  .article-head h1 { font-size: clamp(1.6rem, 7.2vw, 2.2rem); }
  .article-body { font-size: 1.02rem; line-height: 1.75; }
  .article-body h2 { font-size: 1.34rem; }

  .post-row h2 { font-size: 1.32rem; }
  .post-row p { font-size: .94rem; }
  section, main, footer, .post-row { max-width: 100%; min-width: 0; }
  .post-row > * { min-width: 0; }
  img { max-width: 100%; }
  .share-bar { gap: 8px; }
  .share-btn { font-size: .7rem; padding: 8px 12px; }
}

/* Discuss actions */
.discuss-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .discuss { padding: 26px 22px 30px; }
  .discuss-actions { flex-direction: column; align-items: stretch; }
  .discuss-actions .share-btn { text-align: center; padding: 12px 14px; }
  .share-bar { gap: 8px; }
}

/* NATURE */
.ridge-band {
  width: 100%;
  height: clamp(220px, 28vw, 380px);
  background: var(--paper) url('/assets/images/ridge.jpg') center 58% / cover no-repeat;
  border-top: 1px solid var(--rule);
  margin-top: 30px;
}
@media (max-width: 860px) { .ridge-band { height: clamp(180px, 46vw, 260px); } }
