:root {
  --bg: #0d0906;
  --bg-2: #17100a;
  --panel: rgba(35, 24, 15, 0.82);
  --panel-solid: #21160e;
  --ink: #f3eadc;
  --muted: #b9aa94;
  --faint: #7f6e59;
  --line: rgba(201, 148, 67, 0.32);
  --line-soft: rgba(255, 239, 210, 0.12);
  --gold: #c99443;
  --gold-2: #e2b76a;
  --sage: #778060;
  --burgundy: #6f2f22;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(130, 62, 24, 0.3), transparent 30rem),
    radial-gradient(circle at 92% 18%, rgba(113, 47, 34, 0.22), transparent 28rem),
    linear-gradient(180deg, #050403 0%, var(--bg) 34rem, #120c08 100%);
  color: var(--ink);
  font-family: var(--sans);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4.8rem);
  background: rgba(7, 5, 3, 0.78);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
}

h2,
h3 {
  margin: 0;
}

.eyebrow,
.hero-button,
label,
.detail > span,
.drink-type,
.card-date,
.bottle-meta span,
.header-actions button,
.import-data-button,
.save-button,
.secondary-button,
.load-more {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav,
.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.site-nav {
  justify-content: center;
  margin-right: auto;
}

.header-actions {
  justify-content: flex-end;
}

.site-header button,
.import-data-button,
.save-button,
.secondary-button,
.load-more,
.hero-button {
  display: inline-grid;
  place-items: center;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 8, 5, 0.36);
  color: var(--gold-2);
  padding: 0 1rem;
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
}

.site-header button:hover,
.import-data-button:hover,
.save-button:hover,
.secondary-button:hover,
.load-more:hover,
.hero-button:hover {
  border-color: var(--gold-2);
  color: var(--ink);
}

.import-data-button input {
  display: none;
}

main {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 4.8rem) 3rem;
}

.title-image {
  position: relative;
  min-height: clamp(34rem, 68vh, 48rem);
  margin: 0 calc(clamp(1rem, 4vw, 4.8rem) * -1);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background: #090604;
}

.title-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.92) 0%, rgba(7, 5, 3, 0.62) 32%, rgba(7, 5, 3, 0) 58%),
    linear-gradient(180deg, rgba(5, 4, 3, 0), rgba(5, 4, 3, 0.22));
}

.title-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}

.hero-mark {
  position: absolute;
  right: clamp(1.1rem, 4vw, 4.8rem);
  bottom: clamp(1.1rem, 4vw, 3.2rem);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  min-width: 10rem;
  padding: 0.85rem 0.95rem 0.75rem;
  background: linear-gradient(180deg, rgba(9, 6, 4, 0.04), rgba(9, 6, 4, 0.42));
}

.hero-mark img {
  width: clamp(4.1rem, 7.95vw, 6.1rem);
  height: clamp(4.1rem, 7.95vw, 6.1rem);
  object-fit: contain;
  opacity: 0.72;
  filter: invert(1) sepia(1) saturate(1.45) hue-rotate(348deg) brightness(0.64) contrast(1.08);
  mix-blend-mode: screen;
}

.hero-mark span {
  color: var(--gold-2);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-transform: uppercase;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 1.35rem;
  width: min(36rem, 100%);
  min-height: inherit;
  padding: clamp(5rem, 11vw, 8.5rem) clamp(1rem, 7vw, 5.2rem) 4rem;
}

.eyebrow {
  color: var(--gold-2);
  font-size: 0.74rem;
  font-weight: 850;
}

.hero-copy h2 {
  color: #fff7e8;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.9rem);
  font-weight: 500;
  line-height: 0.92;
}

.hero-copy h2 em {
  display: block;
  color: #e8dac4;
  font-style: italic;
  font-weight: 400;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 25rem;
  margin: 0;
  color: #d4c7b4;
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-copy > p:not(.eyebrow)::before,
.about-intro::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 1px;
  margin-bottom: 1.15rem;
  background: var(--gold);
}

.hero-button.active,
.save-button {
  border-color: transparent;
  background: linear-gradient(135deg, #d6a856, #a66a28);
  color: #100a05;
}

.hero-button.ghost {
  min-width: 10.8rem;
}

.intro-text {
  margin: 2rem 0 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.search-panel,
.create-panel,
.about-panel,
.drink-card,
.empty {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(47, 30, 18, 0.86), rgba(21, 14, 9, 0.92));
  box-shadow: var(--shadow);
}

.search-panel {
  padding: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 1.4rem;
  border-radius: 8px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(8.5rem, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--gold-2);
  font-size: 0.68rem;
  font-weight: 850;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.checkbox-label input {
  width: auto;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(5, 4, 3, 0.58);
  color: var(--ink);
  padding: 0.82rem 0.88rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

textarea {
  resize: vertical;
  line-height: 1.55;
}

input::placeholder,
textarea::placeholder {
  color: rgba(185, 170, 148, 0.62);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(201, 148, 67, 0.16);
}

input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.disabled-panel {
  opacity: 0.58;
}

.hidden {
  display: none !important;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  margin: 1.5rem 0 1.8rem;
  padding: clamp(1.2rem, 4vw, 2.4rem);
  border-radius: 8px;
}

.about-panel.hidden {
  display: none;
}

.about-intro {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.about-intro h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 0.98;
}

.about-intro p:last-child,
.about-story p,
.help-text,
.poem,
.notes {
  color: var(--muted);
  line-height: 1.65;
}

.about-story {
  display: grid;
  gap: 0.95rem;
}

.about-story p,
.help-text,
.poem,
.notes p {
  margin: 0;
}

.about-quote {
  padding-top: 0.6rem;
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.create-panel {
  margin-bottom: 1.4rem;
  overflow: hidden;
  border-radius: 8px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.18);
}

.panel-title h2,
.form-section h3,
.list-header h2 {
  font-family: var(--serif);
  font-weight: 500;
}

.panel-title button {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
}

form,
.import-box {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.form-section {
  display: grid;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.form-section:last-of-type {
  border-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.image-field {
  display: grid;
  gap: 0.75rem;
}

.image-finder {
  display: grid;
  gap: 0.75rem;
}

.image-finder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.image-finder-actions .help-text {
  flex: 1 1 12rem;
}

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

.image-suggestion {
  display: grid;
  gap: 0.45rem;
  min-height: 13rem;
  padding: 0.55rem;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(5, 4, 3, 0.34);
  color: var(--gold-2);
  text-align: left;
}

.image-suggestion:hover,
.image-suggestion.selected {
  border-color: var(--gold-2);
  background: rgba(201, 148, 67, 0.12);
}

.image-suggestion img {
  width: 100%;
  height: 10rem;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.24);
  border-radius: 5px;
}

.image-suggestion span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.secondary-button {
  background: rgba(5, 4, 3, 0.3);
  color: var(--gold-2);
}

#deleteDrinkInEditor,
.delete-drink {
  border-color: rgba(180, 75, 54, 0.55);
  background: rgba(111, 47, 34, 0.22);
  color: #e0a18d;
}

.form-actions,
.import-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.editor-actions {
  width: 100%;
}

.edit-danger-zone {
  margin-left: auto;
}

.card-actions .hidden {
  display: none;
}

.rating-field {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.rating-field legend {
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.rating-field p {
  margin: 0;
  color: var(--muted);
}

.rating-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rating-options label {
  position: relative;
  display: block;
}

.rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-options span {
  width: 2.55rem;
  height: 2.55rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-weight: 850;
}

.rating-options input:checked + span {
  border-color: transparent;
  background: var(--gold);
  color: #110a05;
}

.rating-options input:focus + span {
  outline: 3px solid rgba(201, 148, 67, 0.18);
}

.export-output {
  max-height: 18rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(5, 4, 3, 0.4);
  color: var(--muted);
  font-size: 0.8rem;
}

.list-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.list-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.list-header p {
  margin: 0;
  color: var(--gold-2);
}

.drink-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.drink-card {
  display: grid;
  grid-template-columns: minmax(16rem, 0.34fr) minmax(0, 1fr);
  overflow: visible;
  border-radius: 8px;
}

.drink-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 1.6rem 1rem;
  background:
    linear-gradient(180deg, rgba(114, 73, 34, 0.32), rgba(8, 6, 4, 0.2)),
    radial-gradient(circle at center 72%, rgba(201, 148, 67, 0.18), transparent 11rem);
  border-right: 1px solid var(--line-soft);
}

.drink-image-frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
}

.drink-image {
  display: block;
  width: 100%;
  max-width: 13.5rem;
  height: 18rem;
  min-height: 0;
  object-fit: contain;
  cursor: zoom-in;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
}

.drink-type {
  position: absolute;
  top: 1rem;
  left: 1rem;
  max-width: calc(100% - 2rem);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(24, 14, 7, 0.72);
  color: var(--gold-2);
  padding: 0.36rem 0.48rem;
  font-size: 0.66rem;
  font-weight: 850;
}

.origin-seal {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4.85rem;
  aspect-ratio: 1;
  border: 1px solid rgba(229, 174, 83, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 228, 173, 0.22), transparent 30%),
    linear-gradient(145deg, rgba(121, 84, 46, 0.92), rgba(37, 23, 13, 0.98));
  box-shadow:
    inset 0 0 0 0.32rem rgba(18, 10, 5, 0.66),
    inset 0 0 0 0.44rem rgba(220, 164, 73, 0.18),
    0 0.85rem 1.2rem rgba(0, 0, 0, 0.42);
  color: #f0c86f;
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.origin-seal::before,
.origin-seal::after {
  content: "";
  position: absolute;
  inset: 0.48rem;
  border-radius: 50%;
  pointer-events: none;
}

.origin-seal::before {
  border: 1px solid rgba(248, 204, 126, 0.28);
}

.origin-seal::after {
  background:
    radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.22), transparent 16%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.5;
}

.origin-flag {
  width: 2.75rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    var(--flag-url),
    radial-gradient(circle, rgba(117, 80, 40, 0.86), rgba(31, 19, 11, 0.96));
  background-position: center;
  background-size: cover;
  box-shadow:
    inset 0 0 0 1px rgba(255, 221, 151, 0.24),
    inset 0 0 1.4rem rgba(12, 7, 4, 0.42);
  filter: saturate(0.62) sepia(0.12) brightness(0.82) contrast(1.08);
}

.origin-name {
  position: absolute;
  right: 0.34rem;
  bottom: 0.55rem;
  left: 0.34rem;
  color: #f2c96e;
  font-size: 0.44rem;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.78);
}

.origin-seal-unknown .origin-flag {
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(121, 84, 46, 0.92), rgba(32, 20, 12, 0.98));
}

.origin-seal-unknown .origin-flag::before {
  content: "";
  width: 1.2rem;
  aspect-ratio: 1;
  border: 1px solid rgba(242, 201, 110, 0.56);
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.32rem rgba(242, 201, 110, 0.08);
}

.drink-content {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: clamp(1.1rem, 2vw, 1.55rem);
}

.drink-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.drink-top h3 {
  color: #fff3df;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.1;
}

.meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.card-date {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  color: var(--faint);
  font-size: 0.64rem;
  font-weight: 850;
  text-align: right;
}

.card-date span + span::before {
  content: "·";
  margin-right: 0.35rem;
}

.details {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}

.detail {
  position: relative;
  min-height: 4.2rem;
  padding: 0.58rem;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.detail-tooltip {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 0.65rem);
  z-index: 4;
  display: grid;
  gap: 0.55rem;
  width: min(20rem, 82vw);
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(18, 11, 7, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.44);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  transform: translate(50%, 0.35rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.detail-tooltip::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -0.36rem;
  z-index: 5;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 11, 7, 0.96);
  transform: translate(50%, 0.35rem) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.detail-tooltip p {
  margin: 0;
}

.tooltip-scale {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.25rem;
}

.tooltip-scale span {
  display: grid;
  place-items: center;
  min-height: 1.55rem;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 800;
}

.tooltip-scale span.active {
  border-color: transparent;
  background: linear-gradient(135deg, #d6a856, #a66a28);
  color: #100a05;
}

.detail:first-child .detail-tooltip {
  right: auto;
  left: 0;
  transform: translate(0, 0.35rem);
}

.detail:first-child .detail-tooltip::after {
  right: auto;
  left: 2rem;
  transform: translate(0, 0.35rem) rotate(45deg);
}

.detail:last-child .detail-tooltip {
  right: 0;
  transform: translate(0, 0.35rem);
}

.detail:last-child .detail-tooltip::after {
  right: 2rem;
  transform: translate(0, 0.35rem) rotate(45deg);
}

.detail:focus-visible {
  outline: 3px solid rgba(201, 148, 67, 0.22);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .detail:hover .detail-tooltip,
  .detail:hover .detail-tooltip::after,
  .detail:focus-visible .detail-tooltip,
  .detail:focus-visible .detail-tooltip::after {
    opacity: 1;
    transform: translate(50%, 0) rotate(0deg);
  }

  .detail:hover .detail-tooltip::after,
  .detail:focus-visible .detail-tooltip::after {
    transform: translate(50%, 0) rotate(45deg);
  }

  .detail:first-child:hover .detail-tooltip,
  .detail:first-child:focus-visible .detail-tooltip {
    transform: translate(0, 0);
  }

  .detail:first-child:hover .detail-tooltip::after,
  .detail:first-child:focus-visible .detail-tooltip::after {
    transform: translate(0, 0) rotate(45deg);
  }

  .detail:last-child:hover .detail-tooltip,
  .detail:last-child:focus-visible .detail-tooltip {
    transform: translate(0, 0);
  }

  .detail:last-child:hover .detail-tooltip::after,
  .detail:last-child:focus-visible .detail-tooltip::after {
    transform: translate(0, 0) rotate(45deg);
  }
}

@media (hover: none), (pointer: coarse) {
  .detail {
    -webkit-tap-highlight-color: transparent;
  }

  .detail-tooltip {
    display: none;
  }
}

@media (hover: none) and (max-width: 760px) {
  .lightbox-related {
    display: none;
  }

  .image-lightbox img {
    max-height: 84vh;
  }
}

.detail > span {
  display: block;
  color: var(--faint);
  font-size: 0.58rem;
  font-weight: 850;
}

.detail > strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.details .detail:last-child,
.detail-highlight {
  border-color: rgba(201, 148, 67, 0.5);
  background: rgba(201, 148, 67, 0.14);
}

.poem {
  white-space: pre-line;
}

.notes {
  display: grid;
  gap: 0.35rem;
}

.notes strong {
  color: #d7c4a7;
}

.bottle-meta {
  display: flex;
  gap: 1rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line-soft);
}

.bottle-meta span {
  color: var(--faint);
  font-size: 0.62rem;
  font-weight: 850;
}

.bottle-meta strong {
  display: block;
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.edit-drink,
.delete-drink {
  min-height: 2.35rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 4, 3, 0.3);
  color: var(--gold-2);
  font-size: 0.72rem;
  font-weight: 850;
}

.load-more {
  width: min(26rem, 100%);
  margin: 1.4rem auto 2rem;
}

.load-more.hidden {
  display: none;
}

.empty {
  grid-column: 1 / -1;
  padding: 2rem;
  border-style: dashed;
  border-radius: 8px;
  color: var(--muted);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(4, 3, 2, 0.9);
}

.image-lightbox.hidden {
  display: none;
}

.lightbox-panel {
  display: grid;
  gap: 1.4rem;
  justify-items: center;
  width: min(92vw, 1100px);
  max-height: 92vh;
  overflow: auto;
}

.image-lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 72vh;
  object-fit: contain;
  background: #0d0906;
}

.lightbox-related {
  width: min(100%, 48rem);
  padding: 0.9rem;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: rgba(8, 5, 3, 0.88);
  box-shadow: var(--shadow);
}

.lightbox-related.hidden {
  display: none;
}

.lightbox-related h2 {
  margin: 0 0 0.6rem;
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lightbox-related-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.lightbox-related-item {
  position: static;
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  min-width: 0;
  width: 7rem;
  height: auto;
  padding: 0.55rem;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 239, 210, 0.06);
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.25;
  text-align: center;
}

.lightbox-related-item:hover,
.lightbox-related-item:focus-visible {
  border-color: var(--gold-2);
  background: rgba(201, 148, 67, 0.16);
  outline: none;
}

.lightbox-related-item img {
  width: 5.9rem;
  aspect-ratio: 1;
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: #f8f4eb;
}

.lightbox-related-item span {
  display: -webkit-box;
  min-height: 2.4em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.drink-card-highlight {
  animation: drink-card-pulse 1.6s ease;
}

@keyframes drink-card-pulse {
  0%,
  100% {
    border-color: var(--line);
  }

  30% {
    border-color: var(--gold-2);
    box-shadow: 0 0 0 4px rgba(226, 183, 106, 0.18), var(--shadow);
  }
}

.image-preview-panel {
  display: grid;
  gap: 1rem;
  width: min(92vw, 58rem);
}

.image-preview-panel img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.image-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.image-lightbox button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5, 4, 3, 0.75);
  color: var(--gold-2);
  font-size: 2rem;
  font-weight: 600;
}

.image-lightbox .lightbox-related-item {
  position: static;
  top: auto;
  right: auto;
  width: 7rem;
  height: auto;
  padding: 0.55rem;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 239, 210, 0.06);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
}

.image-lightbox .lightbox-related-item:hover,
.image-lightbox .lightbox-related-item:focus-visible {
  border-color: var(--gold-2);
  background: rgba(201, 148, 67, 0.16);
}

.image-preview-actions button {
  position: static;
  width: auto;
  height: auto;
  min-height: 2.7rem;
  border-radius: 999px;
  padding: 0 1rem;
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  .site-header,
  .list-header,
  .drink-top {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  .site-nav,
  .header-actions {
    justify-content: flex-start;
  }

  .site-nav {
    margin-left: 0;
  }
  .title-image {
    min-height: 36rem;
  }

  .title-image::before {
    background:
      linear-gradient(180deg, rgba(5, 4, 3, 0.66) 0%, rgba(5, 4, 3, 0.92) 68%),
      linear-gradient(90deg, rgba(5, 4, 3, 0.6), transparent);
  }

  .title-image img {
    object-position: 62% center;
  }

  .hero-copy {
    align-content: end;
    padding-top: 6rem;
    padding-bottom: 8.5rem;
  }

  .hero-mark {
    right: auto;
    left: clamp(1rem, 7vw, 5.2rem);
    bottom: 1.1rem;
    justify-items: start;
    padding-left: 0;
  }

  .about-panel,
  .form-grid,
  .filter-grid,
  .drink-card,
  .image-suggestions {
    grid-template-columns: 1fr;
  }

  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details .detail:last-child {
    grid-column: 1 / -1;
  }

  .card-date {
    justify-content: flex-start;
    text-align: left;
  }

  .drink-media {
    min-height: 16.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .origin-seal {
    width: 4.35rem;
    transform: translate(-50%, -50%);
  }

  .origin-flag {
    width: 2.45rem;
  }

  .drink-image {
    height: 14.5rem;
  }
}
