/* Wellbriety Nation, crawlable pages (/meetings/, region and city pages, /what-is-wellbriety/, 404).
   A subset of the homepage styles. Same custom properties, same self hosted fonts.
   Rules kept from the audit: body text 16px or more, 44px tap targets, visible focus rings,
   and white text never sits on #ED1C24 (use --red-bg #C8102E for any red fill that carries text). */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/fonts/bricolage-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/atkinson-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/atkinson-latin-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The four directions, colours taken from the Wellbriety Movement drum circle */
:root {
  --east: #FFF200;
  --south: #ED1C24;
  --west: #0A0A0A;
  --north: #FFFFFF;

  --paper: #F6F4EF;
  --paper-2: #ECE8DF;
  --ink: #0A0A0A;
  --ink-2: #3A3A3A;
  --ink-3: #5C5C5C;
  --red-text: #C8102E;
  --red-bg: #C8102E;
  --line: rgba(10,10,10,0.12);
  --line-strong: rgba(10,10,10,0.85);
  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255,255,255,0.74);
  --on-dark-line: rgba(255,255,255,0.16);
  --night: #0A0A0A;

  --font-display: 'Bricolage Grotesque', 'Arial Black', Arial, sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, footer :focus-visible, .help :focus-visible { outline-color: var(--east); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--east); color: var(--ink); padding: 0.7rem 1rem; font-weight: 700; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }

/* The four colour band, used as a signature line */
.band4 { display: grid; grid-template-columns: repeat(4, 1fr); height: 8px; }
.band4 i:nth-child(1) { background: var(--east); }
.band4 i:nth-child(2) { background: var(--south); }
.band4 i:nth-child(3) { background: var(--west); }
.band4 i:nth-child(4) { background: var(--north); }
.on-dark .band4 i:nth-child(3), .band4.dark i:nth-child(3) { background: #2A2A2A; }

/* NAV */
nav[aria-label="Main"] {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.nav-logo img { width: 42px; height: 42px; }
.nav-logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1; }
.nav-links { display: flex; gap: clamp(0.4rem, 1.6vw, 1.4rem); align-items: center; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 0.97rem;
  white-space: nowrap; padding: 0.55rem 0.35rem; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-links a:hover { color: var(--ink); text-decoration: underline; }
.nav-links .nav-cta {
  background: var(--east); color: var(--ink); border: 2px solid var(--ink);
  padding: 0.5rem 1.1rem; border-radius: 999px; text-decoration: none; margin-left: 0.3rem;
}
.nav-links .nav-cta:hover { background: var(--ink); color: var(--east); text-decoration: none; }
.nav-links .nav-help { color: var(--red-text, #C8102E); }
.nav-links .nav-help:hover { color: var(--ink); }
@media (max-width: 980px) { .nav-more { display: none !important; } }
@media (max-width: 560px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links a.nav-help { display: inline-flex; padding-left: 0.3rem; padding-right: 0.3rem; }
  .nav-logo-text { font-size: 1.08rem; }
  .nav-logo img { width: 36px; height: 36px; }
}
@media (max-width: 380px) {
  .nav-logo-text { font-size: 0.95rem; }
  .nav-logo img { width: 30px; height: 30px; }
  .nav-links .nav-cta { padding: 0.45rem 0.75rem; margin-left: 0; }
}
@media (max-width: 340px) { .nav-links a.nav-help { display: none; } }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 52px; padding: 0.85rem 1.6rem; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--east); color: var(--ink); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--east); }
.on-dark .btn-primary { border-color: var(--east); }
.on-dark .btn-primary:hover { background: var(--north); color: var(--ink); border-color: var(--north); }
.btn-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--on-dark); }
.btn-light { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,0.55); }
.btn-light:hover { border-color: var(--on-dark); background: rgba(255,255,255,0.08); color: var(--on-dark); }
.action-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.4rem 0; }

/* PAGE HEAD (dark band with breadcrumbs, h1 and the freshness line) */
.page-head {
  position: relative; background: var(--night); color: var(--on-dark);
  padding: calc(var(--nav-h) + clamp(1.6rem, 4vw, 2.6rem)) 0 clamp(2.4rem, 5vw, 3.6rem);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 360px at 88% 30%, rgba(255,242,0,0.10), transparent 62%);
}
.page-head .wrap { position: relative; }
.page-head .band4 { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 0.98; letter-spacing: -0.04em; margin: 0.4rem 0 1.1rem; max-width: 20ch; }
.page-head a { color: var(--on-dark); }
.page-head a:hover { color: var(--east); }
.page-head a.btn-primary { color: var(--ink); }
.page-head a.btn-primary:hover { color: var(--ink); }
.page-head a.btn-light { color: var(--on-dark); }
.page-head a.btn-light:hover { color: var(--on-dark); }
.page-lead { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--on-dark-2); max-width: 60ch; margin-bottom: 1.2rem; }
.page-lead a { color: var(--east); font-weight: 700; }
.page-facts { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; font-size: 1rem; color: var(--on-dark-2); margin-bottom: 1.4rem; }
.page-facts li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--east); margin-right: 0.6rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* BREADCRUMBS */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; font-size: 0.97rem; }
.crumbs li { display: inline-flex; align-items: center; color: var(--on-dark-2); }
.crumbs li + li::before { content: "\203A"; margin: 0 0.55rem; color: var(--on-dark-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { font-weight: 700; color: var(--on-dark); }

/* SECTIONS */
.sec { padding: clamp(2.4rem, 6vw, 4rem) 0; }
.sec-alt { background: var(--north); }
.sec h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 1.1rem; }
.sec h2 .count { display: inline-block; vertical-align: middle; margin-left: 0.5rem; font-family: var(--font-body); font-size: 0.95rem; font-weight: 700; letter-spacing: 0; background: var(--east); color: var(--ink); padding: 0.1rem 0.6rem; border-radius: 999px; }
.region-name .count { margin-left: 0.4rem; font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; letter-spacing: 0; background: var(--east); color: var(--ink); padding: 0.05rem 0.55rem; border-radius: 999px; }
.h-small { font-size: 1.25rem !important; }
.sec-note { color: var(--ink-2); max-width: 64ch; margin-bottom: 1.2rem; }
.prose > * { max-width: 760px; }
.prose p { margin-bottom: 1rem; color: var(--ink-2); }
.prose h3 { font-size: 1.35rem; margin: 1.6rem 0 0.5rem; }
.city-more { margin: 0 0 1.1rem; font-weight: 700; }
.city-more a { display: inline-flex; align-items: center; min-height: 44px; }

/* PLACE LISTS (hubs and country pages) */
.place-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
@media (max-width: 760px) { .place-list { grid-template-columns: 1fr; } }
.place-list-tight { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
@media (max-width: 980px) { .place-list-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .place-list-tight { grid-template-columns: 1fr; } }
.place-row { background: var(--north); border: 1px solid var(--line); border-left: 6px solid var(--east); border-radius: var(--radius-sm); }
.sec-alt .place-row { background: var(--paper); }
.place-link { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.2rem 1rem; min-height: 44px; padding: 0.8rem 1.1rem; text-decoration: none; }
.place-link:hover { background: rgba(255,242,0,0.25); color: var(--ink); }
.place-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.015em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.place-count { font-size: 0.95rem; color: var(--ink-3); font-weight: 700; }
.place-towns { padding: 0 1.1rem 0.9rem; font-size: 0.97rem; color: var(--ink-2); }

/* JUMP LIST */
.jump { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1rem; border: 2px solid var(--line-strong); border-radius: 999px; background: var(--north); font-weight: 700; font-size: 0.97rem; text-decoration: none; }
.jump a:hover { background: var(--ink); color: var(--east); }
.sec-jump { padding-bottom: 0; }
.city-block { padding: clamp(1.6rem, 4vw, 2.6rem) 0; }

/* CIRCLE CARDS */
.circle {
  background: var(--north); border: 1px solid var(--line); border-left: 6px solid var(--east);
  border-radius: var(--radius-sm); padding: 1.2rem 1.3rem 1.1rem; margin: 0 0 1rem; max-width: 860px;
}
.sec-alt .circle { background: var(--paper); }
.circle-name { font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 0.6rem; }
.circle-tag { display: inline-block; font-size: 0.85rem; font-weight: 700; background: var(--ink); color: var(--north); padding: 0.1rem 0.7rem; border-radius: 999px; margin-bottom: 0.6rem; }
.circle-facts { display: grid; gap: 0.45rem; margin-bottom: 0.7rem; }
.circle-facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.2rem 1rem; }
@media (max-width: 560px) { .circle-facts > div { grid-template-columns: 1fr; gap: 0; } }
.circle-facts dt { font-weight: 700; font-size: 0.95rem; color: var(--ink-3); }
.circle-facts dd { overflow-wrap: anywhere; }
.circle-src { font-size: 0.95rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 0.6rem; }
.circle-src a { color: var(--ink-2); }
.region-block { margin-top: 2rem; }
.region-name { font-size: 1.5rem; margin-bottom: 0.8rem; }
.region-block .circle-name { font-size: 1.2rem; }

/* HYBRID LIST */
.hybrid-list { list-style: none; max-width: 760px; }
.hybrid-list li { border-top: 1px solid var(--line); padding: 0.2rem 0; }
.hybrid-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; margin-right: 0.6rem; }
.hybrid-where { color: var(--ink-3); font-size: 0.97rem; }

/* WHAT IS WELLBRIETY */
.laws-list { list-style: none; counter-reset: law; display: grid; gap: 0.9rem; margin: 1rem 0 0; }
.laws-list li { counter-increment: law; position: relative; background: var(--north); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem 1rem 4rem; color: var(--ink-2); }
.laws-list li::before { content: counter(law); position: absolute; left: 1rem; top: 0.7rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: var(--east); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; display: grid; place-items: center; }
.laws-list strong { color: var(--ink); display: block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; }

/* ABOUT + HELP */
.sec-about { background: var(--paper-2); }
.sec-help { padding-top: clamp(1.6rem, 4vw, 2.4rem); }
.help { background: var(--night); color: var(--on-dark); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); max-width: 760px; }
.help h2 { font-size: 1.6rem; margin-bottom: 0.3rem; color: var(--on-dark); }
.help > p { color: var(--on-dark-2); margin-bottom: 1.2rem; }
.help-card { border-top: 1px solid var(--on-dark-line); padding: 1.1rem 0; }
.help-card:last-child { padding-bottom: 0; }
.help-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: 0; color: var(--on-dark-2); }
.help-card p { font-size: 1rem; color: var(--on-dark-2); }
.help-card p a { color: var(--on-dark); font-weight: 700; }
.help-card .line { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; color: var(--east); display: inline-flex; align-items: center; min-height: 44px; margin: 0.15rem 0 0.25rem; text-decoration: none; }
.help-card a.line:hover { text-decoration: underline; color: var(--east); }

/* FOOTER */
footer { background: var(--night); color: var(--on-dark-2); font-size: 0.95rem; }
.foot-in { padding: 3rem 0 2.6rem; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; }
.foot-logo { display: flex; align-items: center; gap: 0.75rem; color: var(--on-dark); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.foot-logo img { width: 48px; height: 48px; }
.foot-nav { display: flex; gap: 0.4rem 1.2rem; flex-wrap: wrap; }
footer a { color: var(--on-dark); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--east); text-decoration: underline; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-base { border-top: 1px solid var(--on-dark-line); padding: 1.3rem 0 1.6rem; font-size: 0.9rem; }
.foot-credit { display: block; margin-top: 0.6rem; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
