/* noticehouse.eu. The fonts are served from this site, so a visit loads nothing from anyone else.
   Bricolage Grotesque is under the SIL Open Font License; see fonts/LICENSE-bricolage-grotesque.txt.

   Plan: a notice board. A cool grey board, white notices pinned to it, one pin per service in
   that service's own colour. The pins are the only colour on the page. One left-aligned column. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }

:root {
  --board: #dde3e8;
  --paper: #ffffff;
  --ink: #17212b;
  --muted: #4d5a66;
  --edge: #b3bec8;
  --pin: #c8372d;
  --words: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--board); color: var(--ink); font: 400 1.125rem/1.55 var(--words); }
a { color: var(--ink); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--pin); outline-offset: 3px; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 2rem 1.5rem 3rem; }

.name { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.name img { display: block; }

h1 { font-size: clamp(2.25rem, 7vw, 3.75rem); line-height: 1.04; letter-spacing: -0.02em; margin: 3.5rem 0 1.25rem; max-width: 14ch; }
.lead { font-size: 1.3125rem; line-height: 1.45; max-width: 34rem; margin: 0; }
h2 { font-size: 1.125rem; margin: 3.5rem 0 1.25rem; }
p { margin: 0; }
p + p { margin-top: 0.9rem; }
.plain { max-width: 34rem; }

/* The notices. Each hangs from one pin. */
.notices { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.notices li { position: relative; background: var(--paper); border: 1px solid var(--edge); padding: 2.25rem 1.5rem 1.5rem; }
.notices li::before { content: ""; position: absolute; top: 0.9rem; left: 1.5rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--pin-colour, var(--pin)); box-shadow: 0 2px 0 rgba(23, 33, 43, 0.25); }
.notices h3 { font-size: 1.5rem; line-height: 1.15; margin: 0 0 0.5rem; }
.notices p { font-size: 1.0625rem; }
.notices .where { margin-top: 1rem; font-weight: 700; }

footer { margin-top: 4rem; padding-top: 1.25rem; border-top: 1px solid var(--edge); color: var(--muted); font-size: 1rem; }
footer a { color: var(--muted); }
address { font-style: normal; margin: 1rem 0; }
.updated { color: var(--muted); font-size: 1rem; }

@media (max-width: 30rem) {
  .wrap { padding: 1.5rem 1.25rem 2.5rem; }
  h1 { margin-top: 2.5rem; }
}
