:root {
  --paper: #f7ffff;
  --ink: #14343f;
  --cyan: #02bee8;
  --slate: #2a708a;
  --muted: #4b6b7a;
  --rule: #e4f5f5;
  --wash: #eefafd;
  --tag-green: #89db8b;
  --tag-yellow: #ffc328;
  --tag-teal: #94e3d9;
  --tag-lilac: #e196f5;
  --serif: "Iowan Old Style", "Palatino", "Georgia", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: var(--slate);
}

/* ——— header ——— */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  background: #fff;
  border-bottom: 2px solid var(--ink);
  padding: 14px 36px;
}

.site-brand {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand-dot {
  color: var(--cyan);
}

.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
}

.site-nav a {
  color: var(--slate);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a.nav-active {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--cyan);
  padding-bottom: 2px;
}

.queue-pill {
  background: var(--tag-yellow);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 1px 8px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 99px;
  margin-left: 5px;
}

.whoami {
  font-size: 13px;
  color: var(--muted);
}

/* ——— page chrome ——— */

main.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 36px 56px;
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  main.page-content {
    padding: 20px 16px 40px;
  }
}

h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 10px;
}

.flash {
  max-width: 1200px;
  margin: 14px auto 0;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1.5px solid var(--ink);
  background: #fff;
}

.flash-notice {
  border-left: 6px solid var(--cyan);
}

.flash-alert {
  border-left: 6px solid var(--tag-yellow);
}

/* ——— day plates + listings ——— */

.day-header {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  padding: 5px 14px;
  margin: 26px 0 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}

.listing {
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--cyan);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
}

.listing-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.listing-time {
  font-weight: 700;
  font-size: 13px;
  color: var(--slate);
}

.listing-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.listing-title a {
  color: var(--ink);
  text-decoration: none;
}

.listing-title a:hover {
  color: var(--cyan);
}

.listing-venue {
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 2px;
}

.listing-venue a {
  color: var(--slate);
  text-decoration: none;
}

.listing-blurb {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 520px;
}

.listing-tags {
  margin-top: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  align-items: center;
}

.listing-tags .tag-chip {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-chip {
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.tag-c0 { background: var(--tag-green); }
.tag-c1 { background: var(--tag-yellow); }
.tag-c2 { background: var(--tag-teal); }
.tag-c3 { background: var(--tag-lilac); }

.listing-tags-all {
  flex-wrap: wrap;
  overflow: visible;
}

.tag-more {
  position: relative;
  border: 1.5px solid var(--ink);
  background: var(--wash);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  cursor: default;
  flex-shrink: 0;
}

.tag-more:hover .tag-tooltip,
.tag-more:focus .tag-tooltip,
.tag-more:focus-within .tag-tooltip {
  display: flex;
}

.tag-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  right: -8px;
  z-index: 20;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--cyan);
  padding: 8px;
  gap: 4px;
  flex-wrap: wrap;
  width: max-content;
  max-width: 240px;
}

.listing-actions {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
}

.detail-actions {
  margin-top: 14px;
}

.icon-button {
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  min-width: 30px;
  height: 28px;
  padding: 0 7px;
  cursor: pointer;
  line-height: 1;
}

.icon-button-starred {
  background: var(--tag-yellow);
}

.icon-button-on {
  background: var(--cyan);
  color: #fff;
}

.list-picker {
  position: relative;
  display: inline-block;
}

.list-picker summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.list-picker summary::-webkit-details-marker {
  display: none;
}

.list-picker[open] summary {
  background: var(--wash);
}

.list-picker-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--cyan);
  min-width: 220px;
  z-index: 10;
  padding: 5px;
}

.picker-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.picker-item:hover {
  background: var(--wash);
}

.picker-item-default {
  font-weight: 800;
}

.picker-item-on {
  color: var(--slate);
}

.list-picker-menu form {
  display: block;
}

/* ——— buttons ——— */

button,
input[type="submit"] {
  font-family: var(--sans);
}

.btn-quiet {
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  cursor: pointer;
  border-width: 1.5px;
  font-size: 12px;
  padding: 4px 12px;
}

button:not([class]),
input[type="submit"]:not([class]) {
  border: 1.5px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  background: var(--cyan);
  color: #fff;
  border: 2px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
  padding: 10px;
  cursor: pointer;
}

.icon-button:focus-visible,
.picker-item:focus-visible,
.btn-quiet:focus-visible,
.btn-primary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

/* ——— banners, blocks, empty states ——— */

.queue-banner {
  border: 2px dashed var(--slate);
  background: var(--wash);
  padding: 12px 18px;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.queue-banner a {
  font-weight: 700;
}

.detail-block {
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--cyan);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.detail-block h1 {
  margin-bottom: 8px;
}

.empty-state {
  border: 2px dashed var(--ink);
  padding: 22px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--muted);
}

/* ——— forms ——— */

.field {
  margin-bottom: 14px;
}

.field label,
.field legend {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--slate);
  margin-bottom: 5px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="date"],
.field input[type="time"],
.field select,
.field textarea {
  width: 100%;
  max-width: 480px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 9px 10px;
  font: inherit;
  font-size: 14px;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-inline label {
  margin-bottom: 0;
}

fieldset {
  border: 1.5px solid var(--rule);
  margin: 0 0 16px;
  padding: 14px 16px;
}

fieldset legend {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--slate);
  padding: 0 6px;
}

.form-errors {
  border: 2px solid var(--tag-yellow);
  background: #fffdf2;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 13.5px;
}

/* ——— tables (garden queue, admin) ——— */

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 2px solid var(--ink);
  font-size: 13.5px;
}

th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  border-bottom: 2px solid var(--ink);
  padding: 9px 12px;
}

td {
  border-bottom: 1px solid var(--rule);
  padding: 9px 12px;
  vertical-align: middle;
}

td form {
  display: inline-block;
  margin-right: 6px;
}

/* ——— my lists ——— */

.my-lists {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.my-list-row {
  background: #fff;
  border: 2px solid var(--ink);
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.my-list-row > a:first-child {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-right: 4px;
}

.list-badge {
  border: 1.5px solid var(--ink);
  background: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 8px;
}

.list-badge-public {
  background: var(--tag-teal);
}

.list-badge-shared {
  background: var(--tag-lilac);
}

.list-badge-default {
  background: var(--cyan);
  color: #fff;
}

.list-badge-group {
  background: var(--tag-green);
}

/* ——— front door ——— */

.front-door {
  max-width: 420px;
  margin: 0 auto;
  padding-top: 10px;
}

.front-tagline {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--muted);
  margin: 4px 0 2px;
}

.front-early {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  margin: 0 0 24px;
}

.front-door .site-brand {
  font-size: 26px;
}

.login-card,
.request-card {
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--cyan);
  padding: 26px 26px 22px;
  margin-bottom: 30px;
}

.card-heading {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 14px;
}

.card-copy {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 12px;
}

.card-note {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}
