/* venuespotter.co.uk. Nothing is loaded from anywhere else: the two typefaces
   (Fraunces for headings, Source Sans 3 for text; SIL Open Font Licence, see
   fonts/) are served from this site.

   The look: deep navy and one warm amber, a characterful serif for headings,
   square-cornered buttons. No green or teal anywhere (a test checks). */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/static/fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/source-sans-3.woff2") format("woff2");
}

:root {
  --navy: #14233f;
  --navy-deep: #0c1729;
  --on-navy: #fbf6ec;
  --on-navy-muted: #c9d1de;
  --amber: #f4a340;          /* buttons and highlights; navy text on it is 7.5:1 */
  --amber-ink: #14233f;
  --amber-text: #a3560a;     /* amber for text on a light background: 4.9:1 */
  --ink: #1b2230;
  --muted: #505a6a;
  --line: #e2dcd2;
  --paper: #ffffff;
  --page: #faf7f2;
  --link: #14233f;
  --error: #b00020;
  --radius: 3px;
  --measure: 70ch;
  --heading: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0a1322;
    --navy-deep: #060d18;
    --ink: #f1ece2;
    --muted: #b7c0ce;
    --line: #2a3a55;
    --paper: #14233f;
    --page: #0e1a2f;
    --link: #f7c27e;
    --amber-text: #f7c27e;
    --error: #ff8595;
  }
}

*, *::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: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
}
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
a { color: var(--link); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* -- header: navy, with the wordmark ------------------------------------------ */
.site-header { background: var(--navy); color: var(--on-navy); border-bottom: 4px solid var(--amber); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-block: 0.9rem;
}
.brand {
  font-family: var(--heading); font-weight: 800; font-size: 1.45rem; line-height: 1;
  color: var(--on-navy); text-decoration: none; letter-spacing: -0.01em;
}
.brand span { color: var(--amber); }
.brand::after {
  /* The small mark: an amber square after the name, like a pin on a map. */
  content: ""; display: inline-block; width: 0.32em; height: 0.32em; margin-left: 0.12em;
  background: var(--amber); vertical-align: 0.05em;
}
nav { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
nav a { color: var(--on-navy); text-decoration: none; font-weight: 600; }
nav a:hover { text-decoration: underline; text-decoration-color: var(--amber); }

/* -- type ---------------------------------------------------------------------- */
main { padding-block: 1.5rem 3rem; }
section { margin-block: 2.5rem; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.15; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); margin: 0 0 0.9rem; letter-spacing: -0.015em; max-width: 20ch; }
h2 { font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.95rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
p, li { max-width: var(--measure); }
.lead { font-size: 1.22rem; color: var(--muted); }
.small { font-size: 0.9rem; color: var(--muted); }

/* -- the hero: a navy panel, left-aligned ----------------------------------------- */
.hero {
  margin-top: 1.5rem; background: var(--navy); color: var(--on-navy);
  padding: clamp(1.5rem, 1rem + 3vw, 3.2rem); border-left: 8px solid var(--amber);
}
.hero h1 { color: var(--on-navy); }
.hero .lead { color: var(--on-navy-muted); }

/* -- buttons: square, amber, with a navy edge ------------------------------------- */
.button {
  display: inline-block; background: var(--amber); color: var(--amber-ink);
  padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 700;
  font-family: var(--body); font-size: 1rem; letter-spacing: 0.02em;
  text-decoration: none; border: 2px solid var(--navy-deep); cursor: pointer;
  box-shadow: 3px 3px 0 var(--navy-deep);
}
.button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--navy-deep); }
.button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy-deep); }
.hero .button, .site-header .button { border-color: var(--amber); box-shadow: none; }
.hero .button:hover, .site-header .button:hover { transform: none; box-shadow: none; filter: brightness(1.07); }
.button.small { padding: 0.35rem 0.9rem; font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) {
  .button:hover, .button:active { transform: none; }
}

/* -- cards and panels ------------------------------------------------------------- */
.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;
}
.card { border-top: 4px solid var(--navy); }
.note { border-left: 6px solid var(--amber); }
.columns { columns: 2 16rem; padding-left: 1.2rem; }
.columns li { break-inside: avoid; }
.columns li::marker { color: var(--amber-text); }

.tag {
  display: inline-block; font-family: var(--body); font-size: 0.7em; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--amber-ink); background: var(--amber); border-radius: var(--radius);
  padding: 0.05em 0.45em; margin-right: 0.4em; vertical-align: 0.2em;
}
.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(--navy); color: var(--on-navy); 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-left: 4px solid var(--navy); 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; }
}

/* -- the form --------------------------------------------------------------------- */
.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(--muted); border-radius: var(--radius); 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); border-width: 2px; }
/* 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(--amber-text); color: var(--amber-text); font-weight: 700; border-radius: var(--radius); }

/* -- footer: navy again ------------------------------------------------------------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding-block: 1.4rem; font-size: 0.9rem; }
.site-footer a { color: var(--on-navy); }
.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; }
  .site-header, .site-footer, .hero { background: none; color: #000; }
  .hero h1, .brand { color: #000; }
}
