/* Journal (blog) — overview, article and the "From the journal" strip.
   Article look follows Javiera's Craft documents: a kraft-paper band, a beige rounded "page",
   bold brown headings, dark-brown dividers, framed images, a table of contents beside the text.
   Cards/strip styles live in journal-cards.css (loaded alongside). */
:root {
  --bg: rgb(252, 246, 241); --ink: #2c2416; --ink-light: #7a6e62;
  --accent: #b5956a; --accent-light: #d4b896; --border: rgba(44, 36, 22, 0.12);
  --kraft: #c29a6b; --paper: #ead8bb; --paper-edge: rgba(91, 58, 26, 0.18);
  --brown: #5b3a1a; --brown-ink: #46301b; --brown-soft: #7b5a3a;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--bg); color: var(--ink); font-family: 'Jost', sans-serif; font-weight: 300; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Overview page ────────────────────────────────────────────────────────────── */
.jr-index { max-width: 1080px; margin: 0 auto; padding: 2.5rem clamp(1.2rem, 5vw, 4rem) 4.5rem; }
.jr-eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; color: var(--accent); margin-bottom: .8rem; }
.jr-index h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; }
.jr-lead { max-width: 60ch; color: var(--ink-light); line-height: 1.65; margin: .9rem 0 0; }
.jr-ornament { display: flex; align-items: center; gap: .7rem; margin: 1.4rem 0 1.6rem; }
.jr-ornament span:first-child, .jr-ornament span:last-child { flex: 1; height: 1px; background: var(--accent-light); }
.jr-ornament span:nth-child(2) { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.jr-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.jr-chip { font-size: .84rem; text-decoration: none; padding: .38rem 1rem; border-radius: 999px; border: 1px solid var(--border); color: var(--ink); background: #fff; transition: border-color .15s, background .15s; }
.jr-chip:hover, .jr-chip:focus-visible { border-color: var(--accent); }
.jr-chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.jr-chip small { opacity: .6; margin-left: .25rem; }
.jr-empty { color: var(--ink-light); font-style: italic; padding: 2rem 0; }
.jr-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.4rem; font-size: .9rem; }
.jr-pager a { text-decoration: none; border-bottom: 1px solid var(--accent-light); padding-bottom: 2px; }
.jr-pager a:hover { border-color: var(--accent); }

/* ── Article: kraft band + paper page ────────────────────────────────────────── */
.jr-band {
  background-color: var(--kraft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .2 0 0 0 0 .09 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"),
                    radial-gradient(ellipse at 20% 0%, rgba(255, 240, 215, .25), transparent 60%);
  padding: clamp(1.2rem, 4vw, 3rem) clamp(.7rem, 3vw, 2rem) clamp(2rem, 5vw, 4rem);
}
.jr-layout { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: start; }
@media (min-width: 1000px) { .jr-layout { grid-template-columns: 230px minmax(0, 760px); justify-content: center; } }
.jr-page { background: var(--paper); border-radius: 14px; box-shadow: 0 1px 0 var(--paper-edge), 0 18px 40px rgba(60, 35, 10, .22); padding: clamp(1.3rem, 4.5vw, 3rem) clamp(1.1rem, 5vw, 3.2rem) clamp(1.8rem, 5vw, 3.2rem); color: var(--brown-ink); font-family: 'Jost', sans-serif; font-weight: 400; font-size: 1.06rem; line-height: 1.7; }
.jr-preview { background: #fff3c4; color: #5a4300; border-radius: 10px; padding: .7rem 1rem; font-size: .88rem; margin-bottom: 1.2rem; }
.jr-cat { display: inline-block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brown); border: 1px solid var(--brown-soft); border-radius: 999px; padding: .14rem .65rem; text-decoration: none; margin-bottom: .9rem; }
.jr-page h1 { font-family: 'Jost', sans-serif; font-weight: 600; font-size: clamp(1.75rem, 4.4vw, 2.35rem); line-height: 1.2; color: var(--brown); text-wrap: balance; }
.jr-meta { font-size: .85rem; color: var(--brown-soft); margin: .7rem 0 0; padding-bottom: 1.1rem; border-bottom: 1px solid var(--paper-edge); }
.jr-lang-note { font-size: .82rem; color: var(--brown-soft); font-style: italic; margin-top: .8rem; }
.jr-cover { margin: 1.5rem 0 1.6rem; }
.jr-cover img, .jr-fig img { width: 100%; height: auto; border-radius: 10px; }
.jr-body > * + * { margin-top: 1em; }
.jr-body h2 { font-family: 'Jost', sans-serif; font-weight: 600; font-size: clamp(1.35rem, 3.4vw, 1.65rem); line-height: 1.25; color: var(--brown); margin-top: 1.6em; text-wrap: balance; }
.jr-body h3 { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 1.15rem; color: var(--brown); margin-top: 1.5em; }
.jr-body h4 { font-weight: 600; font-size: 1.02rem; color: var(--brown); margin-top: 1.3em; }
.jr-body strong { font-weight: 600; color: var(--brown); }
.jr-body em { font-style: italic; }
.jr-body a { color: var(--brown); text-underline-offset: 3px; }
.jr-body ul, .jr-body ol { padding-left: 1.4em; }
.jr-body li + li { margin-top: .35em; }
.jr-body li::marker { color: var(--brown-soft); }
.jr-body hr { border: 0; border-top: 2px solid var(--brown); margin: 2.4em 0; opacity: .85; }
.jr-body blockquote { border-left: 3px solid var(--brown-soft); padding: .2em 0 .2em 1.1em; color: var(--brown); font-size: 1.08em; }
.jr-fig { background: rgba(91, 58, 26, .08); border-radius: 12px; padding: clamp(.4rem, 1.5vw, .8rem); margin: 1.6em 0; }
.jr-fig img { max-height: 620px; width: auto; margin: 0 auto; }
.jr-body code { font-size: .92em; background: rgba(91, 58, 26, .1); padding: .05em .35em; border-radius: 4px; }

/* Table of contents — sticky beside the page (desktop), fold-out inside the page (phones). */
.jr-toc { display: none; }
@media (min-width: 1000px) {
  .jr-toc { display: block; position: sticky; top: 100px; background: rgba(250, 240, 224, .72); border-radius: 12px; padding: 1rem 1.1rem; font-size: .86rem; color: var(--brown-ink); }
  .jr-toc-m { display: none; }
}
.jr-toc-title { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brown-soft); margin-bottom: .6rem; }
.jr-toc ol, .jr-toc-m ol { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.jr-toc a, .jr-toc-m a { text-decoration: none; line-height: 1.35; display: block; }
.jr-toc a:hover, .jr-toc-m a:hover { text-decoration: underline; text-underline-offset: 3px; }
.jr-toc-m { margin: 0 0 1.4rem; background: rgba(91, 58, 26, .07); border-radius: 10px; padding: .7rem .95rem; font-size: .92rem; }
.jr-toc-m summary { cursor: pointer; font-weight: 500; color: var(--brown); }
.jr-toc-m ol { margin-top: .6rem; }

/* After the article: author, booking box, related */
.jr-after { max-width: 1080px; margin: 0 auto; padding: 2.6rem clamp(1.2rem, 5vw, 4rem) 4rem; display: flex; flex-direction: column; gap: 2.4rem; }
.jr-duo { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 760px) { .jr-duo { grid-template-columns: 1fr 1fr; } }
.jr-author, .jr-cta { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.3rem 1.4rem; display: flex; gap: 1rem; align-items: center; }
.jr-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.jr-author p, .jr-cta p { font-size: .92rem; line-height: 1.55; color: var(--ink-light); }
.jr-author strong { display: block; color: var(--ink); font-weight: 400; font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; }
.jr-cta { flex-direction: column; align-items: flex-start; justify-content: center; }
.jr-btn { display: inline-block; text-decoration: none; background: var(--accent); color: #fff; border-radius: 999px; padding: .55rem 1.3rem; font-size: .88rem; transition: opacity .15s; }
.jr-btn:hover, .jr-btn:focus-visible { opacity: .88; }
.jr-after h2, .jr-strip h2 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 1.9rem; }
.jr-back { font-size: .9rem; text-decoration: none; border-bottom: 1px solid var(--accent-light); align-self: flex-start; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
