/* licenceleads.uk. System fonts only: nothing is loaded from anywhere else. */
:root {
  --ink: #16202b;
  --muted: #4d5a68;
  --line: #d8dee6;
  --paper: #ffffff;
  --page: #f5f7fa;
  --brand: #1f3a5f;
  --accent: #0b6b5a;
  --accent-ink: #ffffff;
  --tag: #8a4b00;
  --error: #b00020;
  --radius: 10px;
  --measure: 70ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8edf2;
    --muted: #a9b5c2;
    --line: #2d3a48;
    --paper: #16202b;
    --page: #0f1720;
    --brand: #9cc3ef;
    --accent: #3fb8a0;
    --accent-ink: #062a24;
    --tag: #f0b35a;
    --error: #ff7a8a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  /* Grows gently with the screen: comfortable on a phone, readable across a room on a TV. */
  font-size: clamp(16px, 0.85rem + 0.35vw, 26px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-block: 0.8rem;
}
.brand { font-weight: 800; font-size: 1.25rem; color: var(--brand); text-decoration: none; letter-spacing: -0.01em; }
nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; }

main { padding-block: 1.5rem 3rem; }
section { margin-block: 2.5rem; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); margin: 0 0 0.8rem; letter-spacing: -0.02em; max-width: 22ch; }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.8rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
p, li { max-width: var(--measure); }
.lead { font-size: 1.2rem; color: var(--muted); }
.small { font-size: 0.9rem; color: var(--muted); }

.hero { margin-top: 1.5rem; }
.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 0.75rem 1.4rem; border-radius: var(--radius); font-weight: 700;
  text-decoration: none; border: 0; font-size: 1rem; cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button.small { padding: 0.35rem 0.9rem; font-size: 0.9rem; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.card, .note, .form-page, .prose {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.columns { columns: 2 16rem; padding-left: 1.2rem; }
.columns li { break-inside: avoid; }

.tag {
  display: inline-block; font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--tag); border: 2px solid var(--tag); border-radius: 6px; padding: 0 0.4em;
  margin-right: 0.4em; vertical-align: 0.15em;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--page); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }

/* On a phone the example table becomes one card per venue. */
@media (max-width: 40rem) {
  .table-wrap { border: 0; background: none; }
  table, thead, tbody, tr, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.8rem; padding: 0.4rem 0; }
  td { border: 0; padding: 0.2rem 0.9rem; }
  td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); }
  td:first-child { font-weight: 700; font-size: 1.05rem; }
  td:first-child::before { content: none; }
}

.form-page { max-width: 42rem; }
form { display: grid; gap: 0.35rem; margin-block: 1rem; }
label { font-weight: 700; margin-top: 0.7rem; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--page);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.7rem; width: 100%;
}
textarea { resize: vertical; }
form .button { margin-top: 1.2rem; justify-self: start; }
.error, .error-summary { color: var(--error); font-weight: 700; }
[aria-invalid="true"] { border-color: var(--error); }
/* The honeypot: out of sight and out of the tab order, but still in the form. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.prose h2 { margin-top: 1.8rem; }
.draft { margin-top: 2rem; padding: 0.8rem 1rem; border: 2px dashed var(--tag); color: var(--tag); font-weight: 700; border-radius: 8px; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding-block: 1.2rem; font-size: 0.9rem; color: var(--muted); }
.site-footer p { margin: 0.3rem 0; max-width: none; }
.attribution { font-size: 0.85rem; }

@media (min-width: 110rem) {
  .wrap { width: min(100% - 6rem, 90rem); }
}
@media print {
  .site-header nav, .button { display: none; }
}
