:root {
  --ink: #f3f3f3;
  --muted: #cfcfcf;
  --bg: #0f0f10;
  --bg-soft: #1a1212;
  --border: #3a2020;
  --tomato-red: #c62828;
  --tomato-red-hover: #a31515;
  --leaf-green: #1b5e20;
  --leaf-green-soft: #2e7d32;
}

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

body {
  margin: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(198, 40, 40, 0.24), transparent 46%),
    linear-gradient(180deg, #120a0a 0%, #0a0a0b 50%, #140909 100%);
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

a.text-link {
  color: var(--leaf-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.text-link:hover,
a.text-link:focus-visible {
  color: var(--tomato-red);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 11, 0.95);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0;
}

.nav-spacer {
  width: 100%;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1rem;
  color: var(--ink);
  justify-self: center;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--tomato-red);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
}

.hero {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(to bottom, rgba(198, 40, 40, 0.15), transparent);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  width: min(480px, 92%);
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  background: #fff;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--leaf-green);
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin: 0.2rem 0 0.8rem;
  color: var(--ink);
}

.hero-content > p {
  color: var(--muted);
  max-width: 42rem;
}

.hero-note {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.98rem;
  color: var(--ink);
  border-left: 4px solid var(--leaf-green);
  background: rgba(27, 94, 32, 0.2);
  border-radius: 0 8px 8px 0;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.68rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--tomato-red);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--tomato-red-hover);
}

.btn-secondary {
  border-color: var(--leaf-green);
  color: var(--leaf-green);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(27, 94, 32, 0.25);
}

.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  background: rgba(12, 12, 13, 0.72);
}

.section h2 {
  color: var(--leaf-green);
  margin-top: 0;
}

.section-intro {
  margin-top: -0.35rem;
  color: var(--muted);
}

.alt {
  background: rgba(26, 18, 18, 0.85);
}

.grid-two {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.2rem;
}

.map-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.map-card .map-link {
  margin-top: 0.75rem;
  align-self: center;
}

.doordash-callout {
  margin-top: 1rem;
  max-width: 36rem;
}

.doordash-smart-button-root:empty {
  display: none;
}

.doordash-smart-button-root:not(:empty) {
  margin: 1rem auto 0;
  max-width: 1100px;
  padding: 0 4%;
}

.small {
  font-size: 0.92rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 800px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  background: var(--bg);
}

.card h3 {
  margin-top: 0;
  color: var(--tomato-red);
}

.card ul {
  margin: 0.3rem 0 0;
  padding-left: 1.2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 0.45rem 0.6rem 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
}

.inline-code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.inventory-meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.inventory-admin-tools {
  margin-top: 1rem;
}

.inventory-admin-tools[hidden] {
  display: none !important;
}

.gallery-supabase-panel {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.inventory-admin-tools-intro {
  margin-top: 0;
}

.admin-change-passcode {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.admin-change-passcode-title {
  margin: 0 0 0.35rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.1rem;
  color: var(--leaf-green);
}

.admin-change-passcode-form .btn-secondary {
  justify-self: start;
}

.inventory-upload-form {
  max-width: 680px;
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.inventory-upload-form input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  font: inherit;
  background: var(--bg-soft);
  color: var(--ink);
}

.inventory-upload-form input[type="file"] {
  padding: 0.5rem;
}

.inventory-upload-form .btn {
  justify-self: start;
}

.inventory-batch-stage {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.35rem 0 0;
}

.inventory-batch-stage[hidden] {
  display: none !important;
}

.inventory-batch-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.inventory-batch-row:last-child {
  border-bottom: none;
}

.inventory-batch-thumb-wrap {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.inventory-batch-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inventory-batch-fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.inventory-batch-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}

.inventory-summary-no-tags {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.inventory-placeholder {
  margin: 0;
  color: var(--muted);
}

.inventory-summary-wrap {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.inventory-summary-wrap h3 {
  margin: 0 0 0.6rem;
  color: var(--tomato-red);
}

.inventory-summary-root {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inventory-summary-month {
  margin: 0;
}

.inventory-month-heading {
  margin: 0 0 0.45rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--leaf-green);
}

.inventory-summary-list {
  margin: 0;
  padding-left: 1.15rem;
}

.inventory-summary-list li {
  margin: 0.2rem 0;
  color: var(--muted);
}

.inventory-gallery-month {
  margin-bottom: 1.5rem;
}

.inventory-gallery-month:last-child {
  margin-bottom: 0;
}

.inventory-gallery .gallery-grid,
.inventory-gallery-month .gallery-grid {
  margin-top: 0.25rem;
}

.inventory-gallery .inventory-caption {
  white-space: pre-wrap;
}

.inventory-gallery .inventory-tags-line {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink);
}

.inventory-remove-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.inventory-remove-btn:hover,
.inventory-remove-btn:focus-visible {
  border-color: var(--tomato-red);
  color: var(--tomato-red);
}

.contact-quick {
  max-width: 620px;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
}

.contact-quick p {
  margin: 0.35rem 0;
}

.contact-form {
  max-width: 620px;
  display: grid;
  gap: 0.55rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  font: inherit;
  background: var(--bg);
  color: var(--ink);
}

.form-note {
  min-height: 1.2rem;
  margin: 0.25rem 0 0;
  font-weight: 600;
  color: var(--leaf-green);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #000;
  color: #f5f5f5;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffabab;
}

.footer-wrap {
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-access {
  padding: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.admin-toggle,
.admin-logout {
  border: 1px solid #5b5b5b;
  background: transparent;
  color: #bcbcbc;
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.admin-toggle:hover,
.admin-toggle:focus-visible,
.admin-logout:hover,
.admin-logout:focus-visible {
  border-color: #b5b5b5;
  color: #efefef;
}

.admin-login-form {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-login-form label {
  font-size: 0.8rem;
  color: #bcbcbc;
}

.admin-login-form input {
  border: 1px solid #5b5b5b;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font: inherit;
  width: 140px;
  background: #111;
  color: #efefef;
}

.admin-login-form .btn {
  padding: 0.38rem 0.65rem;
  font-size: 0.78rem;
}

.admin-status {
  margin: 0;
  font-size: 0.8rem;
  color: #bcbcbc;
}

@media (max-width: 860px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid--two {
    grid-template-columns: 1fr 1fr;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 200px;
  }
}

@media (max-width: 680px) {
  .brand span {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.35rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem;
    width: min(260px, 86vw);
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .card-grid,
  .card-grid--two,
  .gallery-grid,
  .inventory-gallery .gallery-grid,
  .inventory-gallery-month .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 240px;
  }

  .inventory-batch-row {
    grid-template-columns: 1fr;
  }

  .inventory-batch-thumb-wrap {
    width: 100%;
    max-width: 200px;
    height: 120px;
  }
}
