/* ------------------------------------------------------------
   Essay-page + archive styling. Loaded AFTER wbw-theme.css.
------------------------------------------------------------ */

/* ---------- Masthead (matches the homepage) ---------- */
.essay-head { text-align: center; padding: 1.4rem 1rem 0; border: 0; background: none; display: block; }
.essay-logo {
  display: inline-block; text-decoration: none; color: var(--ink);
  font-family: var(--font-logo); font-size: clamp(2.4rem, 7vw, 3.4rem); line-height: 1.1; letter-spacing: .02em;
}
.essay-sub { margin: .2rem 0 1.1rem; font-size: .85rem; color: var(--muted); }
.essay-nav { background: var(--bar); display: flex; justify-content: center; gap: 2rem; padding: .85rem 1rem; margin: 0 -1rem; }
.essay-nav a { color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; text-transform: lowercase; }
.essay-nav a:hover { color: #f5a03a; }

/* ---------- Titles + headings in blue ---------- */
article h1, .article-title, .post-header h1 { color: var(--accent); }
article h2, .article-body h2 { color: var(--accent); }

/* ---------- Extra block after the essay ---------- */
.essay-extra { max-width: 760px; margin: 3rem auto 0; padding: 0 1.25rem 3rem; }
.essay-extra .wbw-label { margin: 2rem 0 1.4rem; }
.next-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.4rem; }
.next-card { text-decoration: none; display: block; }
.next-card img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: contain; background: #111; border: 1px solid var(--rule); }
.next-card b { display: block; margin-top: .6rem; color: var(--accent); font-size: 1.05rem; line-height: 1.25; }
.next-card em { display: block; font-style: normal; font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.next-card:hover b { color: var(--ink); }

.essay-extra .signup { margin-top: 2.4rem; }

/* ---------- Shared label tab (also defined in wbw-home.css) ---------- */
.wbw-label { border-bottom: 1px solid var(--accent); }
.wbw-label span { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem; padding: .35rem .9rem; }

/* ---------- Signup box (also defined in wbw-home.css) ---------- */
.signup { background: #f5a03a; padding: 1.1rem 1rem 1rem; border-radius: 2px; }
.signup h3 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 700; color: #3a2400; }
.signup p { margin: 0 0 .8rem; font-size: .82rem; color: #3a2400; }
.signup input { width: 100%; box-sizing: border-box; padding: .6rem .7rem; margin-bottom: .5rem; border: 0; border-radius: 2px; font: inherit; font-size: .85rem; }
.signup button { width: 100%; padding: .65rem; border: 0; border-radius: 2px; cursor: pointer; background: #1d5f94; color: #fff; font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .04em; }
.signup button:hover { background: #154a74; }
.signup small { display: block; margin-top: .6rem; font-size: .72rem; color: #5a3d10; }

/* ---------- Archive page ---------- */
.archive { max-width: 900px; margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }
.archive h1 { font-size: 1.9rem; margin: 1rem 0 .3rem; color: var(--accent); }
.archive .lead { color: var(--muted); margin: 0 0 1.4rem; }
.filters { display: flex; gap: .5rem; margin-bottom: 1.2rem; }
.filters button {
  font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--rule); background: #fff; color: var(--muted); padding: .35rem .9rem; border-radius: 16px;
}
.filters button.on, .filters button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.a-row {
  display: grid; grid-template-columns: 150px minmax(0,1fr) 5rem 8.5rem; gap: 1.2rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.a-row img { width: 150px; aspect-ratio: 1200 / 630; object-fit: contain; background: #111; border: 1px solid var(--rule); display: block; }
.a-row .t { font-weight: 700; font-size: 1.1rem; line-height: 1.25; color: var(--accent); display: block; }
.a-row .d { font-size: .85rem; color: var(--muted); margin-top: .25rem; display: block; }
.a-row .tag { text-align: center; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--rule); padding: .2rem .4rem; color: var(--muted); }
.a-row .date { text-align: right; font-size: .8rem; color: var(--muted); }
.a-row:hover .t { color: var(--ink); }
.a-row[hidden] { display: none; }

@media (max-width: 700px) {
  .next-cards { grid-template-columns: minmax(0,1fr); }
  .a-row { grid-template-columns: 96px minmax(0,1fr); }
  .a-row img { width: 96px; }
  .a-row .tag, .a-row .date { grid-column: 2; text-align: left; justify-self: start; }
}
