:root {
  --organic-paper: #FAF6F0;
  --organic-linen: #F0E8D8;
  --organic-sand: #E2D5C0;
  --organic-border: #CBBFA8;
  --organic-ink: #2A2218;
  --organic-body: #4A3B2A;
  --organic-muted: #7A6B55;
  --organic-forest: #2D5A27;
  --organic-leaf: #4A8B3A;
  --organic-sage: #8FAE8A;
  --organic-mint: #C8DFC4;
  --organic-ochre: #C4832A;
}

@font-face {
  font-family: "StarPanda Kids";
  src: url("https://raw.githubusercontent.com/cyberinkflow/StarPandaKidsFonts/acb0d18caaf7c437269957c8dc8a0c6619145d1e/StarPandaKidsBeta2.1.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

.inspiration-page,
.inspiration-page :where(h1, h2, h3, p, span, strong, small, blockquote, button, a, label, legend) {
  font-family: "StarPanda Kids", "Hannotate TC", "Kaiti TC", BiauKai, cursive;
  font-style: normal;
  font-weight: 400 !important;
  font-synthesis: none;
}

.inspiration-hero {
  padding-bottom: 30px;
}

.inspiration-hero > .artwork,
.inspiration-hero > img {
  display: none !important;
}

.wine-quote {
  position: relative;
  width: min(100%, 520px);
  min-height: 150px;
  margin: 42px auto 8px;
  padding: 44px 28px 34px;
  border: 1px solid color-mix(in srgb, var(--organic-border), transparent 12%);
  border-radius: 22px 17px 25px 19px;
  background:
    linear-gradient(transparent 31px, color-mix(in srgb, var(--organic-sage), transparent 78%) 32px, transparent 33px) 0 26px / 100% 34px,
    color-mix(in srgb, var(--organic-linen), var(--organic-paper) 34%);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--organic-body), transparent 90%);
  color: var(--organic-ink);
  font-family: "StarPanda Kids", "Hannotate TC", "Kaiti TC", BiauKai, cursive;
  font-size: clamp(26px, 7vw, 38px);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: .045em;
  line-height: 1.65;
  text-align: center;
  text-wrap: balance;
  transform: rotate(-.65deg);
}

.wine-quote[data-tilt="1"] {
  transform: rotate(.55deg);
}

.wine-quote[data-tilt="2"] {
  transform: rotate(-.2deg);
}

.wine-quote::before {
  content: "“";
  position: absolute;
  top: -21px;
  left: 22px;
  color: var(--organic-ochre);
  font-size: 72px;
  line-height: 1;
  transform: rotate(-8deg);
}

.wine-quote::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 20px;
  width: 54px;
  height: 7px;
  border-bottom: 3px solid color-mix(in srgb, var(--organic-leaf), transparent 18%);
  border-radius: 50%;
  transform: rotate(-5deg);
}

.language-placeholder {
  appearance: none;
  background: color-mix(in srgb, var(--organic-paper), transparent 8%);
  cursor: pointer;
  font-family: ui-serif, Georgia, "Noto Serif SC", serif;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 0;
  transition: border-color .6s ease, color .6s ease, background-color .6s ease;
}

.language-placeholder:hover,
.language-placeholder:focus-visible {
  border-color: var(--organic-leaf);
  color: var(--organic-ink);
  outline: 2px solid color-mix(in srgb, var(--organic-leaf), transparent 65%);
  outline-offset: 3px;
}

.recipe-row > a {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  min-height: 142px;
}

.recipe-row .artwork {
  width: 104px;
  height: 122px;
  border: 1px solid var(--organic-border);
  border-radius: 16px;
  background: var(--organic-paper);
  isolation: isolate;
}

.recipe-row .artwork img {
  position: relative;
  z-index: 1;
  transform: scale(1.54);
  transform-origin: 50% 53%;
  filter: saturate(1.04) contrast(1.02);
  transition: transform .55s ease, filter .55s ease;
}

.recipe-row > a:hover .artwork img,
.recipe-row > a:focus-visible .artwork img {
  transform: scale(1.62) rotate(-.5deg);
  filter: saturate(1.1) contrast(1.04);
}

.recipe-page > .artwork {
  width: min(100%, 430px);
  height: auto;
  aspect-ratio: 720 / 820;
  margin: 4px auto 24px;
  border: 1px solid var(--organic-border);
  border-radius: 20px;
  background: var(--organic-paper);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--organic-body), transparent 88%);
}

.recipe-page > .recipe-title {
  margin: 6px 0 20px;
}

.recipe-page > .artwork img {
  position: relative;
  z-index: 1;
  filter: saturate(1.02) contrast(1.01);
}

body[data-language="en"] {
  font-family: "Noto Serif SC", ui-serif, Georgia, serif;
}

body[data-language="en"] .page-heading h1,
body[data-language="en"] .recipe-title h1,
body[data-language="en"] .recommendation-copy h1 {
  font-weight: 400;
  letter-spacing: -.02em;
}

body[data-language="en"] .recipe-row h2 {
  font-size: 18px;
  line-height: 1.25;
}

body[data-language="en"] .recipe-row p,
body[data-language="en"] .check-row small {
  font-family: "Noto Serif SC", ui-serif, Georgia, serif;
}

@media (width <= 430px) {
  .wine-quote {
    min-height: 138px;
    margin-top: 32px;
    padding: 39px 20px 30px;
    font-size: clamp(25px, 8.2vw, 32px);
  }

  .library-controls,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .recipe-row > a {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    min-height: 132px;
    padding-right: 42px;
  }

  .recipe-row .artwork {
    width: 92px;
    height: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-placeholder,
  .recipe-row .artwork img {
    transition: none;
  }
}
