.tea-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(660px, 56.2vw, 900px);
  padding: clamp(136px, 10.7vw, 200px) 4.2% clamp(48px, 4.8vw, 84px);
  background: var(--bg);
  color: var(--text);
}

.tea-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
}

.leaf-lettering {
  position: relative;
  width: min(56vw, 900px);
  height: auto;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.55));
  animation: tea-lettering-in 1.05s var(--ease-tea) both;
}

/* Living Still-Life Composition */
.tea-still-life {
  position: absolute;
  right: 0;
  bottom: 3%;
  width: min(45vw, 730px);
  aspect-ratio: 560 / 650;
  /* Anchors measured on the original 560 × 650 composition. */
  --bowl-top: 70%;
  --spout-y: 39.2%;
  --tea-surface-y: calc(var(--bowl-top) + 4.8%);
  --impact-x: 40.5%;
  pointer-events: none;
  z-index: -1;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 0.7s var(--ease-tea);
}

.tea-still-life img {
  position: absolute;
  display: block;
}

.still-glow {
  position: absolute;
  left: 8%;
  top: 24%;
  width: 80%;
  height: 70%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .025);
  filter: blur(36px);
  animation: still-glow-breathe 7.5s var(--ease-soft) infinite;
}

.tea-still-life .steam {
  left: 1%;
  top: -8%;
  width: 89%;
  height: 82%;
  opacity: 0.24;
  filter: saturate(0.32) blur(0.4px);
  mask-image: linear-gradient(to bottom, transparent 1%, #000 21%, #000 51%, #0009 74%, transparent 96%);
  transform-origin: 45% 88%;
  will-change: transform, opacity;
}

.tea-still-life .steam-a {
  animation: steam-rise-a 9.5s var(--ease-soft) infinite;
}

.tea-still-life .steam-b {
  left: 3%;
  opacity: 0.16;
  filter: saturate(0.25) blur(1.4px);
  animation: steam-rise-b 13s var(--ease-soft) -5s infinite;
}

.tea-still-life .pot {
  right: 0;
  top: 6%;
  width: 51%;
  height: auto;
  transform-origin: 3% 71%;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.55));
  animation: pot-pour-breathe 7.5s var(--ease-soft) infinite;
}

.tea-still-life .bowl {
  left: 12.7%;
  top: var(--bowl-top);
  width: 52%;
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.65));
}

.tea-still-life .pour-stream {
  position: absolute;
  left: 38.6%;
  top: var(--spout-y);
  width: 13.8%;
  height: calc(var(--tea-surface-y) - var(--spout-y) + .2%);
  overflow: hidden;
  clip-path: polygon(
    78% 0, 98% 0, 96% 4%, 83% 15%, 71% 23%, 60% 33%, 53% 44%, 46% 56%,
    39% 67%, 32% 80%, 26% 99.5%, 3% 100%, 8% 88%, 12% 75%, 15% 63%,
    20% 50%, 25% 39%, 29% 29%, 34% 20%, 44% 13%, 57% 6%
  );
  mask-image: linear-gradient(to bottom, #000 96.5%, #000e 98.6%, transparent 100%);
}

.tea-still-life .pour {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 0%;
  animation: tea-stream-pulse 2.8s var(--ease-soft) infinite;
}

.tea-still-life .pour-stream::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    165deg,
    transparent 20%,
    rgba(255, 224, 155, 0.34) 47%,
    rgba(255, 240, 200, 0.52) 50%,
    rgba(255, 210, 125, 0.25) 54%,
    transparent 76%
  );
  mix-blend-mode: screen;
  animation: tea-stream-flow 1.45s linear infinite;
}

/* The front lip occludes the liquid and the incoming stream. */
.tea-still-life .bowl-front {
  filter: none;
  clip-path: polygon(0 11%, 2% 14%, 7% 16.5%, 18% 19%, 32% 20.7%, 50% 21.2%, 66% 20.6%, 80% 18.8%, 91% 16.7%, 98% 13.5%, 100% 10%, 100% 100%, 0 100%);
}

.tea-surface {
  position: absolute;
  left: 14%;
  top: calc(var(--tea-surface-y) - 1.65%);
  width: 49%;
  height: 3.3%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 55% 52%, #94602890, transparent 57%),
              linear-gradient(174deg, #402811b8 0%, #241b11e6 48%, #825f3799 100%);
  box-shadow: inset 0 1px 2px #edca8c38;
}

.pour-ripple {
  position: absolute;
  left: var(--impact-x);
  top: var(--tea-surface-y);
  width: 12%;
  height: 1.9%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, #ffd4929c, #c28a5250 29%, transparent 68%);
}

.pour-ripple::before,
.pour-ripple::after {
  content: "";
  position: absolute;
  inset: 13% 2%;
  border-radius: 50%;
  border: 1px solid #d8ae7048;
  border-bottom-color: #e8c3919c;
  border-right-color: transparent;
  animation: ripple-spread 2.15s ease-out infinite;
}

.pour-ripple::after {
  animation-delay: -1.075s;
}

/* Cover Copy Choreography */
.cover-copy {
  padding-top: clamp(34px, 4.3vw, 76px);
  position: relative;
}

.cover-copy h1 {
  font-size: clamp(2.9rem, 4.6vw, 5.4rem);
  line-height: 1.03;
  max-width: 63vw;
  animation: tea-rise-in 0.9s var(--ease-tea) 0.12s both;
}

.cover-copy p {
  margin: 1.15rem 0 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.32vw, 1.24rem);
  max-width: 44ch;
  animation: tea-rise-in 0.9s var(--ease-tea) 0.24s both;
}

.cover-moods,
.cover-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.cover-moods {
  animation: tea-rise-in 0.9s var(--ease-tea) 0.35s both;
}

.cover-moods a {
  padding: 0.4rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg);
  color: var(--text);
  transition:
    border-color 0.28s var(--ease-tea),
    color 0.28s var(--ease-tea),
    background-color 0.28s var(--ease-tea),
    transform 0.28s var(--ease-tea),
    box-shadow 0.32s var(--ease-tea);
}

.cover-moods a:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--panel);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.cover-actions {
  gap: 1.45rem;
  margin-top: 1.85rem;
  animation: tea-rise-in 0.9s var(--ease-tea) 0.45s both;
}

.cover-actions .solid {
  min-height: 48px;
  padding-inline: 1.65rem;
}

.text-link {
  position: relative;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 0.28s var(--ease-tea), border-color 0.28s var(--ease-tea);
}

.text-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
}

/* Home Sections */
.home-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(24px, 3vw, 52px);
}

.home-section-heading .text-link {
  flex-shrink: 0;
}

.tea-index {
  position: relative;
  background: var(--bg);
}

.tea-index .category-links {
  margin-bottom: 1.6rem;
}

.tea-journal {
  --text: #151515;
  --muted: #535353;
  --line: #bdbfbb;
  --accent: #426734;
  --accent-hover: #31582a;
  color-scheme: light;
  background: #fafafa;
  color: var(--text);
  border-block: 1px solid var(--line);
}

.journal-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(0, 0.83fr);
  gap: clamp(24px, 4vw, 64px);
}

.journal-spread a {
  display: block;
}

.journal-spread img {
  display: block;
  object-fit: cover;
  width: 100%;
  transition: transform 0.72s var(--ease-tea), filter 0.55s var(--ease-tea);
}

.journal-photo {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #e9e9e9;
}

.journal-photo img {
  aspect-ratio: 2.3;
  height: auto;
  object-position: 52% 54%;
}

.journal-lead a:hover .journal-photo img {
  transform: scale(1.038);
}

.journal-lead a:hover h3,
.journal-stories a:hover h3 {
  color: var(--accent-hover);
}

.journal-spread h3 {
  font: 400 clamp(1.7rem, 2.45vw, 3.2rem) / 1.1 Georgia, serif;
  letter-spacing: -0.035em;
  transition: color 0.3s var(--ease-tea);
}

.journal-lead h3 {
  margin-top: 0.9rem;
}

.journal-spread p {
  color: var(--muted);
  line-height: 1.58;
  max-width: 56ch;
  margin: 0.55rem 0 0;
}

.journal-stories {
  display: grid;
  align-content: start;
}

.journal-stories article {
  padding: clamp(16px, 2vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.32s var(--ease-tea);
}

.journal-stories article:first-child {
  padding-top: 0;
}

.journal-stories article:hover {
  border-color: var(--accent);
}

.journal-stories a {
  display: grid;
  grid-template-columns: minmax(96px, 30%) 1fr;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.journal-stories img {
  aspect-ratio: 1;
  height: auto;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.journal-stories a:hover img {
  transform: scale(1.05);
}

.journal-stories h3 {
  font-size: clamp(1.5rem, 1.95vw, 2.25rem);
}

.journal-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.85rem;
  margin-top: 2.2rem;
  padding-top: 1.45rem;
  border-top: 1px solid var(--line);
}

.journal-guides a {
  position: relative;
  padding-block: 0.32rem;
  color: var(--text);
}

.journal-guides a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.34s var(--ease-tea);
}

.journal-guides a:hover {
  color: var(--accent-hover);
}

.journal-guides a:hover::after {
  transform: scaleX(1);
}

/* Keyframes */
@keyframes steam-rise-a {
  0% {
    opacity: 0.17;
    transform: translate3d(-1%, 2%, 0) scale(0.98, 0.97) rotate(-0.8deg);
  }
  45% {
    opacity: 0.3;
    transform: translate3d(1.6%, -3.5%, 0) scale(1.03, 1.04) rotate(0.9deg);
  }
  100% {
    opacity: 0.17;
    transform: translate3d(-1%, 2%, 0) scale(0.98, 0.97) rotate(-0.8deg);
  }
}

@keyframes steam-rise-b {
  0% {
    opacity: 0.12;
    transform: translate3d(1.5%, 3%, 0) scale(1.02, 0.96) rotate(1deg);
  }
  50% {
    opacity: 0.24;
    transform: translate3d(-1.8%, -4%, 0) scale(0.99, 1.05) rotate(-1.2deg);
  }
  100% {
    opacity: 0.12;
    transform: translate3d(1.5%, 3%, 0) scale(1.02, 0.96) rotate(1deg);
  }
}

@keyframes pot-pour-breathe {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: rotate(-0.65deg);
  }
}

@keyframes tea-stream-flow {
  0% {
    transform: translateY(-55%);
  }
  100% {
    transform: translateY(55%);
  }
}

@keyframes tea-stream-pulse {
  0%, 100% {
    transform: scaleX(0.985);
    filter: brightness(0.98);
  }
  50% {
    transform: scaleX(1.025);
    filter: brightness(1.08);
  }
}

@keyframes ripple-spread {
  from { opacity: 0; transform: scale(.2); }
  22% { opacity: .75; }
  to { opacity: 0; transform: scale(1.32); }
}

@keyframes still-glow-breathe {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes tea-lettering-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: blur(4px) drop-shadow(0 14px 32px rgba(0, 0, 0, 0.55));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0) drop-shadow(0 14px 32px rgba(0, 0, 0, 0.55));
  }
}

@keyframes tea-rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 780px) {
  .journal-spread {
    grid-template-columns: 1fr;
  }
  .journal-stories a {
    grid-template-columns: minmax(80px, 20%) 1fr;
  }
  .tea-still-life {
    bottom: 13%;
    width: 50vw;
  }
  .tea-cover {
    min-height: 640px;
  }
  .cover-copy h1 {
    max-width: 60vw;
  }
}

@media (max-width: 600px) {
  .tea-cover {
    min-height: 540px;
    padding: 92px 5% 34px;
    justify-content: flex-start;
  }
  .leaf-lettering {
    width: 100%;
  }
  .tea-still-life {
    width: 53vw;
    bottom: auto;
    top: 151px;
  }
  .cover-copy {
    padding-top: 2.25rem;
  }
  .cover-copy h1 {
    max-width: 69%;
    font-size: clamp(1.85rem, 7.5vw, 2.65rem);
    line-height: 1.03;
    text-wrap: initial;
  }
  .cover-copy p {
    max-width: min(54%, 235px);
    margin: 1rem 0 2rem;
    font-size: 0.97rem;
  }
  .cover-moods {
    max-width: 100%;
  }
  .cover-moods a {
    font-size: 0.86rem;
    padding: 0.34rem 0.72rem;
  }
  .cover-actions {
    margin-top: 1.2rem;
    gap: 1rem;
    font-size: 0.94rem;
  }
  .home-section-heading {
    display: grid;
    align-items: start;
    justify-items: start;
    gap: 0.75rem;
  }
  .journal-photo img {
    aspect-ratio: 1.66;
  }
  .journal-spread p {
    font-size: 0.94rem;
  }
  .journal-stories a {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .journal-guides {
    gap: 0.35rem 1.15rem;
  }
}

@media (min-width: 421px) and (max-width: 600px) {
  .tea-still-life {
    width: min(50vw, 235px);
  }
}
