/* One stylesheet for the whole site. Colours and fonts come from build/look.yaml. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 18px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head-font); line-height: 1.25; margin: 1.6em 0 0.5em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-top: 0; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4, h5, h6 { font-size: 1.1rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

.top { background: var(--brand); color: var(--brand-ink); border-bottom: 4px solid var(--accent); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 14px 0; }
.brand { color: inherit; font-family: var(--head-font); font-weight: 700; font-size: 1.4rem; text-decoration: none; display: inline-flex; }
.brand img { display: block; max-height: 64px; width: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.menu a { color: inherit; text-decoration: none; font-family: var(--head-font); font-weight: 600; font-size: 0.95rem; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--accent); }

main { padding: 36px 0 56px; }
.piece { max-width: 760px; margin-inline: auto; }
.piece-head { margin-bottom: 20px; }
.tags { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-family: var(--head-font); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: var(--brand-ink); background: var(--brand); padding: 3px 10px; border-radius: 3px; }
.dates { color: var(--muted); font-size: 0.9rem; margin: 0; }
.lead-image { display: block; width: 100%; border-radius: 6px; margin: 0 0 24px; }
.body p { margin: 0 0 1.2em; }
.body img { border-radius: 6px; }
.body ul, .body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.body li { margin-bottom: 0.4em; }
.body blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--accent); background: var(--soft); }
.body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table { overflow-x: auto; margin: 0 0 1.4em; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
th { background: var(--soft); font-family: var(--head-font); }
.video { position: relative; padding-top: 56.25%; margin: 0 0 1.4em; background: #000; border-radius: 6px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.list-head { margin-bottom: 24px; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.topics a { text-decoration: none; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-family: var(--head-font); font-size: 0.9rem; font-weight: 600; }
.topics a:hover { border-color: var(--ink); }
.topics span { color: var(--muted); font-weight: 400; margin-left: 4px; }

.more { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.card:hover { border-color: var(--ink); }
.card img, .card .no-image { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--soft); }
.card-text { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.card strong { font-family: var(--head-font); font-size: 1.05rem; line-height: 1.3; }
.summary { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.foot { background: var(--brand); color: var(--brand-ink); padding: 28px 0; font-size: 0.95rem; }
.foot p { margin: 0 0 4px; }
.small { opacity: 0.75; font-size: 0.85rem; }
