/* Public Assembly — the zine look, ported from the Shopify theme
   (shopify-pbassembly/themes/zine). Warm newsprint paper, near-black ink,
   brick-red accent. Display type is uppercase, bold, set tight; mono type is
   small, uppercase, set loose. Raised surfaces get a hard offset shadow (no
   blur) that grows and turns brick on hover. The asterisk motif is ✱, always
   in mono. */

:root {
  --paper: #ece7da;      /* warm newsprint — page background */
  --paper-2: #e3ddcc;    /* shaded panels, out-of-month calendar cells */
  --white: #f4f1e8;      /* warm white — cards, calendar cells, inputs */
  --concrete: #b9b4a8;   /* image placeholder grey */
  --ink: #16140f;        /* warm near-black — text, borders, dark bands */
  --brick: #9e3b2f;      /* brick red accent */
  --brick-2: #7f2c22;
  --olive: #5f6138;
  --wood: #c79a5e;       /* tan — replaces brick on dark bands for contrast */
  --muted: #6c665a;
  --rule: #cfc8b6;       /* hairlines inside the calendar grid */
  --max-width: 1180px;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Roboto Mono",
          Menlo, Consolas, "Liberation Mono", monospace;
  /* Arial Narrow where it exists (Mac/Windows); Oswald downloads elsewhere. */
  --display: "Arial Narrow", "Oswald", "Helvetica Neue Condensed",
             "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  /* two-layer speckle so the page reads as newsprint */
  background-image:
    radial-gradient(rgba(22,20,15,0.05) 0.5px, transparent 0.6px),
    radial-gradient(rgba(22,20,15,0.035) 0.5px, transparent 0.6px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px 26px 64px;
}

a { color: var(--ink); }
a:hover { color: var(--brick); }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(34px, 6vw, 64px); line-height: 0.9; margin: 0 0 22px; }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 16px; }

/* red asterisk before section headings — always the mono glyph */
.starred::before {
  content: "\2731"; /* ✱ */
  font-family: var(--mono);
  font-size: 0.6em;
  color: var(--brick);
  margin-right: 14px;
  vertical-align: 0.25em;
}

.c-label, .section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 40px 0 14px;
}

.kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brick);
  margin: 0 0 10px;
}

.fineprint { color: var(--muted); font-size: 12px; }
.optional { color: var(--muted); font-weight: 400; }
.empty { color: var(--muted); }

/* ---- header ---- */

.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}

.site-header .nav-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 26px 14px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.brand-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.brand-mark .star { color: var(--brick); font-family: var(--mono); }
.brand:hover .brand-mark { color: var(--brick); }
.brand-sub {
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 3px;
}
.site-header nav a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--brick); }
.site-header nav a.active { border-bottom-color: var(--brick); color: var(--brick); }
.admin-link { color: var(--brick) !important; }

/* boxed nav CTA — the Discord-button treatment */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: var(--brick);
  color: var(--white) !important;
  border: 2px solid var(--ink) !important;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.portal-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--brick);
  border: 2px solid var(--ink);
  padding: 3px 10px;
  align-self: center;
}

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

.site-footer {
  background: var(--ink);
  color: #cfc7b4;
  padding: 40px 26px 28px;
}
.site-footer .footer-inner { max-width: var(--max-width); margin: 0 auto; }
.site-footer .footer-banner {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 64px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 24px;
}
.footer-banner .star { color: var(--wood); font-family: var(--mono); }
.site-footer p { margin: 4px 0; font-size: 12px; }
.site-footer a { color: #cfc7b4; }
.site-footer a:hover { color: var(--wood); }
.footer-record {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #3a352b;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #948d7d;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.flash {
  padding: 10px 14px;
  border: 2px solid var(--ink);
  margin: 0 0 22px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
}
.flash-error { border-color: var(--brick); color: var(--brick); box-shadow: 3px 3px 0 var(--brick); }
.flash-info { color: var(--olive); }

/* ---- hero ---- */

.hero { padding: 40px 0 24px; }
.hero h1 {
  font-size: clamp(56px, 11vw, 130px);
  line-height: 0.86;
  letter-spacing: -0.005em;
  margin: 0 0 18px;
}
.hero h1 .accent { color: var(--brick); }
.hero-sub { max-width: 40rem; color: var(--muted); margin: 0 0 26px; }

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

.notice-card {
  margin-top: 30px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 24px 26px;
}
.notice-card h2 { margin: 0 0 8px; }
.notice-card p { margin: 0; color: var(--muted); }

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

form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 16px;
}

input[type="text"], input[type="email"], input[type="password"],
input[type="datetime-local"], select, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: normal;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brick); outline-offset: 0; }
textarea { resize: vertical; }
input[type="file"] { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; }

button {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}
button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--brick); }

/* primary — ink fill, brick shadow */
.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--brick);
  transition: transform 0.1s, box-shadow 0.1s;
}
.button-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--brick);
  color: var(--paper);
}

.link-button {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  background: none;
  box-shadow: none;
  padding: 0;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.link-button:hover { color: var(--brick); background: none; transform: none; box-shadow: none; }

.inline-form { display: inline; }

/* ---- auth card ---- */

.auth-card {
  max-width: 27rem;
  margin: 36px auto 0;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 30px;
}
.auth-card h1 { font-size: clamp(28px, 4vw, 44px); }
.auth-alt { color: var(--muted); font-size: 12px; margin-top: 20px; }

.settings-form { max-width: 27rem; }

/* ---- tabs (account + staff sub-navigation) ---- */

.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 2px solid var(--ink);
  margin: 0 0 26px;
  flex-wrap: wrap;
}
.tabs a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 0 2px 6px;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--brick); }
.tabs a.active { color: var(--brick); border-bottom-color: var(--brick); }

/* ---- detail list (account overview) ---- */

.detail-list {
  margin: 0;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 6px 22px;
  max-width: 34rem;
}
.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.detail-list div:last-child { border-bottom: none; }
.detail-list dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  align-self: center;
}
.detail-list dd { margin: 0; font-weight: 700; }

/* ---- staff portal ---- */

.stat-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 26px; }
.stat-card {
  display: flex;
  flex-direction: column;
  min-width: 150px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 14px 18px;
}
.stat-number {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
}
.stat-label {
  color: var(--muted);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 4px;
}

.roster {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 2px solid var(--ink);
  font-size: 13px;
}
.roster th, .roster td {
  text-align: left;
  padding: 9px 13px;
  border-bottom: 1px solid var(--rule);
}
.roster th {
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.roster tr:last-child td { border-bottom: none; }
.roster tbody tr:hover { background: var(--paper-2); }

.role-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border: 1.5px solid var(--ink);
  background: var(--white);
  color: var(--muted);
}
.role-staff { background: var(--brick); color: var(--white); }

/* ---- events: admin ---- */

.admin-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 12px 16px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.status-row .status-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.status-row a { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }

.status-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border: 1.5px solid var(--ink);
  background: var(--white);
  color: var(--muted);
}
.status-published { background: var(--olive); color: var(--white); }
.status-cancelled { background: var(--brick); color: var(--white); }

.event-form { max-width: 34rem; }
.cover-preview {
  width: 160px;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-color: var(--concrete);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  margin: 4px 0 16px;
}

/* ---- checklists + templates ---- */

.checklist {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  max-width: 40rem;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 13px;
  background: var(--white);
  border: 2px solid var(--ink);
  margin-bottom: 8px;
  box-shadow: 2px 2px 0 var(--ink);
}
.checklist-done { opacity: 0.55; }
.checklist-done .checklist-title { text-decoration: line-through; }
.checklist-title { font-weight: 700; }
.checklist-title a { text-decoration: none; }
.checklist-title a:hover { color: var(--brick); }
.checklist-due {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-left: auto;
}
.checklist-overdue { color: var(--brick); font-weight: 700; }
.check-toggle {
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  box-shadow: none;
}
.check-toggle:hover { transform: none; box-shadow: none; background: var(--paper-2); }

.checklist-add {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 40rem;
}
.checklist-add label { flex: 1; min-width: 160px; margin: 0; }
.checklist-add button { margin-bottom: 1px; }

.template-card {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.template-inactive { opacity: 0.6; box-shadow: none; }
.template-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.template-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  text-decoration: none;
}
.template-name:hover { color: var(--brick); }
.template-actions {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.generate-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.generate-label { margin: 0 !important; }
.generate-label input, .generate-label select { width: auto; }

/* ---- events: public detail page ---- */

.event-page { max-width: 44rem; padding-top: 14px; }
.event-page .kicker a { color: var(--brick); text-decoration: none; }
.event-page .kicker a:hover { text-decoration: underline; }
.event-when {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brick);
  margin: 0 0 22px;
}
.event-cover {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--concrete);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  margin: 0 0 26px;
}
.event-desc { white-space: pre-line; margin: 0 0 26px; }
.event-attend {
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.attend-note {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 14px;
}
.attend-state {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olive);
  margin: 0 0 14px;
}

.event-going { margin-top: 26px; }
.attendee-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.attendee-list li {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--white);
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 4px 10px;
}
.attendee-list li a { text-decoration: none; }
.attendee-list li a:hover { color: var(--brick); }
.attendee-private { color: var(--muted); border-style: dashed !important; box-shadow: none !important; }

/* ---- my events / player page ---- */

.my-events {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 34rem;
}
.my-events li {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--white);
  border: 2px solid var(--ink);
  margin-bottom: 10px;
  box-shadow: 3px 3px 0 var(--ink);
}
.my-events li a { font-weight: 700; text-decoration: none; }
.my-events li a:hover { color: var(--brick); }
.my-events-when {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brick);
  margin-left: auto;
}

.check-label {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 13px !important;
}
.check-label input { margin-top: 3px; accent-color: var(--brick); }

/* ---- month calendar (the events grid) ---- */

.month-block { margin-bottom: 46px; }

.month-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.month-title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 0.9;
  margin: 0;
}
.month-title .month-yr { color: var(--brick); }
.month-note {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.month-scroll { overflow-x: auto; border: 3px solid var(--ink); }
.mcal { min-width: 880px; }
.mcal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--ink);
  color: var(--paper);
}
.mcal-dow span {
  padding: 8px 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.mcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.mcal-cell {
  min-height: 128px;
  padding: 7px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mcal-cell-blank { background: var(--paper-2); min-height: 0; }
.mcal-daynum {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  align-self: flex-start;
}
.mcal-cell-today .mcal-daynum {
  color: var(--paper);
  background: var(--brick);
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
}
.mcal-cell-past { background: var(--paper-2); }
.mcal-cell-past .mcal-daynum { opacity: 0.55; }

/* event tile inside a calendar cell */
.mev {
  display: block;
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
}
.mev:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--brick); color: inherit; }
.mev-cover {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  background-color: var(--concrete);
  border-bottom: 1.5px solid var(--ink);
}
.mev-t {
  padding: 4px 6px 6px;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.02;
}
.mev-time {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--brick);
  margin-top: 2px;
}
.mev-past { filter: grayscale(1); opacity: 0.45; }
.mev-past:hover { opacity: 0.75; transform: none; box-shadow: 2px 2px 0 var(--ink); }
.mev-past .mev-time { color: var(--muted); }

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

@media (max-width: 760px) {
  .site-header .nav-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-header nav { padding-bottom: 0; }
}
