/* =========================================================================
   Burning Sensation — hot sauce label meets playa dust.
   Palette is drawn straight off the logo: soot black, ember orange, cream.
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Rye&family=Cinzel:wght@500;700;900&family=Karla:ital,wght@0,400;0,600;0,800;1,400&display=swap");

:root {
  --ink: #130f0d;
  --ink-2: #1c1512;
  --ink-3: #261d18;
  --ink-4: #322620;

  --paper: #f5ecda;
  --paper-2: #e8dcc4;
  --paper-dim: rgba(245, 236, 218, 0.62);
  --paper-faint: rgba(245, 236, 218, 0.14);

  --ember: #f0821e;
  --flame: #ffc24b;
  --chili: #c42d18;
  --lime: #a8c63c;
  --ash: #8b7c6d;

  --display: "Rye", "Bookman Old Style", serif;
  --label: "Cinzel", "Times New Roman", serif;
  --body: "Karla", "Helvetica Neue", sans-serif;

  --rule: 1px solid rgba(245, 236, 218, 0.16);
  --shadow-hard: 5px 5px 0 rgba(19, 15, 13, 0.85);
  --radius: 3px;

  --page: min(1220px, 92vw);
}

/* ---------------------------------------------------------------- reset -- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(240, 130, 30, 0.22), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 8%, rgba(196, 45, 24, 0.18), transparent 65%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 45%, var(--ink) 100%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Film grain over everything — the playa is never clean. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.24;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.55'/></svg>");
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--flame);
  text-decoration-color: rgba(255, 194, 75, 0.35);
  text-underline-offset: 3px;
  transition: color 0.16s ease;
}

a:hover {
  color: var(--ember);
}

h1,
h2,
h3,
h4 {
  font-family: var(--label);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

/* -------------------------------------------------------------- masthead - */

.heatstrip {
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--chili) 0 14px,
    var(--ember) 14px 28px,
    var(--flame) 28px 42px
  );
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(19, 15, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: var(--rule);
}

.masthead__inner {
  width: var(--page);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--paper);
  flex: 0 0 auto;
}

/* The mark is solid black art, so it rides on a cream bottle-cap disc. */
.brand__badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 2px var(--ember);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand__badge {
  transform: rotate(-8deg) scale(1.06);
}

.brand__badge img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  object-position: center 30%;
}

.brand__text {
  font-family: var(--label);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.15;
}

.mainnav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  align-items: center;
}

.mainnav a {
  font-family: var(--label);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-decoration: none;
  padding: 0.5rem 0.65rem;
  position: relative;
  white-space: nowrap;
}

.mainnav a::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.28rem;
  height: 2px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.mainnav a:hover,
.mainnav a.is-active {
  color: var(--paper);
}

.mainnav a:hover::after,
.mainnav a.is-active::after {
  transform: scaleX(1);
}

.mainnav a.is-admin {
  color: var(--flame);
  border: 1px dashed rgba(255, 194, 75, 0.45);
  border-radius: var(--radius);
  margin-left: 0.4rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--paper-faint);
  color: var(--paper);
  font-family: var(--label);
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
}

/* ------------------------------------------------------------------ page - */

main {
  width: var(--page);
  margin-inline: auto;
  padding: 3rem 0 5rem;
}

.pagehead {
  margin-bottom: 2.6rem;
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ember);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(240, 130, 30, 0.6), transparent);
}

.pagehead h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  line-height: 0.98;
  color: var(--paper);
  text-shadow: 3px 3px 0 rgba(196, 45, 24, 0.55);
}

.pagehead .lede {
  font-size: 1.12rem;
  color: var(--paper-dim);
  max-width: 60ch;
}

/* ---------------------------------------------------------------- splash - */

/* The landing page is the logo and nothing else — give it the whole frame. */
/* Sized so the logo and the sign-in box share one screen without scrolling. */
.splash {
  display: grid;
  place-items: center;
  padding: 0.5rem 0 2rem;
}

.splash__art {
  position: relative;
  width: min(330px, 78vw);
}

.splash__art::before {
  content: "";
  position: absolute;
  inset: -10% -8%;
  background: radial-gradient(circle at 50% 45%, rgba(240, 130, 30, 0.35), transparent 62%);
  filter: blur(18px);
  animation: flicker 5.5s ease-in-out infinite;
}

.splash__art img {
  position: relative;
  display: block;
  width: 100%;
  border: 3px solid var(--ink);
  outline: 1px dashed rgba(19, 15, 13, 0.5);
  outline-offset: -10px;
  box-shadow: var(--shadow-hard);
  transform: rotate(-1.6deg);
  transition: transform 0.4s ease;
}

.splash__art:hover img {
  transform: rotate(0.6deg) scale(1.01);
}

/* Camper sign-in — the only other thing on the front page. */
.gate {
  width: min(440px, 100%);
  margin-top: 2.4rem;
  text-align: center;
}

.gate__label {
  display: block;
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.85rem;
}

.gate__row {
  display: flex;
  gap: 0.5rem;
}

.gate__row input {
  flex: 1;
  min-width: 0;
  font-family: var(--body);
  font-size: 0.98rem;
  color: var(--paper);
  background: var(--ink-3);
  border: 1px solid rgba(245, 236, 218, 0.18);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.gate__row input:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(240, 130, 30, 0.22);
}

.gate__hint {
  margin: 0.8rem 0 0;
  font-size: 0.86rem;
  color: var(--paper-dim);
}

.footauth {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footauth__who {
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  40% {
    opacity: 1;
    transform: scale(1.04);
  }
  70% {
    opacity: 0.85;
    transform: scale(0.99);
  }
}

/* ------------------------------------------------------------------ stat - */

/* Hairlines live on the tiles, not on the container, so a half-full last row
   doesn't leave a lit-up empty cell. */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 0 0 3rem;
}

.stat {
  background: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(245, 236, 218, 0.16);
  padding: 1.3rem 1.2rem;
}

.stat__value {
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--flame);
}

.stat__label {
  font-family: var(--label);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 0.5rem;
}

/* ----------------------------------------------------------------- cards - */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cream "bottle label" panel — the workhorse content block. */
.label-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-hard);
}

.label-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(19, 15, 13, 0.35);
  pointer-events: none;
}

.label-card h2,
.label-card h3 {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--chili);
}

.label-card a {
  color: var(--chili);
}

.label-card a:hover {
  color: var(--ember);
}

.label-card ul,
.label-card ol {
  padding-left: 1.15rem;
  margin: 0 0 1rem;
}

.label-card li {
  margin-bottom: 0.4rem;
}

/* Dark panel, for reference material that sits inside the night. */
.panel {
  background: var(--ink-2);
  border: var(--rule);
  border-left: 3px solid var(--ember);
  padding: 1.5rem 1.6rem;
}

.panel h2,
.panel h3 {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.98rem;
  color: var(--flame);
}

.panel--warn {
  border-left-color: var(--chili);
  background: linear-gradient(180deg, rgba(196, 45, 24, 0.12), transparent 60%), var(--ink-2);
}

.panel--warn h2,
.panel--warn h3 {
  color: #ff7a5c;
}

.panel--cool {
  border-left-color: var(--lime);
}

.panel--cool h2,
.panel--cool h3 {
  color: var(--lime);
}

/* Section heading with rules on both sides. */
.section {
  margin: 3.4rem 0 1.6rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin: 0;
  color: var(--paper);
}

.section::after {
  content: "";
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    rgba(240, 130, 30, 0.55) 0 8px,
    transparent 8px 16px
  );
}

/* --------------------------------------------------------------- buttons - */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--label);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.7rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ember);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--chili);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.16s ease;
}

.btn:hover {
  background: var(--flame);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--chili);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--chili);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper-faint);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(245, 236, 218, 0.08);
  color: var(--flame);
  box-shadow: none;
  transform: none;
  border-color: var(--ember);
}

.btn--danger {
  background: transparent;
  color: #ff8a70;
  border-color: rgba(196, 45, 24, 0.6);
  box-shadow: none;
}

.btn--danger:hover {
  background: var(--chili);
  color: var(--paper);
  box-shadow: none;
  transform: none;
}

.btn--sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  box-shadow: 3px 3px 0 var(--chili);
}

/* Size modifier must not resurrect the shadow on flat variants. */
.btn--ghost,
.btn--danger {
  box-shadow: none;
}

.btnrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

/* ---------------------------------------------------------------- tables - */

.tablewrap {
  overflow-x: auto;
  border: var(--rule);
  background: var(--ink-2);
}

table.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}

table.ledger thead th {
  position: sticky;
  top: 0;
  background: var(--ink-3);
  font-family: var(--label);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flame);
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-bottom: 2px solid rgba(240, 130, 30, 0.35);
  white-space: nowrap;
}

table.ledger tbody td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(245, 236, 218, 0.08);
  vertical-align: top;
}

table.ledger tbody tr:nth-child(even) {
  background: rgba(245, 236, 218, 0.025);
}

table.ledger tbody tr:hover {
  background: rgba(240, 130, 30, 0.09);
  box-shadow: inset 3px 0 0 var(--ember);
}

table.ledger td.num,
table.ledger th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rowname {
  font-weight: 800;
  color: var(--paper);
}

.rowsub {
  display: block;
  font-size: 0.78rem;
  color: var(--ash);
}

/* ---------------------------------------------------------------- badges - */

.badge {
  display: inline-block;
  font-family: var(--label);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
}

.badge--confirmed {
  color: var(--lime);
}
.badge--pending {
  color: var(--flame);
}
.badge--waitlist {
  color: var(--ash);
}
.badge--declined {
  color: #a05a4a;
}
.badge--paid {
  color: var(--lime);
}
.badge--committed {
  color: var(--flame);
}
.badge--planned {
  color: var(--ash);
}
.badge--hot {
  color: var(--ember);
}

/* Scoville-style heat meter, used as a rating/divider motif. */
.heat {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}

.heat span {
  width: 9px;
  height: 14px;
  background: rgba(245, 236, 218, 0.14);
  clip-path: polygon(50% 0, 100% 38%, 78% 100%, 22% 100%, 0 38%);
}

.heat span.on {
  background: linear-gradient(180deg, var(--flame), var(--chili));
}

/* ----------------------------------------------------------------- forms - */

.form {
  display: grid;
  gap: 1.1rem;
}

.form--grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label,
.fieldlabel {
  font-family: var(--label);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
}

.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 0.98rem;
  color: var(--paper);
  background: var(--ink-3);
  border: 1px solid rgba(245, 236, 218, 0.18);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  width: 100%;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(240, 130, 30, 0.22);
}

.field--check {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.field--check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ember);
}

.field--check label {
  letter-spacing: 0.12em;
  color: var(--paper-dim);
}

/* Forms sitting on a cream label card need ink-colored labels. */
.label-card .field label,
.label-card .fieldlabel,
.label-card .field .hint {
  color: #6f5f4d;
}

.label-card .field--check label {
  color: var(--ink);
}

.field .hint {
  font-size: 0.78rem;
  color: var(--ash);
  text-transform: none;
  letter-spacing: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Search bar for the inventory */
.searchbar {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.4rem;
}

.searchbar input[type="search"] {
  flex: 1 1 260px;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--paper);
  background: var(--ink-2);
  border: 1px solid rgba(245, 236, 218, 0.2);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
}

.searchbar input[type="search"]:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(240, 130, 30, 0.22);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--paper-faint);
  border-radius: 999px;
  color: var(--paper-dim);
  text-decoration: none;
  transition:
    border-color 0.16s ease,
    color 0.16s ease,
    background 0.16s ease;
}

.chip:hover {
  color: var(--paper);
  border-color: var(--ember);
}

.chip.is-active {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--ink);
}

.chip .count {
  font-family: var(--body);
  font-size: 0.72rem;
  opacity: 0.7;
}

/* ------------------------------------------------------------- inventory - */

.itemgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.2rem;
}

.item {
  background: var(--ink-2);
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.item:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 130, 30, 0.5);
}

.item__photo {
  aspect-ratio: 4 / 3;
  background: var(--ink-3);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: var(--rule);
}

.item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item__photo .glyph {
  font-size: 2.4rem;
  opacity: 0.45;
  filter: grayscale(0.3);
}

.item__body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.item__name {
  font-family: var(--label);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.item__meta {
  font-size: 0.78rem;
  color: var(--ash);
}

.item__desc {
  font-size: 0.86rem;
  color: var(--paper-dim);
}

.qty {
  font-family: var(--display);
  color: var(--flame);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------ brc map --- */

.mapframe {
  background: var(--ink-2);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
}

.brcmap {
  display: block;
  width: 100%;
  height: auto;
  max-width: 760px;
  margin-inline: auto;
  min-width: 300px;
}

.brcmap__radial line {
  stroke: rgba(245, 236, 218, 0.12);
  stroke-width: 1;
}

.brcmap__radial line.is-major {
  stroke: rgba(245, 236, 218, 0.2);
  stroke-width: 1.6;
}


.brcmap__plaza circle {
  fill: rgba(240, 130, 30, 0.14);
  stroke: var(--ember);
  stroke-width: 1.6;
}

.brcmap__ring path {
  fill: none;
  stroke: rgba(245, 236, 218, 0.22);
  stroke-width: 2;
}

/* The street our camp is on. */
.brcmap__ring path.is-camp {
  stroke: var(--ember);
  stroke-width: 3.5;
  opacity: 0.9;
}

.brcmap__ringlabel text,
.brcmap__hour text {
  font-family: var(--label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  fill: var(--ash);
  text-anchor: middle;
  dominant-baseline: middle;
}

/* Street names read outward off the 10:00 ends, as on the official plan. */
.brcmap__ringlabel text {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-anchor: start;
  fill: var(--paper-dim);
}

.brcmap__hour text {
  fill: rgba(245, 236, 218, 0.5);
}

.brcmap__landmark .man {
  fill: var(--flame);
}

.brcmap__landmark .centercamp {
  fill: rgba(245, 236, 218, 0.07);
  stroke: rgba(245, 236, 218, 0.45);
  stroke-width: 1.8;
  stroke-dasharray: 5 4;
}

.brcmap__landmark .landmarklabel {
  font-family: var(--label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  fill: var(--paper-dim);
  text-anchor: middle;
}

.brcmap__pin .pinring {
  fill: none;
  stroke: var(--flame);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: pinpulse 2.6s ease-in-out infinite;
}

.brcmap__pin .pindot {
  fill: var(--chili);
  stroke: var(--flame);
  stroke-width: 2;
}

.brcmap__pin .pinleader {
  stroke: var(--ember);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}

.brcmap__pin .pinsub {
  font-family: var(--label);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.1em;
  fill: var(--paper);
  text-anchor: middle;
}

.brcmap__pin .pinlabel {
  font-family: var(--display);
  font-size: 26px;
  fill: var(--ember);
  text-anchor: middle;
}

@keyframes pinpulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.28);
    opacity: 0.45;
  }
}

/* ----------------------------------------------------------------- flash - */

.flash {
  border: 2px solid;
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.8rem;
  font-weight: 600;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  animation: rise 0.4s ease both;
}

.flash--ok {
  border-color: var(--lime);
  background: rgba(168, 198, 60, 0.1);
  color: var(--lime);
}

.flash--err {
  border-color: var(--chili);
  background: rgba(196, 45, 24, 0.12);
  color: #ff8a70;
}

/* ----------------------------------------------------------------- admin - */

.adminbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.6rem 0.9rem;
  margin-bottom: 2.2rem;
  border: 1px solid rgba(240, 130, 30, 0.35);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    45deg,
    rgba(240, 130, 30, 0.07) 0 10px,
    transparent 10px 20px
  );
}

.adminbar a,
.adminbar button {
  font-family: var(--label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.adminbar a:hover,
.adminbar button:hover {
  color: var(--flame);
  background: rgba(245, 236, 218, 0.06);
}

.adminbar a.is-active {
  background: var(--ember);
  color: var(--ink);
}

.adminbar .spacer {
  flex: 1;
}

.moneyline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin-bottom: 2rem;
}

.moneyline > div {
  background: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(245, 236, 218, 0.16);
  padding: 1.1rem 1.2rem;
}

.moneyline .k {
  font-family: var(--label);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
}

.moneyline .v {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--paper);
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.moneyline .v.pos {
  color: var(--lime);
}
.moneyline .v.neg {
  color: #ff7a5c;
}

.bars {
  display: grid;
  gap: 0.6rem;
}

.bar {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.85rem;
}

.bar__label {
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.bar__track {
  height: 12px;
  background: rgba(245, 236, 218, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--chili), var(--ember), var(--flame));
}

.bar__value {
  font-variant-numeric: tabular-nums;
  color: var(--flame);
}

.login {
  max-width: 420px;
  margin: 4rem auto;
}

/* ---------------------------------------------------------------- footer - */

.sitefoot {
  border-top: var(--rule);
  background: rgba(19, 15, 13, 0.6);
  margin-top: 3rem;
}

.sitefoot__inner {
  width: var(--page);
  margin-inline: auto;
  padding: 2.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ash);
}

.sitefoot .motto {
  font-family: var(--display);
  color: var(--ember);
  font-size: 1rem;
}

/* -------------------------------------------------------------- niceties - */

.reveal {
  animation: rise 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.reveal:nth-child(1) {
  animation-delay: 0.02s;
}
.reveal:nth-child(2) {
  animation-delay: 0.08s;
}
.reveal:nth-child(3) {
  animation-delay: 0.14s;
}
.reveal:nth-child(4) {
  animation-delay: 0.2s;
}
.reveal:nth-child(5) {
  animation-delay: 0.26s;
}
.reveal:nth-child(6) {
  animation-delay: 0.32s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.todo {
  display: inline-block;
  font-family: var(--label);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--flame);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  margin-right: 0.4rem;
}

.muted {
  color: var(--ash);
}

/* Paths and URLs must not push the page sideways on a phone. */
code {
  font-size: 0.88em;
  overflow-wrap: anywhere;
  background: rgba(245, 236, 218, 0.08);
  padding: 0.05em 0.3em;
  border-radius: 2px;
}

.label-card code {
  background: rgba(19, 15, 13, 0.08);
}

.empty {
  padding: 2.5rem;
  text-align: center;
  color: var(--ash);
  border: 1px dashed rgba(245, 236, 218, 0.2);
  border-radius: var(--radius);
}

.stack > * + * {
  margin-top: 1.5rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.45rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  opacity: 0.55;
  border-radius: 2px;
}

.linklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.linklist li {
  border-bottom: 1px dashed rgba(19, 15, 13, 0.2);
  padding: 0.5rem 0;
}

.panel .linklist li {
  border-bottom-color: rgba(245, 236, 218, 0.12);
}

/* --------------------------------------------------------- responsive --- */

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .mainnav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.6rem;
  }

  .mainnav.is-open {
    display: flex;
  }

  .mainnav a {
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid rgba(245, 236, 218, 0.08);
  }

  .masthead__inner {
    flex-wrap: wrap;
  }

  .bar {
    grid-template-columns: 100px 1fr auto;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
  body::after,
  .masthead,
  .sitefoot,
  .btn,
  .adminbar {
    display: none !important;
  }
  .label-card,
  .panel {
    box-shadow: none;
    border: 1px solid #999;
    color: #000;
    background: #fff;
  }
  a {
    color: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.brcmap__ringlabel text.is-camp {
  fill: var(--ember);
  font-size: 13px;
  font-weight: 900;
}

.brcmap__landmark .promenade {
  stroke: rgba(245, 236, 218, 0.28);
  stroke-width: 1.5;
}

.brcmap__landmark .temple {
  fill: none;
  stroke: var(--paper-dim);
  stroke-width: 2;
}
