:root {
  --chai-ground: #F8F1E8;
  --chai-ink: #33291F;
  --chai-accent: #2A9292;
  --chai-support: #E0DAD1;
  --chai-surface: #FFFFFF;
  --chai-deep: #176464;
  color-scheme: light;
  font-family: 'Comic Neue', 'Trebuchet MS', sans-serif;
  color: var(--chai-ink);
  background: var(--chai-ground);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 21px; line-height: 1.55; }
a { color: inherit; text-decoration-color: var(--chai-deep); text-underline-offset: .22em; text-decoration-thickness: 2px; transition: color .16s ease, text-underline-offset .16s ease; }
a:hover { color: var(--chai-deep); text-decoration-thickness: 3px; text-underline-offset: .32em; }
a:focus-visible { outline: 3px solid var(--chai-deep); outline-offset: 5px; border-radius: 3px; }
img, svg { max-width: 100%; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; color: var(--chai-ink); text-wrap: pretty; }
h1 { font-family: 'Sonsie One', Georgia, serif; font-weight: 400; font-size: clamp(36px, 3.25vw, 48px); line-height: 1.27; }
h2 { font-size: clamp(29px, 2.4vw, 36px); line-height: 1.18; font-weight: 700; }
h3 { font-size: 24px; line-height: 1.28; }
[data-lucide], .lucide { display: inline-block; flex: none; width: 23px; height: 23px; vertical-align: middle; }
.chai-skip { position: absolute; top: -90px; left: 22px; z-index: 8; background: var(--chai-surface); padding: 12px 18px; }
.chai-skip:focus { top: 12px; }
.chai-masthead { max-width: 1280px; padding: 18px 24px 12px; margin: auto; }
.chai-name { display: flex; width: max-content; max-width: 100%; align-items: center; gap: 22px; text-decoration: none; font-family: 'Sonsie One', Georgia, serif; font-size: 35px; line-height: 1.3; }
.chai-handle { width: 100px; height: 76px; flex: none; overflow: visible; }
.chai-handle path { fill: none; stroke: var(--chai-accent); stroke-width: 5; stroke-linecap: round; }
.chai-tangents { display: flex; gap: 48px; margin: 0 0 0 23px; width: max-content; max-width: 100%; }
.chai-tangents a { min-height: 44px; display: inline-flex; align-items: center; gap: 11px; font-size: 21px; text-decoration: none; }
.chai-tangents a::before { content: ''; width: 38px; height: 3px; background: var(--chai-accent); }
.chai-tangents a[aria-current=page] span { text-decoration: underline; text-decoration-color: var(--chai-deep); text-underline-offset: .24em; }
.chai-tangents a:hover span { text-decoration: underline; text-underline-offset: .24em; }
.chai-tangents .lucide, .chai-tangents [data-lucide] { width: 19px; height: 19px; }
.chai-page { width: min(1192px, calc(100% - 80px)); margin: 54px auto 110px; }
.chai-home { margin-top: 0; }
/* A whole photographic window, with a broad steam-tail field at its right. */
.chai-home-lead { display: flex; align-items: center; width: 100vw; min-height: 610px; margin: 0 calc(50% - 50vw) 74px; padding: 42px 0 58px; position: relative; isolation: isolate; }
.chai-window-oval { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; background: var(--chai-support) url('mug-at-the-window.webp') center 53% / cover no-repeat; }
.chai-steam-detail { position: absolute; width: 94px; height: 94px; top: 29px; left: calc(50% - 125px); border: 3px solid var(--chai-accent); border-radius: 50%; background: var(--chai-support) url('mug-at-the-window.webp') 73% 22% / 340%; box-shadow: 0 0 0 7px var(--chai-ground); }
.chai-home-voice { width: 596px; max-width: calc(100% - 80px); margin: 0 max(40px, calc((100vw - 1192px) / 2)) 0 auto; background: var(--chai-ground); border-radius: 76px 24px 24px 24px; border: 2px solid var(--chai-ink); border-left: 12px solid var(--chai-accent); padding: 35px 36px 30px; position: relative; box-shadow: 12px 14px 0 var(--chai-accent); }
.chai-home-voice::after { content: ''; position: absolute; width: 82px; height: 36px; bottom: -35px; right: 58px; background: var(--chai-ground); clip-path: polygon(0 0, 100% 0, 22% 100%); }
.chai-home-voice h1 { font-size: 43px; line-height: 1.24; }
.chai-title-piece { display: block; }
.chai-welcome { margin: 19px 0 0; font-size: 21px; line-height: 1.42; }
.chai-topic-doors { display: flex; gap: 30px; margin-top: 18px; flex-wrap: wrap; }
.chai-topic-doors a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 700; }
.chai-topic-doors svg { width: 22px; height: 22px; }
.chai-curl { position: absolute; width: 63px; height: 98px; right: max(40px, calc((100vw - 1250px) / 2)); bottom: -140px; pointer-events: none; }
.chai-first-continuation { max-width: 710px; margin: 0 auto 102px; padding-left: 26px; border-left: 5px solid var(--chai-accent); }
/* Unequal speech fields leave the continuations and their tails in open space. */
.chai-story-sequence { display: flex; flex-direction: column; gap: 94px; counter-reset: chai-step; }
.chai-chapter { counter-increment: chai-step; }
.chai-owner-field { padding: 37px 46px 39px; max-width: 910px; margin-left: 90px; border-radius: 24px; background: var(--chai-surface); position: relative; box-shadow: 11px 12px 0 var(--chai-support); border-top: 6px solid var(--chai-accent); }
.chai-owner-field::after { content: ''; position: absolute; width: 45px; height: 27px; bottom: -25px; left: 56px; background: var(--chai-surface); clip-path: polygon(0 0, 100% 0, 85% 100%); }
.chai-owner-field h2 { max-width: 720px; margin-bottom: 23px; }
.chai-owner-field p { max-width: 740px; }
.chai-chapter:nth-child(2n) .chai-owner-field { max-width: 820px; margin-left: auto; margin-right: 20px; box-shadow: -11px 12px 0 var(--chai-support); }
.chai-chapter:nth-child(2n) .chai-owner-field::after { left: auto; right: 56px; clip-path: polygon(0 0, 100% 0, 15% 100%); }
.chai-chapter:nth-child(3n) .chai-owner-field { max-width: 960px; margin-left: 78px; background: var(--chai-support); box-shadow: 11px 12px 0 var(--chai-accent); }
.chai-chapter:nth-child(3n) .chai-owner-field::after { background: var(--chai-support); left: 72%; }
.chai-chapter-marker { position: absolute; left: -92px; top: 13px; width: 72px; color: var(--chai-deep); text-align: center; }
.chai-chapter-marker::before { content: counter(chai-step, decimal-leading-zero); display: block; font-family: 'Comic Neue', sans-serif; font-size: 72px; line-height: 1.05; font-weight: 700; letter-spacing: -5px; }
.chai-chapter-marker .lucide, .chai-chapter-marker [data-lucide] { display: block; margin: 6px auto 0; width: 27px; height: 27px; }
.chai-continuation { max-width: 700px; margin: 48px auto 0; }
/* Inner openings use the original photograph as a small, offset window. */
.chai-article-opening { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px 64px; align-items: center; margin-bottom: 88px; }
.chai-article-heading { max-width: 720px; margin: 0; }
.chai-article-heading h1 { font-size: clamp(34px, 3vw, 44px); }
.chai-article-heading p { max-width: 670px; margin: 25px 0 0; }
.chai-story-portrait { width: 100%; margin: 0; position: relative; isolation: isolate; }
.chai-story-portrait::before { content: ''; position: absolute; width: 100%; height: 278px; top: 12px; left: -13px; border: 3px solid var(--chai-accent); border-radius: 50%; z-index: -1; }
.chai-story-portrait img { display: block; width: 100%; height: 278px; object-fit: cover; border-radius: 50%; background: var(--chai-support); }
.chai-story-portrait figcaption { margin: 25px 0 0 22px; max-width: 390px; padding-left: 16px; border-left: 4px solid var(--chai-accent); font-size: 17px; line-height: 1.4; }
.chai-article-heading:only-child { grid-column: 1 / -1; max-width: 960px; }
.chai-carrying { margin-top: 22px; }
.chai-carrying .chai-article-opening { grid-template-columns: minmax(0, 1fr) 270px; gap: 22px 50px; align-items: start; margin-bottom: 90px; }
.chai-carrying .chai-article-heading { grid-column: 1; grid-row: 1; margin: 0; }
.chai-carrying h1 { font-size: 40px; }
.chai-carrying .chai-story-portrait { grid-column: 2; grid-row: 1 / 3; margin-top: 16px; }
.chai-carrying .chai-story-portrait img, .chai-carrying .chai-story-portrait::before { height: 336px; }
.chai-carrying .chai-story-portrait figcaption { margin-left: 8px; }
/* Informational terms stay together; the exact hotlinked card sits on open ground. */
.chai-offer { grid-column: 1; grid-row: 2; width: 100%; margin: 0; }
.chai-offer-field { background: var(--chai-surface); border-radius: 24px; padding: 22px 28px 24px; position: relative; border-top: 6px solid var(--chai-accent); }
.chai-offer-field::after { content: ''; position: absolute; width: 68px; height: 26px; left: 84px; bottom: -24px; background: var(--chai-surface); clip-path: polygon(0 0, 100% 0, 65% 100%); }
.chai-offer h2 { font-family: 'Comic Neue', sans-serif; font-size: 26px; line-height: 1.2; }
.chai-offer-caption { margin: 3px 0 13px; font-size: 17px; line-height: 24px; }
.chai-offer-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.chai-offer-terms p { margin: 0; font-size: 19px; line-height: 27px; }
.chai-offer-terms strong { font-size: inherit; font-weight: 700; }
.chai-disclosure { font-size: 17px; line-height: 24px; margin: 13px 0 0; }
.chai-card-ground { display: flex; gap: 22px; align-items: center; width: 670px; max-width: calc(100% - 25px); margin: 40px 0 0 25px; }
.chai-card-ground img { width: 148px; height: 148px; object-fit: contain; flex: none; }
.chai-card-ground p { font-size: 17px; line-height: 24px; max-width: 390px; }
.chai-offer-faq { margin: 22px 0 0 25px; max-width: 800px; }
.chai-offer-faq h3 { font-size: 22px; margin-bottom: 9px; }
.chai-offer-faq p { font-size: 18px; line-height: 26px; }
.chai-reference-shelf { max-width: 800px; margin: 88px auto 0; counter-reset: chai-source; }
.chai-reference-shelf h2 { margin-bottom: 44px; }
.chai-reference-entry { counter-increment: chai-source; margin-bottom: 42px; padding-left: 30px; border-left: 4px solid var(--chai-accent); position: relative; }
.chai-reference-entry::before { content: counter(chai-source, decimal-leading-zero); position: absolute; left: -58px; top: 0; color: var(--chai-deep); font-size: 28px; line-height: 1.2; font-weight: 700; }
.chai-reference-entry h3 { font-size: 25px; }
.chai-reference-entry p { margin-top: 12px; }
.chai-reference-byline { font-size: 17px; line-height: 24px; }
.chai-footer { padding: 50px max(24px, calc((100vw - 1130px) / 2)) 38px; background: var(--chai-support); border-top: 12px solid var(--chai-accent); }
.chai-footer-note { font-size: 24px; line-height: 1.4; max-width: 710px; }
.chai-footer-nav { display: flex; gap: 10px 28px; flex-wrap: wrap; margin: 26px 0; }
.chai-footer-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 18px; }
.chai-copyright { font-size: 17px; }
.chai-not-found { min-height: 400px; max-width: 800px; }
.chai-not-found p { margin-top: 28px; }
@media (min-width: 1600px) {
  .chai-home-lead { min-height: 670px; }
  .chai-home-voice { width: 630px; }
  .chai-home-voice h1 { font-size: 46px; }
}
@media (max-width: 1080px) and (min-width: 641px) {
  .chai-page { width: calc(100% - 64px); }
  .chai-home-voice { width: 500px; margin-right: 32px; padding: 32px 28px; }
  .chai-home-voice h1 { font-size: 36px; }
  .chai-home-lead { min-height: 600px; }
  .chai-steam-detail { left: 12%; }
  .chai-article-opening { grid-template-columns: minmax(0, 1fr) 34%; gap: 38px; }
  .chai-article-heading h1 { font-size: 34px; }
  .chai-story-portrait img, .chai-story-portrait::before { height: 250px; }
  .chai-carrying .chai-article-opening { grid-template-columns: minmax(0, 1fr) 24%; gap: 22px 30px; }
  .chai-carrying h1 { font-size: 36px; }
  .chai-carrying .chai-story-portrait img, .chai-carrying .chai-story-portrait::before { height: 290px; }
  .chai-offer-terms { grid-template-columns: 1fr; gap: 12px; }
  .chai-owner-field, .chai-chapter:nth-child(3n) .chai-owner-field { margin-left: 72px; padding: 32px; }
  .chai-chapter:nth-child(2n) .chai-owner-field { margin-left: 72px; }
  .chai-chapter-marker { left: -77px; width: 62px; }
  .chai-chapter-marker::before { font-size: 61px; }
}
@media (max-width: 640px) {
  body { font-size: 18px; line-height: 1.5; }
  .chai-masthead { padding: 12px 20px 0; height: 104px; }
  .chai-name { gap: 12px; font-size: 23px; line-height: 32px; white-space: nowrap; }
  .chai-handle { width: 28px; height: 28px; }
  .chai-handle path { stroke-width: 7; }
  .chai-tangents { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin: 4px 0 0 40px; width: calc(100% - 40px); height: 56px; }
  .chai-tangents a { min-height: 44px; height: 44px; justify-content: center; font-size: 18px; gap: 6px; }
  .chai-tangents a::before { display: none; }
  .chai-tangents .lucide, .chai-tangents [data-lucide] { width: 17px; height: 17px; }
  .chai-tangents a:nth-child(2) { transform: translateY(6px); }
  .chai-tangents a:nth-child(3) { transform: translateY(12px); }
  .chai-page { width: calc(100% - 40px); margin: 24px auto 70px; }
  h1 { font-size: 32px; line-height: 1.26; }
  h2 { font-size: 28px; }
  .chai-home { margin-top: 0; }
  .chai-home-lead { display: flex; flex-direction: column; align-items: center; width: 100vw; min-height: 0; margin: 0 calc(50% - 50vw) 42px; padding: 20px 0 0; gap: 26px; }
  .chai-home-voice { order: 1; width: calc(100% - 40px); max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--chai-ground); }
  .chai-home-voice h1 { font-size: 32px; line-height: 1.26; margin: 0; padding-bottom: 17px; border-bottom: 6px solid var(--chai-accent); }
  .chai-welcome { padding: 17px 19px 18px; border-radius: 24px; background: var(--chai-surface); font-size: 18px; line-height: 25px; margin: 20px 0 0; position: relative; }
  .chai-welcome::after { content: ''; position: absolute; width: 29px; height: 16px; left: 36px; bottom: -14px; background: var(--chai-surface); clip-path: polygon(0 0,100% 0,75% 100%); }
  .chai-topic-doors { margin: 22px 0 0; gap: 18px; flex-wrap: nowrap; justify-content: space-between; }
  .chai-topic-doors a { font-size: 18px; gap: 7px; }
  .chai-window-oval { order: 2; position: relative; inset: auto; z-index: auto; width: calc(100% - 40px); height: 108px; background-position: center 55%; border-radius: 50%; box-shadow: 0 6px 0 var(--chai-accent); }
  .chai-steam-detail, .chai-curl, .chai-home-voice::after { display: none; }
  .chai-first-continuation { margin: 0 8px 60px; padding-left: 18px; border-width: 4px; }
  .chai-story-sequence { gap: 56px; }
  .chai-owner-field, .chai-chapter:nth-child(2n) .chai-owner-field, .chai-chapter:nth-child(3n) .chai-owner-field { margin: 0 5px 0 0; padding: 25px 22px 29px; max-width: 100%; box-shadow: 5px 7px 0 var(--chai-support); }
  .chai-chapter:nth-child(3n) .chai-owner-field { box-shadow: 5px 7px 0 var(--chai-accent); }
  .chai-owner-field::after { height: 18px; bottom: -16px; width: 32px; }
  .chai-owner-field h2 { margin-bottom: 18px; }
  .chai-chapter-marker { position: static; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 17px; text-align: left; }
  .chai-chapter-marker::before { font-size: 48px; line-height: 1; letter-spacing: -2px; }
  .chai-chapter-marker .lucide, .chai-chapter-marker [data-lucide] { margin: 0 2px 0 0; width: 27px; height: 27px; }
  .chai-continuation { margin: 35px 8px 0; }
  .chai-article-opening, .chai-carrying .chai-article-opening { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin-bottom: 54px; }
  .chai-article-heading, .chai-carrying .chai-article-heading { margin: 0; }
  .chai-article-heading h1, .chai-carrying h1 { font-size: 32px; line-height: 1.26; }
  .chai-article-heading p { margin-top: 20px; }
  .chai-story-portrait, .chai-carrying .chai-story-portrait { width: calc(100% - 24px); margin: 35px auto 0; }
  .chai-story-portrait img, .chai-story-portrait::before, .chai-carrying .chai-story-portrait img, .chai-carrying .chai-story-portrait::before { height: 184px; }
  .chai-story-portrait::before { top: 8px; left: -8px; border-width: 2px; }
  .chai-story-portrait figcaption, .chai-carrying .chai-story-portrait figcaption { font-size: 16px; line-height: 23px; margin: 19px 0 0; padding-left: 13px; }
  .chai-carrying { margin-top: 11px; }
  .chai-carrying .chai-article-heading { margin-bottom: 17px; }
  .chai-offer { margin: 0; }
  .chai-offer-field { border-radius: 24px; padding: 16px 19px 18px; border-top-width: 5px; }
  .chai-offer h2 { font-size: 23px; line-height: 27px; }
  .chai-offer-caption { font-size: 16px; line-height: 22px; margin: 3px 0 12px; }
  .chai-offer-terms { display: block; }
  .chai-offer-terms p { font-size: 17px; line-height: 23px; margin: 0 0 9px; }
  .chai-disclosure { font-size: 16px; line-height: 22px; margin-top: 12px; }
  .chai-offer-field::after { width: 44px; height: 16px; bottom: -14px; left: 53px; }
  .chai-card-ground { width: 100%; max-width: 100%; margin: 26px 0 0; gap: 16px; }
  .chai-card-ground img { width: 112px; height: 112px; }
  .chai-card-ground p { font-size: 16px; line-height: 22px; }
  .chai-offer-faq { margin: 18px 4px 0; }
  .chai-offer-faq h3 { font-size: 21px; }
  .chai-offer-faq p { font-size: 17px; line-height: 25px; }
  .chai-reference-shelf { margin-top: 54px; }
  .chai-reference-shelf h2 { font-size: 28px; }
  .chai-reference-entry { padding-left: 16px; }
  .chai-reference-entry::before { position: static; display: block; margin-bottom: 12px; font-size: 24px; }
  .chai-reference-entry h3 { font-size: 23px; overflow-wrap: anywhere; }
  .chai-footer { padding: 34px 24px; }
  .chai-footer-note { font-size: 21px; }
  .chai-footer-nav { gap: 4px 24px; }
}
@media (max-width: 365px) {
  .chai-name { font-size: 20px; }
  .chai-home-voice h1 { font-size: 29px; }
  .chai-topic-doors { gap: 10px; }
  .chai-topic-doors a { font-size: 16px; }
  .chai-tangents a { gap: 4px; font-size: 17px; }
  .chai-tangents .lucide, .chai-tangents [data-lucide] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
