/* Iansui Regular: the Chinese book-title font used in the supplied reference PDFs. */
@font-face {
  font-family: 'Iansui';
  src: url('fonts/iansui/Iansui-BookTitles.woff2?v=all-worked-books') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.book-title-zh {
  font-family: 'Iansui', 'Noto Serif TC', serif;
  font-weight: 400;
  font-synthesis: none;
}
.example {
  --example-padding: 1.5rem;
  --example-border: 2px;
  padding: var(--example-padding);
  border-width: var(--example-border);
}
.example-heading {
  display: grid;
  /* The cover is one quarter of the whole card, including its padding and border. */
  grid-template-columns: minmax(0, 1fr) calc(25% + var(--example-padding) / 2 + var(--example-border) / 2);
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.example .example-heading h3 {
  min-width: 0;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}
.example h3 a { display: block; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.example-book-title { text-decoration: underline; text-decoration-color: #a9c5ee; text-underline-offset: .2em; }
.example h3 a:hover, .example h3 a:focus-visible { color: #174eaf; }
.example h3 a:hover .example-book-title, .example h3 a:focus-visible .example-book-title { text-decoration-color: currentColor; }
.example-author {
  display: block;
  margin-top: .7em;
  color: #526077;
  font-family: var(--tq-reading-font);
  font-size: 50%;
  font-weight: 400;
  line-height: 1.5;
}
.example-cover { display: block; min-width: 0; border-radius: 3px; }
.example-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 3px 9px rgb(24 43 73 / 16%);
}
.example h3 a:focus-visible, .example-cover:focus-visible { outline: 3px solid #2563eb; outline-offset: 5px; }
.example .sample-language { color: #64748b; font-size: .86rem; margin-bottom: .5rem; }
.language-collection-flag { display: inline-block; margin-left: .35em; font-size: 1.15em; line-height: 1; vertical-align: middle; }
.partner-info .study-highlight {
  background-color: rgb(255, 254, 204);
  color: inherit;
  padding: 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.section.reading-together { max-width: 760px; padding-top: 2rem; padding-bottom: 2rem; }
.hero-ink-copy h1 > span {
  font-family: 'New Tegomin', Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
}
.hero-quick-links, #read-together-heading {
  font-family: 'Della Respira', var(--tq-reading-font);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
}
#read-together-heading .reading-joiner { font-size: .6em; }
.hero-quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.5rem; }
.hero-quick-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: .55rem .65rem;
  border: 1.5px solid #2563eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 0 rgb(37 99 235 / 15%);
  font-weight: 400;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}
.hero-quick-links a:hover { background: #e3fdff; border-color: #174eaf; }
.hero-quick-links a:focus-visible { outline: 3px solid #1919ff; outline-offset: 4px; }
.hero-quick-links a:active { box-shadow: none; }
.hero-quick-links .nav-owner-name { color: #2d2d2d; }
.nav-action { white-space: nowrap; }
.nav-action-t { position: relative; display: inline-block; }
.nav-action-spark {
  position: absolute;
  width: .46em;
  /* Four times the visible height of Della Respira's lowercase t (~.572em). */
  height: 2.29em;
  left: 50%;
  top: calc(50% + .1em);
  transform: translate(-50%, -50%);
  fill: #b8790c;
  pointer-events: none;
}
.hero-language-globe {
  position: relative;
  width: min(100%, 440px);
  margin: calc(1.5rem + 51px) auto 0;
  padding-block: 1.3rem 1.8rem;
}
/* The image includes the outward flagpoles, so its full width keeps the orb legible. */
.hero-language-globe-image {
  display: block;
  width: 88%;
  height: auto;
  margin-inline: auto;
  /* Keep the ROC cloth just below the centered label at every component width. */
  margin-top: -2.2%;
  /* On narrow screens, keep the pole cap just outside the first Chinese glyph. */
  transform: translateX(min(0px, calc(11% - 2.4rem))) translateY(25px);
}
.globe-language { position: absolute; color: #244e68; font-size: clamp(.88rem, 1.3vw, 1rem); font-weight: 600; line-height: 1.4; white-space: nowrap; text-align: center; }
/* Each label follows its flag's uneven outward direction rather than a uniform ring. */
.globe-language-zh { left: 50%; top: 0; transform: translateX(-50%); font-weight: 400; font-size: 1.1rem; }
.globe-language-de { left: 0; top: calc(.6rem + 6.5%); }
.globe-language-it { right: 0; top: calc(.6rem + 8%); }
.globe-language-en { left: 0; bottom: 0; }
.globe-language-fr { right: 0; bottom: 0; }
.globe-language-de, .globe-language-it, .globe-language-en, .globe-language-fr { transform: translateY(25px); }
.hero-language-globe { scroll-margin-top: 8rem; }
a.globe-language {
  z-index: 1;
  border-radius: 3px;
  text-decoration: underline;
  text-decoration-color: #92b6c8;
  text-underline-offset: .24em;
  text-decoration-thickness: 1px;
}
/* Enlarge the touch target without moving any language label or flag. */
a.globe-language::before { content: ''; position: absolute; inset: -10px -9px; min-height: 44px; }
a.globe-language:hover { color: #174eaf; text-decoration-color: currentColor; }
a.globe-language:focus-visible { outline: 3px solid #2563eb; outline-offset: 6px; }
.hero--with-showcase .tq-showcase { align-self: start; margin-top: .4rem; }
.tq-cover-controls, .tq-cover-count, .tq-cover-browse {
  font-family: var(--tq-interface-font);
}
.contact-banner,
.contact-banner > span,
.contact-banner .contact-btn {
  font-family: 'Sorts Mill Goudy', var(--tq-reading-font);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
}
/* A little ink-painting banner; the right-hand strip keeps art off the words. */
.hero-ink-banner {
  --bird-size: 68px;
  --plum-space: clamp(80px, 16%, 104px);
  position: relative;
  isolation: isolate;
  width: min(100%, 660px);
  margin-inline: auto;
  padding-top: 94px;
  padding-bottom: 2.8rem;
}
.hero-ink-copy { position: relative; z-index: 1; padding-right: var(--plum-space); }
.hero--with-showcase .hero-ink-copy h1 { margin-bottom: .8rem; }
.hero-ink-copy h1 > span { display: block; }
.hero-ink-copy h1 em { display: inline-block; white-space: nowrap; }
.hero-ink-copy h1 .hero-for-real {
  font-family: 'Emilys Candy', var(--tq-reading-font);
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
}
.hero-ink-copy .hero-title-highlight,
.textquilting-wordmark {
  /* Unique broad brush marks; uniform scaling keeps their 23-degree NNE lean. */
  background: transparent url('assets/textquilting-nne-oil-strokes.svg?v=organic-brush-3') center / auto 100% no-repeat;
  padding: .04em .12em .06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-ink-copy h1 .hero-for-real.hero-title-highlight {
  color: rgb(25, 25, 255);
  background-position: 17% center;
}
.hero--with-showcase .hero-ink-copy .tagline {
  /* Center the full line beneath the title, using the open space below the quilt. */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  padding-top: 18px;
  text-wrap: nowrap;
}
.tagline-message, .tagline-method { display: inline-block; white-space: nowrap; }
.hero-textquilting,
.textquilting-wordmark {
  display: inline-block;
  color: rgb(25, 25, 255);
  font-family: 'New Tegomin', var(--tq-reading-font);
  font-size: 1.16em;
  line-height: 1.55;
  font-style: normal;
  font-weight: 400;
  font-synthesis: none;
}
.hero-plum-art {
  position: absolute;
  z-index: 0;
  top: 29%;
  right: 0;
  width: var(--plum-space);
  height: 61%;
  object-fit: contain;
  object-position: top center;
  opacity: 0;
  pointer-events: none;
}
.hero-plum-art.is-loaded { opacity: 1; }
.hero-hummingbird {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8%;
  display: block;
  width: var(--bird-size);
  line-height: 0;
  pointer-events: none;
  animation: tq-bird-flight 23s ease-in-out infinite;
  animation-play-state: paused;
}
.hero-hummingbird img { display: block; width: 100%; height: auto; opacity: 0; }
.hero-hummingbird img.is-loaded { opacity: 1; }
.hero-ink-banner.is-bird-flying .hero-hummingbird { animation-play-state: running; }
.hero-ink-banner.is-page-hidden .hero-hummingbird { animation-play-state: paused; }
.hero-motion-toggle {
  position: absolute;
  bottom: 0;
  right: 0;
  min-height: 44px;
  padding: .3rem .5rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5a6c75;
  font: inherit;
  font-family: var(--tq-interface-font);
  font-size: .72rem;
  cursor: pointer;
}
.hero-motion-toggle:hover { color: #174eaf; background: #edf4f8; }
.hero-motion-toggle:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.hero-motion-toggle[hidden] { display: none; }
@keyframes tq-bird-flight {
  0%, 100% { left: 8%; top: 8px; transform: rotate(-6deg) scaleX(1); }
  20% { left: calc(100% - var(--bird-size) - 8px); top: 0; transform: rotate(3deg) scaleX(1); }
  33% { left: calc(100% - var(--bird-size) - 8px); top: 35%; transform: rotate(10deg) scaleX(1); }
  40% { left: calc(100% - var(--bird-size) - 8px); top: 30%; transform: rotate(-2deg) scaleX(-1); }
  50% { left: calc(100% - var(--bird-size) - 8px); top: 0; transform: rotate(-5deg) scaleX(-1); }
  64% { left: 45%; top: 3px; transform: rotate(6deg) scaleX(-1); }
  82% { left: 8px; top: 12px; transform: rotate(-4deg) scaleX(-1); }
  90% { left: 8px; top: 10px; transform: rotate(-4deg) scaleX(1); }
}
@media (min-width: 851px) and (max-width: 1000px) {
  .hero.hero--with-showcase { grid-template-columns: 170px minmax(0, 1fr) 220px; gap: 20px; }
}
@media (max-width: 600px) {
  .hero--with-showcase .hero-ink-copy .tagline {
    width: auto;
    left: auto;
    transform: none;
    margin-right: calc(-1 * var(--plum-space));
    text-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .hero-ink-banner { --bird-size: 56px; --plum-space: 64px; padding-top: 84px; }
  .hero--with-showcase .hero-ink-copy h1 { font-size: clamp(1.95rem, 7vw, 2.8rem); }
  .hero-plum-art { top: 34%; height: 54%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-hummingbird { animation: none; left: calc(100% - var(--bird-size)); top: 12px; }
}
#showcase, #examples, #columns { scroll-margin-top: 7rem; }
.full-library h3 a { color: inherit; }
.examples-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.why-grid, .techniques { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
@media (max-width: 480px) {
  .cta-box, .why-it-works { padding: 1.25rem; }
  .big-contact-btn { max-width: 100%; padding: .8rem .9rem; font-size: .9rem; overflow-wrap: anywhere; }
}
