/* The site's one stylesheet: system fonts only, no request to any other site (ADR-001). */

:root {
  /* Always light, whatever the visitor's system setting (owner, 2026-09-27). */
  color-scheme: light;
  --bg: #fbfbfa;
  --surface: #ffffff;
  --soft: #f1f7f7;
  --text: #1c1d1f;
  --muted: #5d6168;
  --line: #e3e4e6;
  /* The logo's two colours: the navy of the letters and the teal of the cross. */
  --brand: #164b63;
  --accent: #2faab1;
  --accent-text: #136a73;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* The header, the footer and the home page's sections; the legal texts keep the reading width. */
.wrap.wide {
  max-width: 68rem;
}

a {
  color: var(--accent-text);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  width: auto;
  height: 2.5rem;
}

main {
  flex: 1;
  padding: 3.5rem 0 4rem;
}

h1,
h2,
h3 {
  color: var(--brand);
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin: 0 0 0.375rem;
}

.lead {
  font-size: 1.1875rem;
  color: var(--text);
  margin: 0 0 1.5rem;
}

p {
  margin: 0 0 1rem;
}

.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.75rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

address {
  font-style: normal;
}

/* The home page. */
main.home {
  padding: 0;
}

.hero {
  padding: 4rem 0 3.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 40rem;
}

.hero .lead {
  max-width: 44rem;
}

.band {
  padding: 3.5rem 0;
}

.band.soft {
  background: var(--soft);
}

.band-intro {
  max-width: 44rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem 1.25rem 0.5rem;
}

.card p {
  font-size: 0.975rem;
  color: var(--muted);
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.5rem 2rem;
}

.points p {
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  margin: 0;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: var(--surface);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.975rem;
}

/* The legal pages. */
.legal h2 {
  font-size: 1.25rem;
  margin-top: 2.25rem;
}

.legal .dates {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* The root and 404 pages: nothing but the message, centred. */
.bare main.construction {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 16px;
  text-align: center;
}

.construction img {
  width: 100%;
  max-width: 30rem;
  height: auto;
}

.construction h1 {
  margin: 0;
}
