/* ==========================================================================
   NO KING BEE — Design System
   Derived from the May 2026 print flyers: ivory stock, faint honeycomb
   texture, metallic gold + ink black, letterspaced serif display type,
   hexagon cells, gold plaques, paired rules, black bands.
   Shared by every page on nokingbee.org.
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Paper */
  --ivory: #F8F3E5;
  --parchment: #F1EAD6;
  --cream-deep: #E9DFC5;

  /* Ink */
  --ink: #161514;
  --ink-soft: #2B2A26;
  --text: #34322D;
  --text-muted: #7D786C;

  /* Gold */
  --gold: #C9A227;
  --gold-deep: #997913;
  --gold-bright: #EFC94C;
  --gold-pale: #F1E2A6;
  --gold-metal: linear-gradient(165deg, #997913 0%, #D3AC2E 28%, #F7E28E 50%, #D3AC2E 72%, #937311 100%);
  --gold-metal-h: linear-gradient(100deg, #997913 0%, #D3AC2E 30%, #F7E28E 50%, #D3AC2E 70%, #937311 100%);

  /* Type */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Texture: faint gold honeycomb, seamless tile */
  --honeycomb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='90' viewBox='0 0 52 90'%3E%3Cg fill='none' stroke='%23C9A227' stroke-opacity='.09' stroke-width='1'%3E%3Cpolygon points='26,0 52,15 52,45 26,60 0,45 0,15'/%3E%3Cpolygon points='0,45 26,60 26,90 0,105 -26,90 -26,60'/%3E%3Cpolygon points='52,45 78,60 78,90 52,105 26,90 26,60'/%3E%3Cpolygon points='0,-45 26,-30 26,0 0,15 -26,0 -26,-30'/%3E%3Cpolygon points='52,-45 78,-30 78,0 52,15 26,0 26,-30'/%3E%3C/g%3E%3C/svg%3E");

  --nav-h: 64px;
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--ivory);
  line-height: 1.7;
  font-size: 1rem;
}
/* Paper texture: fixed layer so the honeycomb sits still like stock under ink */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: var(--honeycomb);
  pointer-events: none;
  z-index: -1;
}

::selection { background: var(--gold-pale); color: var(--ink); }

img { max-width: 100%; }

a { color: var(--gold-deep); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.kicker {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.12;
  color: var(--ink);
}

h1.display { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: 0.04em; }
h2.display { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3.display { font-size: 1.1rem; letter-spacing: 0.08em; }

.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  color: var(--ink-soft);
  line-height: 1.6;
}

.prose {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 46em;
}
.prose p + p { margin-top: 1.2rem; }

.fineprint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Closing motto, flyer-style */
.motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  color: var(--ink);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Rules — the paired ink/gold lines from the flyers
   -------------------------------------------------------------------------- */

.rule-duo {
  height: 9px;
  border-top: 2px solid var(--ink);
  border-bottom: 3px solid var(--gold);
}
.rule-duo--short { width: 140px; }
.rule-duo--center { margin-left: auto; margin-right: auto; }

.rule-hair { border: none; border-top: 1px solid var(--gold-pale); }

/* --------------------------------------------------------------------------
   Plaque — elongated-hex callout (the flyer's date/address badge)
   -------------------------------------------------------------------------- */

.plaque {
  display: inline-block;
  background: var(--gold-metal-h);
  clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 28px 100%, 0 50%);
  padding: 2.5px;
  filter: drop-shadow(0 1px 4px rgba(22, 21, 20, 0.18));
}
.plaque-inner {
  background: var(--ivory);
  clip-path: polygon(27px 0, calc(100% - 27px) 0, 100% 50%, calc(100% - 27px) 100%, 27px 100%, 0 50%);
  padding: 0.9rem 3.2rem;
  text-align: center;
}
.plaque-inner .plaque-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.plaque-inner .plaque-sub {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text);
  margin-top: 0.15rem;
}
.plaque--ink .plaque-inner { background: var(--ink); }
.plaque--ink .plaque-title { color: var(--gold-bright); }
.plaque--ink .plaque-sub { color: var(--ivory); }

/* --------------------------------------------------------------------------
   Hexagons (pointy-top, like the flyers)
   -------------------------------------------------------------------------- */

.hex {
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* Info cell for honeycomb mosaics */
.hex-cell {
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  width: 250px;
  aspect-ratio: 0.866;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.4rem 2rem;
  flex-shrink: 0;
}
.hex-cell--ink { background: var(--ink); color: var(--ivory); }
.hex-cell--ink h3 { color: var(--gold-bright); }
.hex-cell--gold { background: var(--gold-metal); color: var(--ink); }
.hex-cell--gold h3 { color: var(--ink); }
.hex-cell h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.hex-cell p { font-size: 0.85rem; line-height: 1.55; }
.hex-cell--ink p { color: rgba(248, 243, 229, 0.88); }

/* Honeycomb row: stagger alternating cells on wide screens */
.hive-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 1rem 0 3.4rem;
}
@media (min-width: 720px) {
  .hive-row .hex-cell:nth-child(even) { transform: translateY(38px); }
}

/* Gold-ringed hexagon frame (portraits, icons) */
.hex-frame {
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--gold-metal);
  padding: 4px;
  display: inline-block;
}
.hex-frame > img, .hex-frame > .hex-frame-body {
  display: block;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hex-frame--photo > img { filter: grayscale(1) contrast(1.06); }

/* Small numbered hex badge */
.hex-badge {
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  width: 46px;
  aspect-ratio: 0.866;
  background: var(--gold-metal);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hex-badge--ink { background: var(--ink); color: var(--gold-bright); }

/* Hex bullet list, flyer "what to bring" style */
.hex-list { list-style: none; }
.hex-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
}
.hex-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 11px;
  height: 12.7px;
  background: var(--gold-metal);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 1rem 2.5rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}
.btn-gold {
  background: var(--gold-metal);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(146, 115, 17, 0.55), 0 2px 10px rgba(153, 121, 19, 0.28);
}
.btn-gold:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(146, 115, 17, 0.55), 0 6px 18px rgba(153, 121, 19, 0.38);
}
.btn-line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 0 5px var(--ivory), inset 0 0 0 6px var(--gold-pale);
}
.btn-line:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--gold-deep), inset 0 0 0 5px var(--ivory), inset 0 0 0 6px var(--gold); }
.btn-line--dark {
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.btn-line--dark:hover { color: var(--ivory); box-shadow: inset 0 0 0 1.5px var(--gold-bright); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Bands — the flyer's black strips
   -------------------------------------------------------------------------- */

.band {
  background: var(--ink);
  color: var(--ivory);
}
.band .kicker { color: var(--gold-bright); }
.band .display { color: var(--gold-bright); }
.band .prose { color: rgba(248, 243, 229, 0.85); }

/* Bee + wordmark strip, bottom of every flyer */
.site-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}
.site-mark .bee { width: 22px; height: 22px; flex-shrink: 0; }
.site-mark .sep { width: 1px; height: 18px; background: rgba(239, 201, 76, 0.5); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

nav.nkb-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(22, 21, 20, 0.97);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  padding: 0.7rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--nav-h);
}
nav.nkb-nav .logo {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav-logo-img { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; }
nav.nkb-nav ul { list-style: none; display: flex; gap: 1.7rem; }
nav.nkb-nav ul a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s;
}
nav.nkb-nav ul a:hover { color: var(--gold-bright); }
.navtoggle { display: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 26px; height: 2px; background: var(--ivory); transition: all 0.3s; }

/* --------------------------------------------------------------------------
   Sections & layout
   -------------------------------------------------------------------------- */

section { padding: 5.5rem 2rem; }
.container { max-width: 1020px; margin: 0 auto; }
.container--narrow { max-width: 760px; }
.center { text-align: center; }

.section-parchment {
  background-color: var(--parchment);
  border-top: 1px solid var(--gold-pale);
  border-bottom: 1px solid var(--gold-pale);
}

.section-head { margin-bottom: 2.2rem; }
.section-head .rule-duo--short { margin-top: 1.3rem; }

/* --------------------------------------------------------------------------
   Cards (steps, values on dark)
   -------------------------------------------------------------------------- */

.step-card {
  background: var(--ivory);
  border: 1px solid var(--gold-pale);
  box-shadow: 0 1px 0 var(--gold-pale), 0 10px 26px rgba(22, 21, 20, 0.05);
  padding: 2.2rem 2rem;
}
.step-card .step-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.step-card p { font-size: 0.95rem; color: var(--text); line-height: 1.75; }

.value-card { padding: 1.6rem 0 1.6rem 1.8rem; border-left: 2px solid var(--gold-deep); }
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.55rem;
}
.value-card p { font-size: 0.95rem; color: rgba(248, 243, 229, 0.82); line-height: 1.75; }

/* --------------------------------------------------------------------------
   Forms (request help / join / chapters)
   -------------------------------------------------------------------------- */

.nkb-input, .nkb-select, .nkb-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: #FFFDF6;
  border: 1px solid var(--cream-deep);
  border-bottom: 2px solid var(--gold);
  padding: 0.8rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nkb-input:focus, .nkb-select:focus, .nkb-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}
.nkb-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer.nkb-footer {
  background: var(--ink);
  padding: 3.2rem 2rem 2.4rem;
  text-align: center;
}
footer.nkb-footer .footer-seal {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.8rem;
}
footer.nkb-footer .footer-logo {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 0.5rem;
}
footer.nkb-footer .footer-location {
  font-size: 0.85rem;
  color: rgba(248, 243, 229, 0.45);
  margin-bottom: 1.5rem;
}
footer.nkb-footer .footer-links a {
  color: rgba(248, 243, 229, 0.6);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0.9rem;
  transition: color 0.3s;
}
footer.nkb-footer .footer-links a:hover { color: var(--gold-bright); }
footer.nkb-footer .footer-rule {
  width: 180px;
  margin: 1.6rem auto;
  border: none;
  border-top: 1px solid rgba(201, 162, 39, 0.35);
}
footer.nkb-footer .copyright {
  font-size: 0.75rem;
  color: rgba(248, 243, 229, 0.3);
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .nav-burger { display: flex; }
  nav.nkb-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(22, 21, 20, 0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 2rem;
  }
  .navtoggle:checked ~ ul { max-height: 480px; padding: 0.5rem 2rem 1rem; }
  nav.nkb-nav ul li { padding: 0.6rem 0; border-top: 1px solid rgba(248, 243, 229, 0.08); }
  .navtoggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navtoggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .navtoggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  section { padding: 3.8rem 1.4rem; }
  .plaque-inner { padding: 0.8rem 2.4rem; }
  .hive-row { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, nav.nkb-nav ul, .nav-burger span { transition: none; }
}
