/* Palette and shapes follow the Guildhall marketing sheet: white and one blue, flat, high contrast. */

:root {
  --bg: #ffffff;
  --panel: #f1f3f5;
  --text: #111418;
  --muted: #4a5360;
  --line: #b4bcc6;
  --accent: #0b4f9e;
  --on-accent: #ffffff;
  --max-width: 68rem;
  --prose-width: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1215;
    --panel: #1a1f25;
    --text: #f2f4f7;
    --muted: #b3bcc8;
    --line: #4d5865;
    --accent: #7db7ff;
    --on-accent: #0f1215;
  }
}

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

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

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

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
}

.brand svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: var(--accent);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Main */

main {
  flex: 1;
}

.hero {
  padding-top: 4.5rem;
  padding-bottom: 4rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}

.hero .lead {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero .facts {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-top: 2px solid var(--line);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.section .intro {
  margin: 0 0 2rem;
  max-width: 42rem;
  color: var(--muted);
}

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

.card {
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.6rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
}

.limits {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 42rem;
}

.limits li {
  margin-bottom: 0.5rem;
}

/* Legal pages */

.prose {
  max-width: var(--prose-width);
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.prose h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.prose h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.35rem;
}

.prose .updated {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

/* Footer */

.site-footer {
  border-top: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--muted);
}
