/* Site theme: shared with every project page (reference implementation:
   projects/man-utd-xg). Literata for prose, IBM Plex Sans for UI; warm
   off-white paper; no dark mode. */
@import url('https://fonts.googleapis.com/css2?family=Literata:opsz,wght@7..72,400;7..72,600&family=IBM+Plex+Sans:wght@400;500&display=swap');

:root {
  --paper: #faf9f5;
  --ink: #1f1e1b;
  --muted: #6b675f;
  --rule: #e2ded4;
  --focus: #2a78d6;
  --maxw: 46rem;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 18px/1.65 Literata, Georgia, serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.wide { max-width: 64rem; }

header.site { padding: 4rem 0 1.75rem; border-bottom: 1px solid var(--rule); }
header.site h1 {
  font-weight: 600; font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5rem;
}
header.site .tagline { color: var(--muted); font-size: 1.15rem; margin: 0; }

nav.top { margin-top: 1.1rem; font: 400 15px/1.6 var(--sans); }
nav.top a { color: var(--muted); margin-right: 18px; text-decoration: none; }
nav.top a:hover { color: var(--ink); }

main { padding: 2.5rem 0 4rem; }
main.wrap { padding-top: 2.5rem; padding-bottom: 4rem; } /* .wrap's side padding would otherwise reset these */

section { margin-bottom: 3rem; }
section > h2 { font-weight: 600; font-size: 1.3rem; margin: 0 0 .9rem; }

p { margin: 0 0 1rem; }
p.lede { font-size: 18px; }

.card {
  display: block; border: 1px solid var(--rule); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 12px; color: inherit; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--muted); transform: translateY(-1px); }
.card h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.card .meta { font: 400 13px/1.5 var(--sans); color: var(--muted); margin-top: 8px; }

.soon { color: var(--muted); font-style: italic; }

footer.site {
  border-top: 1px solid var(--rule); padding: 1.75rem 0 4rem;
  color: var(--muted); font: 400 15px/1.6 var(--sans);
}
footer.site a { color: var(--muted); margin-right: 16px; text-decoration: none; }
footer.site .wrap > span { margin-right: 16px; }
footer.site a:hover { color: var(--ink); }

/* article / project pages */
.back { font: 400 15px/1 var(--sans); color: var(--muted); display: inline-block; margin: 2.5rem 0 .5rem; }
article h1 {
  font-weight: 600; font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.15; letter-spacing: -0.01em; margin: 1rem 0 .5rem;
}
article .byline { color: var(--muted); font-size: 1.15rem; margin: 0 0 2rem; }
article h2 { font-weight: 600; font-size: 1.3rem; margin: 3rem 0 .75rem; }
article h3 { font-weight: 600; font-size: 1.1rem; margin: 2rem 0 .5rem; }
article h4 {
  font: 500 13px/1.4 var(--sans); margin: 1.5rem 0 .5rem;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
}
article img { max-width: 100%; border-radius: 10px; border: 1px solid var(--rule); }
article ul { margin: 0 0 1rem; padding-left: 1.2rem; }
article li { margin-bottom: .5rem; }
article li > ul { margin-top: .5rem; margin-bottom: 0; }
.place-note { color: var(--muted); font-weight: 400; font-size: 0.65em; }

.note { font: 400 14px/1.5 var(--sans); color: var(--muted); }

@media (max-width: 560px) {
  body { font-size: 17px; }
  header.site { padding-top: 3rem; }
}

/* Reader feedback line (assets/feedback.js) */
.feedback { max-width: var(--maxw); margin: 2.5rem 0 1rem; padding: .9rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  border-top: 1px solid var(--rule); font: 400 15px/1.4 var(--sans); color: var(--muted); }
.feedback button { font: inherit; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.feedback button:hover { border-color: var(--muted); }
.feedback .ask { border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.feedback .sep { color: var(--rule); }
.feedback.centred { width: min(calc(var(--maxw) - 2.5rem), calc(100% - 2.5rem)); margin: 2.5rem auto 1rem; padding: .9rem 0; }
