/* Kidbrooke Community. One family (Archivo); the street name plate is the one loud thing, everything else stays quiet. */
/* Archivo (SIL Open Font License), Latin subset, served from this site so no visitor's address goes to a font host */
@font-face { font-family: Archivo; font-style: normal; font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; src: url(../fonts/archivo.woff2) format("woff2"); }
:root {
  --pavement: #e4e6e3;  /* page */
  --plate: #ffffff;     /* street-sign white */
  --black: #000000;     /* sign black: plate frame, headings */
  --text: #262626;
  --muted: #565a56;
  --red: #c4262e;       /* the postcode on a London street plate */
  --ticket: #f2c230;    /* market-ticket yellow: the Ad label */
  --line: #c9ccc8;
  /* Type: one family (Archivo), one scale. Weights: 400 text, 600 labels and nav, 700 headings, names and buttons.
     Widths: 100% for text, 112% for headings and dates; the street plate alone is 116%. Use these steps, never a raw size. */
  --fs-caption: 12px;               /* the Ad label */
  --fs-meta: 14px;                  /* addresses, the consent line, the footer */
  --fs-small: 15px;                 /* notes, event details, nav, messages */
  --fs-body: 17px;                  /* reading text; 16px on phones */
  --fs-large: 19px;                 /* ledes, business and guide names, small headings */
  --fs-title: 24px;                 /* headings inside a page */
  --fs-number: 28px;                /* the price */
  --fs-h2: clamp(26px, 4.2vw, 36px);
  --fs-h1: clamp(30px, 5vw, 46px);
  --fw-text: 400; --fw-ui: 600; --fw-strong: 700;
  --fw-display: 112%;
}
* { box-sizing: border-box; }
button, input, select, textarea { font: inherit; }  /* form controls use the site's font, not the browser's */
b, strong { font-weight: var(--fw-strong); }
small { font-size: var(--fs-meta); }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pavement); color: var(--text); font: var(--fw-text) var(--fs-body)/1.55 Archivo, Arial, Helvetica, sans-serif; font-stretch: 100%; }
a { color: var(--black); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { color: var(--black); margin: 0; line-height: 1.15; }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-strong); font-stretch: var(--fw-display); letter-spacing: -.005em; }
h3 { font-size: var(--fs-large); font-weight: var(--fw-strong); font-stretch: var(--fw-display); }
p { margin: 0; }

/* the street name plate */
.plate { display: inline-flex; align-items: baseline; gap: .45em; background: var(--plate); color: var(--black); text-decoration: none;
  text-transform: uppercase; font-weight: var(--fw-strong); font-stretch: 116%; letter-spacing: .02em; line-height: 1; white-space: nowrap;
  padding: .42em .62em .36em; border-radius: .2em; box-shadow: inset 0 0 0 .16em var(--plate), inset 0 0 0 .26em var(--black); font-size: min(20px, calc((100vw - 32px) / 19.8)); }  /* never wider than a phone */
.plate-code { color: var(--red); }
.plate.big { font-size: min(50px, calc((100vw - 32px) / 19.8)); }  /* the plate is about 19.5em wide: fit it inside the gutters */

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: var(--fw-ui); font-size: var(--fs-small); }
.top nav a { text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; }

.intro { padding-top: 28px; padding-bottom: 56px; }
.intro h1 { font-size: var(--fs-h1); font-weight: var(--fw-strong); font-stretch: var(--fw-display); max-width: 21em; margin-top: 28px; letter-spacing: -.01em; }
.intro .lede { max-width: 36em; margin-top: 14px; font-size: var(--fs-large); }

/* sign-up */
.signup { margin-top: 26px; max-width: 560px; }
.signup .row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input[type=email] { flex: 1 1 240px; min-width: 0; font: inherit; padding: 12px 14px; border: 2px solid var(--black); border-radius: 4px; background: var(--plate); color: var(--black); }
.btn { display: inline-block; font: inherit; font-weight: var(--fw-strong); padding: 12px 20px; border: 2px solid var(--black); border-radius: 4px; background: var(--black); color: var(--plate); cursor: pointer; text-decoration: none; }
.btn:hover { background: #262626; }
.btn:disabled { opacity: .6; cursor: default; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: var(--fs-meta); color: var(--muted); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--black); flex: none; }
.hp { position: absolute; left: -9999px; }
.signup-msg { min-height: 1.5em; margin-top: 8px; font-weight: var(--fw-ui); font-size: var(--fs-small); }
.signup-msg.err { color: var(--red); }

/* sections */
.block { padding: 48px 0 56px; border-top: 2px solid var(--black); }
.block > .wrap > .note { color: var(--muted); font-size: var(--fs-small); margin-top: 8px; max-width: 44em; }

/* directory */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 40px 48px; margin-top: 32px; }
.cat h3 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.biz { list-style: none; margin: 0; padding: 0; }
.biz li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.biz .name { font-weight: var(--fw-strong); font-size: var(--fs-large); }
.biz .what { margin-top: 2px; }
.biz .addr { margin-top: 4px; font-size: var(--fs-meta); color: var(--muted); }
.ad { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 7px; background: var(--ticket); color: var(--black); font-size: var(--fs-caption); font-weight: var(--fw-strong); border-radius: 2px; }

/* what's on */
.ev-group { margin-top: 32px; }
.ev { list-style: none; margin: 12px 0 0; padding: 0; max-width: 760px; }
.ev li { display: grid; grid-template-columns: 6.2em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ev time { font-weight: var(--fw-strong); font-stretch: var(--fw-display); color: var(--black); }
.ev .t { font-weight: var(--fw-ui); }
.ev .m { font-size: var(--fs-small); color: var(--muted); }

/* for businesses band */
.pitch { background: var(--plate); padding: 48px 0 56px; border-top: 2px solid var(--black); }
.pitch p { max-width: 36em; margin-top: 12px; font-size: var(--fs-large); }
.pitch .btn { margin-top: 22px; }

/* the For businesses and privacy pages */
.page { padding-top: 36px; padding-bottom: 64px; max-width: 760px; }
.page h1 { font-size: var(--fs-h1); font-weight: var(--fw-strong); font-stretch: var(--fw-display); letter-spacing: -.01em; }
.page h2 { font-size: var(--fs-title); margin-top: 40px; }
.page p, .page ul { margin-top: 12px; }
.page ul { padding-left: 1.2em; }
.page li { margin-top: 6px; }
.page .lede { font-size: var(--fs-large); margin-top: 16px; }
.price { display: inline-block; margin-top: 18px; padding: 14px 18px; background: var(--plate); border-radius: 4px; box-shadow: inset 0 0 0 2px var(--black); }
.price b { font-size: var(--fs-number); font-stretch: var(--fw-display); color: var(--black); }

.foot { padding: 32px 16px 48px; font-size: var(--fs-meta); color: var(--muted); border-top: 2px solid var(--black); max-width: none; }
.foot .in { max-width: 1040px; margin: 0 auto; }
.foot p { margin-top: 8px; max-width: 60em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: var(--fw-ui); }

@media (max-width: 520px) {
  body { --fs-body: 16px; font-size: var(--fs-body); }
  .ev li { grid-template-columns: 1fr; gap: 2px; }
  .signup .btn { width: 100%; }
}

/* past emails */
.page .note { color: var(--muted); font-size: var(--fs-small); }
.page .more { margin-top: 28px; }
.page h3 { margin-top: 24px; }
.guides { list-style: none; margin: 24px 0 0; padding: 0; max-width: 760px; }
.guides li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.guides .t { font-weight: var(--fw-strong); font-size: var(--fs-large); }
.guides .m { margin-top: 2px; color: var(--muted); font-size: var(--fs-small); }
.join { margin-top: 48px; padding: 24px 20px; background: var(--plate); border-radius: 4px; box-shadow: inset 0 0 0 2px var(--black); }
.page .join h2 { margin-top: 0; }
.join .signup { margin-top: 16px; }
