/* /writings/ and /writings/<slug>/ (v6 layout, all-blue palette). Loaded after site-pages.css; uses the landing.css
   tokens and the shared section-eyebrow / section-title / section-body / btn-* classes. */

/* ── Hero: text + this month's highlight on the left, photo on the right ── */
main.page > section.wr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  padding: 0;
  border-bottom: 0.5px solid var(--border);
}
.wr-hero-text {
  padding: 96px 64px 80px max(80px, calc((100vw - 1120px) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wr-hero-img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 60% 40%; display: block; }
.wr-hero-text .section-body { margin-bottom: 0; }
.wr-highlight {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 0.5px solid var(--border-strong);
  max-width: 620px;
}
.wr-highlight h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.15;
  margin: 4px 0 12px;
  color: var(--text);
}
.wr-highlight p { font-size: 16.5px; line-height: 1.75; color: var(--text-mid); max-width: 560px; margin-bottom: 20px; }

/* ── Numbered article list (two columns) and the e-book list ── */
.wr-block { padding-block: 88px 24px; }
.wr-block + .wr-block { padding-bottom: 96px; }
.wr-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  columns: 2;
  column-gap: 64px;
  border-top: 0.5px solid var(--border);
}
.wr-list li { break-inside: avoid; border-bottom: 0.5px solid var(--border); }
.wr-list a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  text-decoration: none;
  color: var(--text);
}
.wr-ebooks { columns: 1; max-width: 760px; }
.wr-ebooks a { grid-template-columns: minmax(0, 1fr) auto; }
.wr-n {
  font-family: 'EB Garamond', Georgia, serif;
  font-variant-numeric: lining-nums;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--brand-deep);
}
.wr-t { font-family: 'EB Garamond', Georgia, serif; font-size: 23px; line-height: 1.2; transition: color 0.2s; }
.wr-go { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mid); white-space: nowrap; }
.wr-go::after { content: ' →'; }
.wr-list a:hover .wr-t, .wr-list a:focus-visible .wr-t { color: var(--brand-deep); }
.wr-more { margin-top: 32px; }
.wr-empty { margin-top: 24px; }

/* ── Article ── */
.art-section { padding-block: 72px 96px; }
.art { max-width: 720px; margin: 0 auto; }
.art-crumb { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 28px; }
.art-crumb a { color: inherit; }
.art-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.1;
  color: var(--text);
  margin: 8px 0 24px;
}
.art-sub { margin: -8px 0 28px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mid); }
.art-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 40px; display: block; }
.art-body { color: var(--text); }
.art-body p, .art-body li { font-size: 18px; line-height: 1.85; }
.art-body p { margin-bottom: 22px; }
.art-body ol, .art-body ul { margin: 0 0 22px 24px; }
.art-body h2, .art-body h3, .art-body h4, .art-h {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 36px 0 16px;
}
.art-body blockquote { margin: 0; padding: 0; border: 0; }
.art-body blockquote p { font-style: italic; color: var(--text-mid); }
.art-note { margin-top: 48px; font-size: 15px; line-height: 1.7; color: var(--text-mid); }

.art-about {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 0.5px solid var(--border);
}
.art-about .art-h { margin-top: 0; }
.art-about p { font-size: 16px; line-height: 1.75; color: var(--text-mid); margin-bottom: 16px; }
.art-cover { flex: 0 0 150px; display: block; transition: transform 0.25s, box-shadow 0.25s; }
.art-cover img { width: 100%; height: auto; display: block; }
a.art-cover:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30, 42, 58, 0.14); }
.art-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

.art-nav {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 0.5px solid var(--border);
}
.art-nav .btn-ghost { max-width: 48%; }
.art-nav .art-prev::before { content: '← '; }
.art-nav .art-next { text-align: right; }
.art-all { margin-top: 48px; }

@media (max-width: 900px) {
  main.page > section.wr-hero { grid-template-columns: 1fr; }
  .wr-hero-img { order: -1; aspect-ratio: 3 / 2; min-height: 0; height: auto; }
  .wr-hero-text { padding: 40px 24px 48px; }
  .wr-list { columns: 1; }
}
@media (max-width: 640px) {
  .art-about { flex-direction: column; }
  .art-cover { flex-basis: auto; width: 130px; }
  .art-nav { flex-direction: column; }
  .art-nav .btn-ghost { max-width: none; }
  .art-nav .art-next { text-align: left; }
}
