:root {
  --ink: #25231f;
  --paper: #f4efe4;
  --muted: #81796d;
  --line: rgba(36, 35, 31, 0.18);
  --lime: #c3d15c;
  --coral: #ed795e;
  --sky: #8fc4c2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(0deg, rgba(75, 58, 38, 0.025) 0, rgba(75, 58, 38, 0.025) 1px, transparent 1px, transparent 5px);
  font-family: "DM Sans", sans-serif;
}

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

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 30px 5.6vw 24px;
  position: relative;
  z-index: 3;
}

.wordmark {
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  gap: 12px;
}

.brand-mark {
  flex: none;
  height: 48px;
  width: 48px;
}

.wordmark-text {
  font-size: inherit;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  margin-left: clamp(16px, 3vw, 42px);
}

.main-nav a,
.menu-button,
.eyebrow,
.location,
.card-number {
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.main-nav a {
  color: var(--muted);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ink);
}

.main-nav a.active::after {
  background: var(--lime);
  content: "";
  display: block;
  height: 3px;
  margin-top: 9px;
  width: 18px;
}

@media (min-width: 681px) and (max-width: 1100px) {
  .wordmark {
    font-size: 1.45rem;
  }

  .main-nav {
    gap: 14px;
    margin-left: 18px;
  }

  .main-nav a {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

}

.site-search {
  margin-left: auto;
  max-width: 280px;
  position: relative;
  width: 25vw;
  z-index: 5;
}

@media (min-width: 681px) and (max-width: 1100px) {
  .site-search {
    width: 22vw;
  }
}

.search-field {
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  display: flex;
  min-height: 42px;
  padding-left: 12px;
}

.search-field:focus-within {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--lime);
}

.search-field input {
  background: transparent;
  border: 0;
  color: var(--ink);
  flex: 1;
  font: 0.78rem "DM Sans", sans-serif;
  letter-spacing: 0;
  min-width: 0;
  outline: 0;
  padding: 10px 0;
}

.search-field input::placeholder {
  color: var(--muted);
}

.search-submit {
  align-items: center;
  align-self: stretch;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-width: 42px;
}

.firebase-account-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  flex: none;
  font: 600 0.62rem "DM Sans", sans-serif;
  padding: 10px 12px;
  text-transform: uppercase;
}

.firebase-account-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.firebase-auth-dialog {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 70px rgba(24, 22, 18, 0.28);
  color: var(--ink);
  margin: auto;
  max-width: calc(100vw - 32px);
  padding: 0;
  width: 430px;
}

.firebase-auth-dialog::backdrop {
  background: rgba(25, 23, 19, 0.56);
}

.firebase-auth-form {
  display: grid;
  gap: 17px;
  padding: 28px;
}

.firebase-auth-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.firebase-auth-heading .eyebrow {
  color: #737a3b;
  font-size: 0.58rem;
  margin: 0 0 8px;
}

.firebase-auth-heading h2 {
  font: 600 1.8rem/1 "Playfair Display", Georgia, serif;
  margin: 0;
}

.firebase-auth-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 0 0 12px;
}

.firebase-auth-copy {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.firebase-auth-form label {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.66rem;
  gap: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.firebase-auth-form input {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 0.9rem "DM Sans", sans-serif;
  letter-spacing: 0;
  min-height: 46px;
  padding: 10px 12px;
}

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

.firebase-auth-submit,
.firebase-auth-create {
  cursor: pointer;
  font: 600 0.65rem "DM Sans", sans-serif;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  text-transform: uppercase;
}

.firebase-auth-submit {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
}

.firebase-auth-create {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.firebase-auth-message {
  color: #737a3b;
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
}

.search-submit span {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  height: 13px;
  position: relative;
  width: 13px;
}

.search-submit span::after {
  background: currentColor;
  content: "";
  height: 1.5px;
  position: absolute;
  right: -5px;
  top: 11px;
  transform: rotate(45deg);
  width: 6px;
}

.search-results {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(37, 35, 31, 0.16);
  left: 0;
  max-height: 330px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
}

.search-results[hidden] {
  display: none;
}

.search-result {
  border-bottom: 1px solid var(--line);
  display: block;
  padding: 12px 14px;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover,
.search-result:focus-visible {
  background: rgba(195, 209, 92, 0.24);
  outline: 0;
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result strong {
  font-size: 0.8rem;
  font-weight: 500;
}

.search-result small,
.search-empty {
  color: var(--muted);
  font-size: 0.68rem;
  margin-top: 4px;
}

.search-empty {
  margin: 0;
  padding: 14px;
}

.nav-cta,
.intro-link,
.bottom-link,
.studio-back-link {
  align-items: center;
  display: inline-flex;
  font-size: 0.68rem;
  gap: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 13px 17px;
  transition: background 180ms ease, transform 180ms ease;
}

.nav-cta:hover {
  background: #737a3b;
  transform: translateY(-2px);
}

.nav-cta span,
.intro-link span,
.bottom-link span {
  font-size: 1rem;
}

.menu-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.menu-button span {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  font-size: 1rem;
  height: 20px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  width: 20px;
}

.intro {
  align-items: center;
  display: flex;
  min-height: min(60vw, 610px);
  margin: 2vw 5.6vw 4vw;
  padding: 6vw;
  position: relative;
}

.intro::after {
  display: none;
}

.intro-copy-wrap {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  color: var(--muted);
  margin: 0 0 25px;
}

h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.7rem, 8.3vw, 8.1rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.88;
  margin: 0;
  max-width: 900px;
}

h1 em {
  color: #737a3b;
  font-weight: 600;
}

.intro-copy {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.5;
  margin: 28px 0 0;
  max-width: 390px;
}

.intro-visual {
  background: #46241d;
  border-radius: 8px;
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.intro-visual::after {
  background: linear-gradient(100deg, rgba(45, 21, 17, 0.78) 0%, rgba(98, 39, 25, 0.5) 48%, rgba(14, 25, 22, 0.08) 100%), linear-gradient(0deg, rgba(34, 18, 14, 0.34), transparent 55%);
  content: "";
  inset: 0;
  position: absolute;
}

.intro-visual img {
  filter: saturate(1.22) contrast(1.04);
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  width: 100%;
}

.intro-link {
  align-self: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: white;
  margin: auto 0 0 auto;
  padding: 14px 18px;
  position: relative;
  transition: background 180ms ease, color 180ms ease;
  z-index: 2;
}

.intro-link:hover,
.bottom-link:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.intro .eyebrow {
  color: #f5d69a;
}

.intro h1,
.intro h1 em {
  color: white;
}

.intro h1 em {
  text-shadow: 0 2px 25px rgba(247, 170, 91, 0.42);
}

.drink-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 5.6vw;
}

.drink-card {
  aspect-ratio: 0.82;
  animation: card-rise 700ms both cubic-bezier(0.2, 0.8, 0.2, 1);
  background: #aaa;
  color: #fff;
  display: block;
  overflow: hidden;
  position: relative;
  transform: translateZ(0);
  transition: box-shadow 350ms ease, transform 350ms ease;
  border-radius: 18px 18px 0 0;
}

.drink-card:nth-child(2) {
  animation-delay: 120ms;
}

.drink-card:nth-child(3) {
  animation-delay: 240ms;
}

.drink-card:hover {
  box-shadow: 0 18px 35px rgba(60, 47, 31, 0.18);
  transform: translateY(-6px);
}

.drink-card::after {
  border: 1px solid rgba(255, 255, 255, 0.26);
  content: "";
  inset: 12px;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.drink-card img,
.card-shade {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.drink-card img {
  filter: saturate(1.08) contrast(1.04);
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.drink-card-action {
  cursor: pointer;
  inset: 0;
  position: absolute;
  z-index: 3;
}

.drink-card-action:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: -7px;
}

.coffee img {
  object-position: 58% center;
}

.coffee {
  border-bottom: 8px solid var(--coral);
}

.cocktail img {
  object-position: 50% 56%;
}

.cocktail {
  border-bottom: 8px solid var(--lime);
}

.mocktail img {
  object-position: 52% center;
}

.mocktail {
  border-bottom: 8px solid var(--sky);
}

.shooter img {
  object-position: 50% center;
}

.shooter {
  border-bottom: 8px solid #d7a24d;
}

.drink-card:hover img {
  transform: scale(1.06);
}

.card-shade {
  background: linear-gradient(180deg, rgba(18, 20, 14, 0.02) 20%, rgba(18, 20, 14, 0.12) 45%, rgba(18, 20, 14, 0.82) 100%);
  z-index: 1;
}

.card-content {
  bottom: 27px;
  display: flex;
  flex-direction: column;
  left: 27px;
  pointer-events: none;
  position: absolute;
  right: 27px;
  z-index: 2;
}

.photo-credit {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.56rem;
  left: 27px;
  position: absolute;
  top: 24px;
  z-index: 4;
}

.photo-credit a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card-number {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 11px;
}

.card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.card-caption {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  display: flex;
  font-size: 0.72rem;
  justify-content: space-between;
  margin-top: 19px;
  padding-top: 12px;
}

.card-caption b {
  font-size: 1.1rem;
  font-weight: 400;
}

.bottom-note {
  align-items: center;
  display: flex;
  gap: 25px;
  justify-content: space-between;
  margin: 39px 5.6vw 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.line {
  background: var(--line);
  flex: 1;
  height: 1px;
}

.bottom-note p {
  color: #777269;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.03rem;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

.bottom-link {
  border-bottom: 1px solid var(--line);
  flex: 1;
  justify-content: flex-end;
  padding: 8px 0;
}

.location {
  color: var(--muted);
  flex: 1;
  text-align: right;
}

.location span {
  color: var(--ink);
  margin: 0 6px;
}

.recipe-area,
.saved-recipes {
  border-top: 1px solid var(--line);
  margin: 0 5.6vw;
  padding: 76px 0 84px;
}

.recipe-page {
  background-color: #eee7d9;
}

.back-cta {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.back-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.studio-hero {
  align-items: center;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  margin: 4.5vw 5.6vw 0;
  min-height: 420px;
  position: relative;
}

.studio-copy {
  padding: 30px 0 54px;
  position: relative;
  z-index: 1;
}

.studio-index {
  align-items: center;
  background: var(--coral);
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-size: 0.55rem;
  height: 25px;
  justify-content: center;
  margin-right: 8px;
  width: 25px;
}

.studio-copy h1 {
  font-size: clamp(4rem, 7.6vw, 7.5rem);
  position: relative;
  z-index: 1;
}

.studio-copy h1 em {
  color: #737a3b;
}

.studio-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 28px 0 0 8vw;
  max-width: 255px;
}

.studio-back-link {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  margin: 27px 0 0 8vw;
  padding-bottom: 7px;
}

.studio-back-link:hover {
  color: var(--ink);
}

.studio-image {
  align-self: center;
  height: clamp(360px, 38vw, 520px);
  margin: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.studio-image::after {
  background: linear-gradient(180deg, transparent 55%, rgba(28, 29, 21, 0.62));
  content: "";
  inset: 0;
  position: absolute;
}

.studio-image img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: 52% 48%;
  position: absolute;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
  width: 100%;
}

.studio-image.shooter-hero-image {
  background: #271c1c;
}

.studio-image.shooter-hero-image img {
  object-fit: contain;
  object-position: center;
  padding: 18px;
}

.studio-image:hover img {
  transform: scale(1.035);
}

.studio-image figcaption {
  bottom: 24px;
  color: white;
  display: flex;
  font-size: 0.59rem;
  justify-content: space-between;
  left: 24px;
  letter-spacing: 0.14em;
  position: absolute;
  right: 24px;
  z-index: 1;
}

.studio-image-credit {
  bottom: 50px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.58rem;
  position: absolute;
  right: 24px;
  text-decoration: underline;
  text-underline-offset: 2px;
  z-index: 2;
}

.studio-stamp {
  align-items: center;
  background: var(--lime);
  border-radius: 50%;
  display: flex;
  font-size: 0.63rem;
  font-weight: 700;
  height: 92px;
  justify-content: center;
  left: 47%;
  letter-spacing: 0.1em;
  line-height: 1.25;
  position: absolute;
  text-align: center;
  top: 12%;
  transform: rotate(9deg);
  width: 92px;
  z-index: 2;
}

.studio-builder {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(36, 35, 31, 0.1);
  gap: 7vw;
  margin-top: 60px;
  padding: 58px 5vw 64px;
}

.studio-builder .recipe-heading h2 {
  font-size: clamp(2.6rem, 4.4vw, 4.4rem);
}

.studio-progress {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.58rem;
  gap: 8px;
  letter-spacing: 0.1em;
  margin-top: 42px;
  max-width: 210px;
}

.studio-progress span:first-child {
  color: var(--ink);
}

.studio-progress i {
  background: var(--line);
  flex: 1;
  height: 1px;
}

.studio-builder .recipe-form {
  align-content: start;
}

.studio-builder .recipe-form label {
  color: #6f665b;
}

.studio-builder .recipe-form input,
.studio-builder .recipe-form select,
.studio-builder .recipe-form textarea {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(36, 35, 31, 0.14);
  min-height: 48px;
}

.studio-builder .recipe-form textarea {
  min-height: 96px;
}

.glassware-field > label {
  color: var(--muted);
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.glassware-choice {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(160px, 0.72fr) minmax(240px, 1.28fr);
  margin-top: 9px;
}

.glassware-choice select {
  align-self: start;
}

.glassware-preview {
  align-items: center;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--line);
  display: flex;
  gap: 16px;
  min-height: 170px;
  padding: 16px;
}

.glassware-preview img {
  background: transparent;
  height: 138px;
  object-fit: contain;
  padding: 8px;
  width: 138px;
}

.glassware-preview-copy {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.glassware-preview-caption {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
}

.glassware-credit {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0;
  text-decoration: underline;
  text-transform: none;
}

.studio-builder .save-button {
  width: 174px;
}

.recipe-page .saved-recipes {
  padding-top: 58px;
}

.recipe-page .saved-heading-row .eyebrow {
  margin-bottom: 14px;
}

.collection-hero {
  align-items: flex-end;
  background-color: #344c3b;
  color: white;
  display: flex;
  justify-content: space-between;
  margin: 3vw 5.6vw 0;
  min-height: 340px;
  overflow: hidden;
  padding: 52px 5vw;
  position: relative;
}

.collection-hero::after {
  bottom: -0.26em;
  color: rgba(255, 255, 255, 0.055);
  content: "03";
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(15rem, 30vw, 26rem);
  line-height: 1;
  position: absolute;
  right: 1vw;
}

.collection-intro-copy,
.collection-intro-meta {
  position: relative;
  z-index: 1;
}

.collection-intro-copy .eyebrow {
  color: var(--lime);
  margin-bottom: 22px;
}

.collection-intro-copy h1 {
  font-size: clamp(3.8rem, 7vw, 7rem);
}

.collection-intro-copy h1 em {
  color: #f0a17d;
}

.collection-intro-copy > p:last-child {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  margin: 22px 0 0;
}

.collection-intro-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 175px;
  padding-top: 12px;
}

.collection-intro-meta span:first-child {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
}

.collection-intro-meta span:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.collection-recipes {
  padding-top: 54px;
}

.collection-recipes .recipe-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collection-add-link {
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem;
  padding-bottom: 8px;
  text-transform: uppercase;
}

.recipe-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.filter-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 9px 16px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.collection-add-link:hover {
  border-color: #737a3b;
  color: #737a3b;
}

.collection-add-link span {
  font-size: 1rem;
  margin-left: 8px;
}

.collection-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.export-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font: 500 0.68rem "DM Sans", sans-serif;
  padding: 10px 12px;
  transition: background 160ms ease, color 160ms ease;
}

.export-button:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

.export-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.collection-page .empty-state a {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  display: inline-block;
  margin-left: 7px;
  padding-bottom: 3px;
}

.recipe-area {
  display: grid;
  column-gap: 8vw;
  grid-template-columns: minmax(220px, 0.72fr) 1.28fr;
  grid-template-areas:
    "heading form"
    "summary form";
  row-gap: 24px;
  grid-template-rows: auto auto;
}

.recipe-heading {
  grid-area: heading;
}

.recipe-form {
  grid-area: form;
}

.recipe-cost-summary {
  align-self: start;
  grid-area: summary;
}

.recipe-heading h2,
.saved-recipes h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0;
}

.recipe-heading h2 {
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.recipe-heading h2 em {
  color: #737a3b;
  font-weight: 600;
}

.recipe-heading > p:last-child {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 28px 0 0;
  max-width: 205px;
}

.recipe-form {
  display: grid;
  gap: 24px 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.recipe-form label {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 0.66rem;
  gap: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.recipe-form input,
.recipe-form select,
.recipe-form textarea {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font: 0.9rem "DM Sans", sans-serif;
  letter-spacing: 0;
  outline: none;
  padding: 13px 14px;
  resize: vertical;
}

.recipe-form input:focus,
.recipe-form select:focus,
.recipe-form textarea:focus {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--lime);
}

.recipe-form input::placeholder,
.recipe-form textarea::placeholder {
  color: #aaa095;
}

.wide-field {
  grid-column: 1 / -1;
}

.ingredient-editor {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 24px;
}

.ingredient-editor-heading {
  align-items: flex-end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ingredient-editor-heading .eyebrow {
  font-size: 0.58rem;
  margin: 0 0 9px;
}

.ingredient-editor-heading h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.ingredient-editor-heading p:last-child {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  margin: 8px 0 0;
  max-width: 310px;
}

.add-ingredient {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  flex: none;
  font: 700 0.62rem "DM Sans", sans-serif;
  gap: 9px;
  letter-spacing: 0.1em;
  padding: 10px 12px;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.add-ingredient:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.add-ingredient span {
  font-size: 1.05rem;
  line-height: 0.6;
}

.ingredient-list {
  display: grid;
  gap: 10px;
}

.ingredient-cost-breakdown {
  display: grid;
}

.ingredient-cost-line {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  font-size: 0.72rem;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
}

.ingredient-cost-line span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ingredient-cost-line strong {
  color: #737a3b;
  flex: none;
}

.ingredient-cost-empty {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 0;
  padding: 4px 0 12px;
}

.ingredient-row {
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(36, 35, 31, 0.1);
  padding: 14px;
}

.ingredient-row-main,
.ingredient-row-costs {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1.4fr) minmax(170px, 1.2fr) minmax(110px, 0.9fr);
}

.ingredient-measurement-input {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 72px;
}

.ingredient-row-costs {
  border-top: 1px solid rgba(36, 35, 31, 0.1);
  grid-template-columns: minmax(120px, 1fr) minmax(130px, 1.05fr) minmax(145px, 1.1fr) 28px;
  margin-top: 12px;
  padding-top: 12px;
}

.ingredient-row label {
  font-size: 0.57rem;
  gap: 6px;
  letter-spacing: 0.08em;
}

.ingredient-row input,
.ingredient-row select {
  min-width: 0;
  padding: 10px !important;
  width: 100%;
}

.ingredient-serving-cost {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.ingredient-serving-cost span {
  color: var(--muted);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ingredient-serving-cost strong {
  color: #737a3b;
  font-size: 0.95rem;
}

.remove-ingredient {
  align-items: center;
  align-self: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 1.3rem;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.remove-ingredient:hover {
  color: var(--coral);
}

.ingredient-total {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 14px 17px;
}

.ingredient-total span {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ingredient-total strong {
  color: var(--lime);
  font-size: 1.05rem;
}

.saved-ingredients {
  margin-top: 10px;
}

.saved-ingredient {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  font-size: 0.72rem;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
}

.saved-ingredient > span,
.saved-ingredient-cost {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.saved-ingredient-info {
  flex: 1;
  min-width: 0;
}

.saved-ingredient-cost {
  align-items: flex-end;
  flex: none;
}

.saved-ingredient small {
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.4;
}

.saved-ingredient-cost b {
  color: #737a3b;
}

.save-button {
  align-items: center;
  background: var(--ink);
  border: 0;
  color: var(--paper);
  cursor: pointer;
  display: flex;
  font: 700 0.68rem "DM Sans", sans-serif;
  gap: 18px;
  justify-content: space-between;
  letter-spacing: 0.14em;
  padding: 15px 18px;
  text-transform: uppercase;
  transition: background 180ms ease, transform 180ms ease;
  width: 152px;
}

.save-button:hover {
  background: #737a3b;
  transform: translateY(-2px);
}

.save-button span {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 0.6;
}

.saved-recipes {
  padding-bottom: 100px;
}

.saved-heading-row {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
}

.saved-recipes h2 {
  font-size: clamp(2.1rem, 4vw, 3.7rem);
}

#recipe-count {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.recipe-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 33px;
}

.saved-recipe {
  background: rgba(255, 255, 255, 0.35);
  border-top: 4px solid var(--lime);
  padding: 20px;
}

.saved-recipe:nth-child(3n + 2) {
  border-color: var(--coral);
}

.saved-recipe:nth-child(3n + 3) {
  border-color: var(--sky);
}

.saved-recipe-topline {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.saved-recipe-topline span,
.saved-recipe-topline button {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.saved-recipe-topline button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.saved-recipe h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 18px 0 15px;
}

.recipe-details {
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-bottom: 14px;
  padding-bottom: 13px;
}

.recipe-details span {
  color: #737a3b;
  font-size: 0.66rem;
  font-weight: 700;
}

.saved-recipe p,
.recipe-method {
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0;
  white-space: normal;
}

.ingredients-label {
  color: var(--muted);
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.recipe-method {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 17px;
  padding-top: 13px;
}

.empty-state {
  color: var(--muted);
  font-family: "Playfair Display", Georgia, serif;
  margin: 33px 0 0;
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 680px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 6vw 15px;
  }

  .wordmark {
    font-size: 1.25rem;
    margin-right: auto;
  }

  .brand-mark {
    height: 34px;
    width: 34px;
  }

  .main-nav {
    display: none;
  }

  .site-search {
    flex: 0 0 100%;
    margin-left: 0;
    max-width: none;
    order: 3;
    width: 100%;
  }

  .firebase-account-button {
    font-size: 0.55rem;
    margin-left: auto;
    padding: 8px;
  }

  .site-header > .nav-cta {
    margin-left: auto;
  }

  .search-field input {
    font-size: 0.7rem;
  }

  .intro {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    margin: 6vw;
    min-height: 540px;
    padding: 32px 24px;
  }

  .intro::after {
    display: none;
  }

  .intro-visual {
    height: auto;
  }

  h1 {
    font-size: clamp(3.7rem, 19vw, 6.5rem);
  }

  .intro-copy {
    margin-top: 20px;
  }

  .intro-link {
    align-self: flex-start;
    margin: 28px 0 0;
  }

  .drink-grid {
    grid-template-columns: 1fr;
    padding: 0 6vw;
  }

  .drink-card {
    aspect-ratio: 1.28;
  }

  .card-content {
    bottom: 22px;
    left: 22px;
    right: 22px;
  }

  .card-title {
    font-size: 3.1rem;
  }

  .bottom-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin: 30px 6vw 36px;
  }

  .bottom-link {
    justify-content: flex-start;
  }

  .recipe-area,
  .saved-recipes {
    margin: 0 6vw;
    padding: 58px 0 68px;
  }

  .recipe-area {
    display: block;
  }

  .recipe-heading > p:last-child {
    margin-bottom: 38px;
  }

  .recipe-form,
  .recipe-list {
    grid-template-columns: 1fr;
  }

  .recipe-form {
    gap: 19px;
  }

  .ingredient-editor-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .glassware-choice {
    grid-template-columns: 1fr;
  }

  .ingredient-row-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .ingredient-row-main label:first-child {
    grid-column: 1 / -1;
  }

  .ingredient-measurement-input {
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  .ingredient-row-costs {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px;
  }

  .ingredient-serving-cost {
    grid-column: 1 / 3;
    grid-row: 2;
    padding: 4px 0;
  }

  .remove-ingredient {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .studio-hero {
    gap: 20px;
    grid-template-columns: 1fr;
    margin: 8vw 6vw 0;
  }

  .studio-copy {
    padding: 32px 0 12px;
  }

  .studio-copy h1 {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .studio-copy > p:not(.eyebrow),
  .studio-back-link {
    margin-left: 18vw;
  }

  .studio-image {
    height: clamp(260px, 72vw, 360px);
  }

  .studio-stamp {
    height: 76px;
    left: auto;
    right: 8vw;
    top: 42%;
    width: 76px;
  }

  .studio-builder {
    margin: 38px 6vw 0;
    padding: 42px 6vw 48px;
  }

  .studio-progress {
    margin: 27px 0 32px;
  }

  .recipe-page .saved-recipes {
    padding-top: 44px;
  }

  .collection-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 34px;
    margin: 6vw;
    min-height: 0;
    padding: 38px 25px;
  }

  .collection-intro-copy h1 {
    font-size: clamp(3.5rem, 16vw, 5rem);
  }

  .collection-intro-meta {
    min-width: 0;
    width: 100%;
  }

  .collection-recipes .recipe-list {
    grid-template-columns: 1fr;
  }

  .saved-heading-row {
    align-items: flex-end;
  }

  .line {
    flex: none;
    width: 100%;
  }

  .bottom-note p {
    text-align: left;
  }

  .location {
    text-align: left;
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .recipe-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  @page {
    margin: 18mm;
  }

  body {
    background: white;
    color: black;
  }

  .site-header,
  .collection-export-actions,
  .collection-add-link,
  .recipe-category-filters,
  .saved-recipe-actions,
  .empty-state a {
    display: none !important;
  }

  .collection-hero {
    background: white;
    color: black;
    margin: 0 0 16px;
    min-height: 0;
    padding: 0 0 14px;
  }

  .collection-hero::after {
    display: none;
  }

  .collection-intro-copy h1,
  .collection-intro-copy h1 em,
  .collection-intro-meta,
  .collection-intro-meta span:last-child {
    color: black;
  }

  .collection-intro-copy h1 {
    font-size: 30pt;
  }

  .collection-recipes {
    border: 0;
    margin: 0;
    padding: 0;
  }

  .collection-recipes .recipe-list {
    display: block;
  }

  .saved-recipe {
    background: white;
    border: 1px solid #999;
    break-inside: avoid;
    margin-bottom: 12px;
  }
}
