:root {
  color-scheme: light;
  --ink: #2f2a22;
  --muted: #756b5c;
  --line: #dfd2bd;
  --paper: #fffaf0;
  --panel: #fffdf7;
  --green: #3f6f3c;
  --gold: #f3b51b;
  --red: #b55332;
  --blue: #4d6f75;
  --wash: #f3ead6;
  --clay: #b96c3b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(243, 181, 27, 0.16) 0%, rgba(255, 250, 240, 0.96) 34%, #fffaf0 100%),
    repeating-linear-gradient(90deg, rgba(63, 111, 60, 0.04) 0 1px, transparent 1px 34px);
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 22px 0 18px;
}

.brand-block {
  display: flex;
  gap: 20px;
  align-items: center;
}

.brand-logo {
  width: clamp(120px, 17vw, 210px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 1px solid rgba(223, 210, 189, 0.8);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(93, 67, 35, 0.12);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  line-height: 0.95;
}

.lede {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.status-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 260px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(93, 67, 35, 0.1);
}

.status-panel span:last-child {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(243, 181, 27, 0.18);
}

.disclaimer {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(185, 108, 59, 0.35);
  border-radius: 8px;
  color: #5f513e;
  background: rgba(255, 247, 230, 0.92);
  font-size: 0.86rem;
  line-height: 1.45;
}

.disclaimer strong {
  color: var(--clay);
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(140px, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #fffdf7;
  font: inherit;
  text-transform: none;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #5f513e;
  background: #f4ead6;
  font-size: 0.78rem;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #fff7e6;
}

.bird-name {
  display: grid;
  gap: 4px;
}

.bird-name a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.bird-name span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hatchery-info {
  display: grid;
  gap: 7px;
  min-width: 150px;
}

.hatchery-name {
  font-weight: 700;
}

.hatchery-rating {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.stars {
  color: var(--gold);
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 1px;
}

.reviews-link {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(63, 111, 60, 0.28);
  border-radius: 6px;
  padding: 4px 9px;
  color: var(--green);
  background: #f3f7ed;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.reviews-link:hover {
  border-color: rgba(63, 111, 60, 0.5);
  background: #e7f0de;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--wash);
}

.badge.available {
  color: var(--green);
  background: #e7f0de;
}

.badge.limited {
  color: #8b5c00;
  background: #fff0c4;
}

.badge.unavailable {
  color: var(--red);
  background: #fde9e6;
}

.badge.unknown {
  color: var(--blue);
  background: #e4eff0;
}

.price {
  font-weight: 900;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}

.price.lowest {
  color: var(--green);
}

.price.highest {
  color: var(--red);
}

.price-picker {
  display: grid;
  gap: 10px;
  min-width: 260px;
}

.picker-controls {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) minmax(115px, 1fr);
  gap: 8px;
}

.picker-controls label {
  gap: 4px;
  font-size: 0.68rem;
}

.picker-controls select {
  height: 34px;
  padding: 0 8px;
  font-size: 0.86rem;
}

.select-lock {
  position: relative;
  display: block;
}

.select-lock.locked select {
  padding-right: 34px;
  color: #6f6659;
  background: #f4ead6;
  cursor: not-allowed;
  appearance: none;
}

.select-lock.locked::after {
  content: "\1F512";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 0.82rem;
  line-height: 1;
  pointer-events: none;
}

.selected-price {
  width: fit-content;
  font-size: 1.05rem;
}

.selected-price-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.selected-price-wrap span {
  color: var(--muted);
  font-size: 0.78rem;
}

.empty-state {
  padding: 36px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .masthead,
  .controls {
    grid-template-columns: 1fr;
  }

  .brand-block {
    align-items: flex-start;
  }

  .status-panel {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .brand-block {
    display: grid;
  }

  .brand-logo {
    width: 150px;
  }
}
