:root {
  --ox: #7a2a22;
  --rose: #c9857a;
  --cream: #f4e9df;
  --ink: #2b1d18;
  --muted: #7d6a63;
  --line: #e6d9cf;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--cream); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 15px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    url("leaf-left.webp") left top / auto 100% no-repeat,
    url("leaf-right.webp") right top / auto 100% no-repeat;
}
main, footer { position: relative; z-index: 1; }

/* header */
.sticky { position: sticky; top: 0; z-index: 5; background: var(--cream); box-shadow: 0 1px 0 var(--line); }
header.brand { background: var(--ox); color: #fff; padding: 12px 16px 10px; text-align: center; }
header.brand .lock { display: flex; justify-content: center; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
header.brand .em { height: 42px; width: auto; display: block; }
header.brand .logo { font-family: Georgia, "Times New Roman", serif; letter-spacing: .22em; font-size: 20px; text-transform: uppercase; }
header.brand .sub { font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .8; margin-top: 3px; }

nav.tabs { display: flex; background: var(--ox); padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; color: #fff; opacity: .75; font-weight: 600; font-size: 13px; padding: 0 10px; border-bottom: 3px solid transparent; text-decoration: none; }
nav.tabs a.on { opacity: 1; border-bottom-color: #fff; }

nav.chips { display: flex; gap: 8px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; }
nav.chips::-webkit-scrollbar { display: none; }
nav.chips:empty { display: none; }
nav.chips a { flex: 0 0 auto; min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 18px; border: 1px solid var(--rose); color: var(--ox); text-decoration: none; font-size: 13px; background: #fff; }
nav.chips a.on { background: var(--ox); color: #fff; border-color: var(--ox); }

/* content */
.group[hidden] { display: none; }
h1.grp { font-family: Georgia, serif; font-weight: 400; font-size: 22px; color: var(--ox); margin: 26px 16px 0; }
.js h1.grp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h2.sec { font-family: Georgia, serif; font-weight: 400; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ox); margin: 22px 16px 6px; display: flex; justify-content: space-between; align-items: baseline; }
h2.sec small { font: 11px/1 -apple-system, sans-serif; letter-spacing: 0; text-transform: none; color: var(--muted); }
p.note { margin: -2px 16px 6px; font-size: 12px; color: var(--muted); font-style: italic; }
ul.items { list-style: none; margin: 0; padding: 0 16px; }
li.it { padding: 9px 0; border-bottom: 1px solid var(--line); }
li.it .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
li.it .n { font-weight: 600; }
li.it .p { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ox); }
li.it .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tag { display: inline-block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--rose); color: var(--ox); border-radius: 3px; padding: 1px 5px; margin-left: 6px; vertical-align: middle; }

footer { padding: 28px 16px 90px; font-size: 12px; color: var(--muted); text-align: center; }
footer p { margin: 4px 0; }
footer a { color: var(--ox); font-weight: 600; text-decoration: none; }

.top { position: fixed; right: 14px; bottom: 16px; z-index: 6; width: 44px; height: 44px; border: 1px solid var(--rose); border-radius: 50%; background: #fff; color: var(--ox); font-size: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.top[hidden] { display: none; }

@media (min-width: 700px) {
  main, footer { max-width: 640px; margin: 0 auto; }
  nav.tabs, nav.chips { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
