/* Journal pages (listing, articles) and legal pages. Uses tokens from /styles.css */
body { padding-top: 0; }
.journal-head { padding: clamp(7rem, 14vw, 10rem) 0 1.5rem; }
.journal-head h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0.6rem 0 0.9rem; }
.journal-sub { color: var(--ink-soft); font-size: 1.15rem; max-width: 46ch; }
.jsearch { position: relative; display: flex; align-items: center; margin-top: 1.75rem; max-width: 640px; }
.jsearch-icon { position: absolute; left: 1.1rem; color: var(--ink-soft); pointer-events: none; }
.jsearch input { width: 100%; min-height: 54px; padding: 0.7rem 3rem 0.7rem 3rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 400 1rem var(--font-text); box-shadow: var(--e1); }
.jsearch input:focus { outline: none; border-color: var(--accent); }
.jsearch input::placeholder { color: #8b958e; }
.jsearch-clear { position: absolute; right: 0.5rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-soft); font-size: 1.5rem; cursor: pointer; }
.jstatus { min-height: 1.4em; margin: 0.7rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.filters .chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); padding-block: 1.5rem 4rem; }
.post-grid--two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); padding-bottom: 3rem; }
.post-card[hidden] { display: none; }
.post-card--big { grid-column: 1 / -1; }
.post-link { display: grid; gap: 1rem; text-decoration: none; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--e1); transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .post-link:hover { transform: translateY(-4px); box-shadow: var(--e2); } }
.post-card--big .post-link { grid-template-columns: 1.15fr 1fr; gap: 0; }
@media (max-width: 760px) { .post-card--big .post-link { grid-template-columns: minmax(0, 1fr); } }
.post-art { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-art--cover { position: relative; background: var(--c); color: #f7f2e8; padding: 1.5rem 1.4rem 1.2rem 1.9rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 8px 0 0 rgba(0, 0, 0, 0.18); min-height: 180px; }
.post-art--cover .pa-rule { position: absolute; left: 1.9rem; right: 1.4rem; top: 1.3rem; height: 2px; background: currentColor; opacity: 0.55; }
.pa-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.05; letter-spacing: -0.015em; margin-top: 1.4rem; }
.pa-cat { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.post-meta { padding: 0 1.4rem 1.4rem; display: grid; gap: 0.6rem; align-content: start; }
.post-card--big .post-meta { padding: clamp(1.4rem, 3vw, 2.5rem); align-content: center; }
.post-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0; }
.post-kicker a { text-decoration: none; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.post-meta h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.1; }
.post-card--big .post-meta h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.post-excerpt { color: var(--ink-soft); font-size: 1rem; }
.post-info { color: var(--ink-soft); font-size: 0.85rem; margin: 0; }
.empty-note { text-align: center; padding: 2rem 0 5rem; color: var(--ink-soft); display: grid; gap: 1rem; justify-items: center; }
.empty-note[hidden] { display: none; }

/* Article */
.article-head { padding-top: clamp(7rem, 14vw, 9.5rem); max-width: 860px; display: grid; gap: 1rem; }
.article-head h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
.article-photo { max-width: 960px; margin-block: 2rem 2.5rem; }
.article-photo .post-art { border-radius: 20px; box-shadow: var(--e2); aspect-ratio: 16 / 9; }
.article-photo .post-art--cover { min-height: 260px; }
.article-body { width: min(680px, 100% - 2 * var(--gutter)); margin-inline: auto; font-size: 1.15rem; line-height: 1.75; }
.article-body h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 2.4rem 0 0.7rem; }
.article-body p { margin: 0 0 1.1rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; margin: 0 0 1.4rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body blockquote { margin: 1.6rem 0; padding-left: 1.2rem; border-left: 3px solid var(--accent); font-family: var(--font-display); font-style: italic; font-size: 1.3rem; }
.sent-list { list-style: none; padding: 0 !important; counter-reset: s; }
.sent-list li { counter-increment: s; position: relative; padding: 0 0 1.3rem 3.2rem; margin: 0 0 1.3rem; border-bottom: 1px solid var(--line); }
.sent-list li::before { content: counter(s); position: absolute; left: 0; top: 0.1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; color: var(--accent); line-height: 1; }
.sent-list h2 { font-size: 1.25rem; margin: 0 0 0.35rem; }
.sent-list p { margin: 0; }
.sent-list em { color: var(--ink-soft); }
.article-cta { max-width: 860px; display: grid; gap: 1.5rem; margin-block: 3.5rem 1rem; }
.cta-box { background: var(--green); color: #f3efe6; border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 0.7rem; justify-items: start; }
.cta-box h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-box p { color: rgba(243, 239, 230, 0.82); }
.cta-box .btn-primary { background: #f2b45c; color: #2a1c08; box-shadow: none; }
.more-posts { padding-top: 2rem; }
.more-posts > h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.share { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* Legal pages */
.legal-page { padding: clamp(7rem, 14vw, 9rem) 0 4rem; }
.legal-body { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; font-size: 1.05rem; line-height: 1.7; }
.legal-body h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.5rem; }
.legal-body h2 { font-size: 1.5rem; margin: 2.2rem 0 0.6rem; }
.legal-body .updated { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 2rem; }
.legal-body ul { padding-left: 1.3rem; }
.legal-body li { margin-bottom: 0.4rem; }
.legal-note { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; font-size: 0.95rem; margin: 1.5rem 0; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.legal-body th, .legal-body td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body h3 { font-size: 1.15rem; margin: 1.4rem 0 0.4rem; }

/* Journal filter buttons: green, selected one terracotta */
.filters .chip { background: var(--green); border-color: var(--green); color: #f3efe6; }
.filters .chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .filters .chip:hover { background: #3a6b55; border-color: #3a6b55; } .filters .chip.is-on:hover { background: var(--accent-deep); border-color: var(--accent-deep); } }

/* Back to all articles */
.back-link { max-width: 860px; margin: 0 auto; padding-top: clamp(6.25rem, 12vw, 7.25rem); font-size: 0.9rem; font-weight: 600; }
.back-link + .article-head { padding-top: 1.25rem; }
.back-link a, .see-all a { color: var(--accent); text-decoration: none; }
.back-link a:hover, .see-all a:hover { text-decoration: underline; text-underline-offset: 3px; }
.see-all { margin: 2.5rem 0 0; padding-bottom: clamp(3rem, 8vw, 4.5rem); text-align: center; font-weight: 600; }

/* ---------- palette update: Journal, articles, legal pages ----------
   ivory ground, midnight ink, forest links, terracotta labels, gold only on the CTA button */
:root {
  --paper: #f5f0e5;
  --paper-2: #ece5d3;
  --surface: #faf6ec;
  --ink: #102e27;
  --ink-soft: #4b5a54;
  --accent: #c7775b;
  --accent-deep: #a95f45;
  --accent-ink: #102e27;
  --green: #234a3c;
  --line: rgba(16, 46, 39, 0.16);
}
html { scrollbar-color: #c9cbc5 var(--paper); }
.filters .chip.is-on { color: #102e27; }
@media (hover: hover) and (pointer: fine) { .filters .chip:hover { background: #2d5c4a; border-color: #2d5c4a; } .filters .chip.is-on:hover { color: #102e27; } }
.cta-box { color: #f5f0e5; }
.cta-box p { color: #c9cbc5; }
.cta-box .btn-primary { background: #ddb65b; color: #102e27; }
.article-body a { color: var(--green); text-decoration-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .article-body a:hover { color: var(--accent); } }
.article-body blockquote { color: var(--green); border-left-color: var(--accent); }

/* Journal header: ivory, Cormorant headline, Inter text */
.journal-head .kicker { font: 500 clamp(0.75rem, 1.1vw, 0.8125rem)/1.4 "Inter", var(--font-text); letter-spacing: 0.15em; text-transform: uppercase; color: #c7775b; }
.journal-head h1 { font-family: "Cormorant Garamond", var(--font-display); font-weight: 500; font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.1; letter-spacing: -0.01em; color: #102e27; max-width: 17em; margin: 1rem 0 1.25rem; }
.journal-head .journal-sub { font: 400 clamp(1rem, 1.5vw, 1.1875rem)/1.6 "Inter", var(--font-text); color: #354a40; max-width: 44rem; }

/* Article header: Journal on its own line, categories under it; yellow see-all button */
.post-journal { margin: 0 0 0.5rem; font: 600 clamp(1.5rem, 4vw, 1.9rem)/1.1 var(--font-display); letter-spacing: -0.01em; }
.post-journal a { color: var(--accent); text-decoration: none; }
.see-all .btn-lamp { background: #ddb65b; color: #102e27; box-shadow: none; }
.see-all .btn-lamp:hover { background: #e8c878; text-decoration: none; }
