/* Wedivaro Journal: pearl, gold and sage. No script needed. */
:root {
  --bg: #fdfcfa; --surface: #fff; --pearl: #f6f2ec; --fg: #1c1a18; --muted: #6c6760;
  --line: rgba(28, 26, 24, .1); --accent: #8a6a14; --gold: #cf9f38; --sage: #4f6650; --sage-bg: #e8eee5;
  --display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ribbon: linear-gradient(135deg, #f3dc9b 0%, #cf9f38 50%, #e6bf5a 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: #fff; padding: .6rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 1rem; }

/* header: solid white, because the logo is cut from white */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.logo img { width: 150px; height: auto; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; font-size: .95rem; }
.nav a { color: var(--fg); text-decoration: none; padding: .35rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--gold); }
.btn { display: inline-block; background: var(--ribbon); color: #0f0e0d; font-weight: 500; text-decoration: none;
  padding: .8rem 1.6rem; border-radius: 999px; box-shadow: 0 10px 30px -14px rgba(138, 106, 20, .7); transition: transform .2s, box-shadow .2s; }
.btn:hover { color: #0f0e0d; transform: translateY(-1px); box-shadow: 0 14px 34px -14px rgba(138, 106, 20, .8); }
.btn-small { padding: .5rem 1.1rem; font-size: .9rem; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--gold); box-shadow: none; }
.btn-ghost:hover { background: var(--pearl); }
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; row-gap: 0; padding-block: .5rem; }
  .nav { order: 3; width: 100%; margin: 0; gap: 1.1rem; overflow-x: auto; white-space: nowrap; font-size: .9rem; padding-bottom: .25rem; }
  .btn-small { margin-left: auto; }
}

.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 .75rem; font-weight: 500; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--muted); }
.meta { font-size: .9rem; color: var(--muted); margin: 0; }

/* list page */
.hero { padding: clamp(3rem, 9vw, 6rem) 0 2rem; text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.hero .lead { max-width: 36rem; margin-inline: auto; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.pills a { text-decoration: none; color: var(--fg); border: 1px solid var(--line); background: var(--surface); padding: .35rem 1rem; border-radius: 999px; font-size: .92rem; }
.pills a:hover { border-color: var(--gold); }
.pills a[aria-current] { background: var(--sage-bg); border-color: var(--sage); color: var(--sage); }
.list { padding-bottom: 4rem; }
.grid { display: grid; gap: 2rem 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 3rem; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px -50px rgba(28, 26, 24, .35); }
.card-photo { display: block; aspect-ratio: 3 / 2; background: var(--pearl); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .card-photo img { transform: scale(1.04); }
.card-blank { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--pearl), #efe6d6); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; }
.card-title { font-size: 1.65rem; margin-bottom: .4rem; }
.card-title a { color: var(--fg); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-summary { color: var(--muted); font-size: 1rem; }
.card-big { display: grid; grid-template-columns: 1.4fr 1fr; }
.card-big .card-photo { aspect-ratio: auto; min-height: 340px; }
.card-big .card-body { align-self: center; padding: 2.5rem; }
.card-big .card-title { font-size: clamp(2rem, 4vw, 3.2rem); }
@media (max-width: 800px) { .card-big { grid-template-columns: 1fr; } .card-big .card-photo { aspect-ratio: 3 / 2; min-height: 0; } .card-big .card-body { padding: 1.5rem; } }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 3rem; gap: 1rem; }
.empty { text-align: center; background: var(--pearl); border: 1px solid var(--line); border-radius: 18px; padding: clamp(2rem, 6vw, 4rem) 1.5rem; margin-block: 1rem 2rem; }
.empty h1, .empty h2 { font-size: clamp(2rem, 5vw, 3rem); }
.empty p { max-width: 32rem; margin-inline: auto; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

/* article */
.article-head { padding-top: 2.5rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); }
.article-head h1 { font-size: clamp(2.5rem, 6.5vw, 4.5rem); }
.cover { margin-block: 2rem 3rem; }
.cover img { width: 100%; border-radius: 20px; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 30px 80px -40px rgba(28, 26, 24, .45); }
.prose { font-size: 1.15rem; line-height: 1.75; }
.prose h2 { font-size: 2.1rem; margin-top: 2.2em; padding-top: .9rem; border-top: 1px solid var(--gold); }
.prose h3 { font-size: 1.6rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.25rem; border-left: 2px solid var(--gold); font-family: var(--display); font-size: 1.4rem; font-style: italic; }
.cite { font-size: .7em; line-height: 0; }
.cite a { text-decoration: none; font-weight: 500; padding: 0 .15em; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin-block: 2rem; }
.tags li { background: var(--sage-bg); color: var(--sage); padding: .2rem .8rem; border-radius: 999px; font-size: .85rem; }
.sources { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.sources h2 { font-size: 1.6rem; }
.sources ol { padding-left: 1.4rem; font-size: .98rem; }
.sources li { margin-bottom: .4rem; overflow-wrap: anywhere; }
.sources li:target { background: var(--sage-bg); border-radius: 6px; }
.made { font-size: .9rem; color: var(--muted); font-style: italic; padding-bottom: 3rem; }
.band { background: var(--pearl); border-block: 1px solid var(--line); padding: clamp(2.5rem, 7vw, 4.5rem) 0; text-align: center; }
.band h2 { font-size: clamp(2rem, 5vw, 3rem); }
.band p { color: var(--muted); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 3rem; }
.pn { display: block; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg); text-decoration: none; }
.pn:hover { border-color: var(--gold); }
.pn span { display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.pn strong { font-family: var(--display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; }
.pn-right { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .prevnext { grid-template-columns: 1fr; } .pn-right { grid-column: auto; text-align: left; } }
.related { padding-bottom: 4rem; }
.related h2 { font-size: 2.2rem; }
.related .grid { margin-top: 1.5rem; }

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-top: 3rem; }
.foot { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr 1fr; }
.foot h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.foot nav a { display: block; color: var(--fg); text-decoration: none; padding: .2rem 0; }
.foot nav a:hover { color: var(--accent); }
.foot p { max-width: 24rem; font-size: .95rem; margin-top: .75rem; }
.legal { padding-block: 2rem; margin: 0 auto; font-size: .85rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .band, .prevnext, .related { display: none; } }
