:root {
  --paper: #f5f1e6;
  --ink: #1e1d18;
  --muted: #706e64;
  --line: #d7cfbd;
  --white: #fffdf8;
  --green: #11764e;
  --red: #c83c32;
  --blue: #1c66a7;
  --yellow: #ffe26c;
  --shadow: 0 24px 70px rgba(30, 29, 24, .13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(30, 29, 24, .045) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(rgba(30, 29, 24, .035) 1px, transparent 1px) 0 0 / 38px 38px,
    var(--paper);
  font-family: Avenir Next, Segoe UI, Helvetica Neue, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
  padding: 16px 28px;
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  background: #03a0aa;
  color: var(--white);
  font: 800 24px Georgia, serif;
}

.brand strong {
  display: block;
  font: 800 25px/1 Georgia, Times New Roman, serif;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 0 11px;
  text-decoration: none;
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 28px;
  padding: 54px 28px 30px;
  border-bottom: 2px solid var(--ink);
}

.hero > * {
  min-width: 0;
}

.hero-copy {
  min-width: 0;
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, Times New Roman, serif;
  line-height: 1.02;
}

h1 {
  max-width: 100%;
  font-size: clamp(42px, 6vw, 88px);
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(30px, 3vw, 48px);
}

h3 {
  font-size: 24px;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #3d3b34;
  font-size: 20px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.product-nav-label {
  display: block;
  margin: 22px 0 6px;
  font-weight: 850;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

#product-nav {
  width: 100%;
  max-width: 420px;
  min-height: 46px;
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 0 12px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  padding: 0 16px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 100%;
  min-width: 0;
  align-self: start;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.metric {
  min-width: 0;
  min-height: 130px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.metric:nth-child(2n) {
  border-right: 0;
}

.metric:nth-last-child(-n+2) {
  border-bottom: 0;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.metric strong {
  display: block;
  margin: 11px 0 4px;
  font: 900 40px/1 Georgia, serif;
  overflow-wrap: anywhere;
}

.metric small {
  color: var(--muted);
}

.band {
  padding: 18px 28px;
  border-bottom: 2px solid var(--ink);
  background: var(--yellow);
  font-size: 16px;
}

.stock-section,
.map-section,
.alert-section,
.seo-section {
  padding: 36px 28px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toolbar input,
.toolbar select,
.alert-form input,
.alert-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 0 11px;
}

.map-section {
  border-bottom: 2px solid var(--ink);
  background: #fffaf0;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.dot {
  width: 11px;
  height: 11px;
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.dot.good {
  background: var(--green);
}

.dot.orderable {
  background: #d58b10;
}

.dot.bad {
  background: var(--red);
}

.stock-map {
  width: 100%;
  height: clamp(320px, 46vh, 560px);
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1;
}

.stock-map-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: #3d3b34;
}

.stock-map-empty p {
  margin: 0;
  max-width: 480px;
}

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

.stock-marker {
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--white);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(30, 29, 24, .2);
}

.stock-marker.good {
  background: var(--green);
}

.stock-marker.orderable {
  background: #d58b10;
}

.stock-marker.bad {
  background: var(--red);
}

.stock-marker.is-selected {
  outline: 4px solid var(--yellow);
}

.leaflet-popup-content {
  min-width: 190px;
  font-family: Avenir Next, Segoe UI, Helvetica Neue, sans-serif;
}

.leaflet-popup-content p {
  margin: 6px 0;
}

.toolbar input {
  width: min(360px, 44vw);
}

.toolbar .button {
  min-height: 42px;
}

.local-note {
  min-height: 18px;
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.alert-form button {
  width: 100%;
}

.stock-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.stock-layout > * {
  min-width: 0;
}

.table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

thead {
  background: var(--ink);
  color: var(--white);
  text-transform: uppercase;
  font-size: 12px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: #fff8df;
}

tbody tr.is-selected {
  background: #e8f6ef;
  box-shadow: inset 5px 0 0 var(--green);
}

td strong {
  display: block;
  line-height: 1.22;
}

td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.retailer {
  display: inline-flex;
  border: 1px solid var(--ink);
  background: var(--white);
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.price {
  font: 850 20px/1 Georgia, serif;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border: 1px solid currentColor;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge.good {
  color: var(--green);
  background: #e5f4ec;
}

.badge.bad {
  color: var(--red);
  background: #fae7e4;
}

.badge.warn {
  color: #8a5a00;
  background: #fff1bf;
}

.badge.info {
  color: var(--blue);
  background: #e7f1fb;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-weight: 850;
  cursor: pointer;
  text-decoration: underline;
}

.empty-state {
  padding: 22px;
  color: var(--muted);
}

.product-detail {
  position: sticky;
  top: 92px;
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 18px;
  box-shadow: var(--shadow);
}

.product-detail dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 12px;
  margin: 18px 0;
}

.product-detail dt {
  color: var(--muted);
}

.product-detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.alert-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 28px;
  align-items: start;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: #efe8d8;
}

.alert-section p {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.48;
}

.alert-form {
  display: grid;
  gap: 12px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  padding: 18px;
}

.alert-form label {
  display: grid;
  gap: 6px;
  font-weight: 850;
}

.alert-form .checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
}

.alert-form .checkbox-label input {
  width: auto;
  min-height: 0;
  min-width: 0;
  border: none;
  margin-top: 3px;
  flex-shrink: 0;
}

.form-note,
.form-hint {
  margin: 0;
  color: #4d451f;
  font-size: 13px;
}

.seo-section {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
}

.seo-section h2 {
  max-width: 320px;
}

details {
  border-top: 2px solid var(--ink);
  padding: 16px 0;
}

details:last-child {
  border-bottom: 2px solid var(--ink);
}

summary {
  font-weight: 900;
  cursor: pointer;
}

summary h3 {
  display: inline;
  margin: 0;
  font: inherit;
}

details p {
  max-width: 760px;
  color: #3d3b34;
  line-height: 1.5;
}

.footer {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  color: var(--muted);
}

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  line-height: 1.6;
}

.legal-page h1 {
  margin-bottom: 24px;
}

.legal-page h2 {
  margin-top: 32px;
  margin-bottom: 8px;
}

.legal-page ul {
  padding-left: 20px;
}

.thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.thanks-card {
  width: min(680px, 100%);
  border: 2px solid var(--ink);
  background: var(--white);
  padding: 28px;
  box-shadow: var(--shadow);
}

code {
  background: #eee5d1;
  padding: 2px 5px;
}

@media (max-width: 1060px) {
  .hero,
  .stock-layout,
  .alert-section,
  .seo-section {
    grid-template-columns: 1fr;
  }

  .product-detail {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .stock-section,
  .alert-section,
  .seo-section {
    padding: 24px 16px;
  }

  .hero-panel {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    min-height: 110px;
    padding: 14px;
  }

  .metric strong {
    font-size: 32px;
  }

  .band,
  .footer {
    padding: 16px;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    justify-content: stretch;
  }

  .toolbar input,
  .toolbar select {
    width: 100%;
  }

  table {
    min-width: 760px;
  }
}
