/* Shared reading and spacing roles. Both painted themes use the same geometry. */
:root {
  --title-size: 3.5rem;
  --section-size: 3rem;
  --item-size: 1.875rem;
  --body-size: 1rem;
  --caption-size: .8125rem;
  --section-space: 4.5rem;
  --group-space: 1.5rem;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
body { font-size: var(--body-size); line-height: 1.6; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-kerning: normal; letter-spacing: -.02em; }
h1 { font-size: var(--title-size); line-height: 1.08; margin-bottom: 24px; }
h2 { font-size: var(--section-size); line-height: 1.1; margin-bottom: 24px; }
h3 { font-size: var(--item-size); line-height: 1.15; margin-bottom: 16px; }
.section { padding-block: var(--section-space); }
.section-topless { padding-bottom: var(--section-space); }
.section-intro { gap: 48px; margin-bottom: 24px; }
.section-intro h2, .content-split h2, .faq h2, .app-promo h2, .guide h2,
.price-layout h2, #how h2 { font-size: var(--section-size); }
.section-intro > p { font-size: 16px; max-width: 44ch; }
.site-header { height: 96px; }
.brand small { text-transform: none; letter-spacing: .02em; font-size: 10px; }
.site-header .brand small { font-size: 10px; }
.hero { height: 560px; min-height: 0; padding-block: 24px 40px; }
.hero h1 { font-size: clamp(56px, 5vw, 72px); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 24px; }
.hero p { font-size: 18px; line-height: 1.6; max-width: 52ch; margin-bottom: 24px; }
.hero-art { width: 50%; top: 8px; right: 0; }
.hero-art img { height: 520px; }
.hero::after { display: none; }
.hero .button { min-height: 48px; padding: 12px 24px; font-size: 16px; }
.hero .text-link { font-size: 15px; }
.promise-strip { font-size: 14px; padding-block: 16px; line-height: 1.5; }
.button { min-height: 48px; padding: 12px 24px; font-size: 15px; }
.button:hover { transform: none; }
.button:active { transform: scale(.98); }
.button, .text-link svg, .course-image img { transition-timing-function: var(--ease-out); }
.text-link { font-size: 15px; }
.course-grid, .journal-grid { gap: 24px; }
.course-image { margin-bottom: 20px; border-radius: 16px; }
.course-image img { aspect-ratio: 1.4; }
.course-image:hover img { transform: none; }
.course h3, .journal-card h3 { font-size: var(--item-size); line-height: 1.15; margin-bottom: 12px; }
.course > p:not(.meta) { font-size: 16px; line-height: 1.6; min-height: 0; margin-bottom: 12px; }
.course .meta, .journal-card .meta, .meta { font-size: var(--caption-size); line-height: 1.5; margin-bottom: 16px; }
.section-foot { margin-top: 24px; padding-top: 16px; font-size: 13px; }
#how { border-top: 1px solid var(--line); } /* taste-skill-ignore: owner requested clear section boundaries */
.steps { list-style: none; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 32px 0 0; }
.steps h3 { font-size: var(--item-size); }
.steps p, #how .steps p { font-size: 16px; line-height: 1.6; max-width: 42ch; }
.price-band { padding-block: 48px; }
.price-layout { gap: 40px; }
.price-item h3 { font-size: var(--item-size); margin-bottom: 20px; }
.price { font-size: 48px; margin-bottom: 16px; font-variant-numeric: lining-nums tabular-nums; }
.price span, .price-item > p:not(.price) { font-size: 15px; }
.price-caption { margin-top: 24px; }
.price-caption p, .price-caption a { font-size: 13px; }
.app-promo { gap: 48px; }
.app-art { height: 360px; border-radius: 16px; }
.app-art .theme-picture, .app-art img { height: 100%; }
.app-art img { object-fit: contain; aspect-ratio: auto; }
.app-promo .lead { font-size: 17px; }
.faq { padding-top: 48px; border-top: 1px solid var(--line); gap: 48px; } /* taste-skill-ignore: semantic FAQ boundary */
details { padding: 0; }
summary { font-size: 16px; min-height: 56px; padding-block: 12px; }
details p { font-size: 16px; line-height: 1.6; margin: 4px 24px 20px 0; }
.cta-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; padding-block: 48px; }
.cta h2 { font-size: var(--section-size); line-height: 1.1; }
.cta p { font-size: 16px; line-height: 1.6; max-width: 56ch; }
.cta .button { font-size: 15px; }
.cta-flower { display: none; }
.footer { padding-top: 48px; }
.footer-top { gap: 32px; }
.footer-top h3 { font-size: 14px; }
.footer-top > div > a:not(.brand), .footer-top > div > p { font-size: 14px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; font-size: 13px; }
.breadcrumbs { padding-top: 20px; font-size: 13px; }
.quote-credit small, caption, thead th { font-size: 13px; }
.note { font-size: 13px !important; }
.page-head { padding-block: 32px 40px; }
.page-head h1, .course-detail h1, .article h1 { font-size: var(--title-size); line-height: 1.1; }
.page-head .lead, .lead, .course-detail .lead { font-size: 18px; line-height: 1.6; }
.page-head.with-image { padding-block: 24px 40px; gap: 48px; }
.page-head.with-image > .theme-picture { max-height: 340px; }
.content-split { gap: 64px; }
.content-split p:not(.lead) { font-size: 16px; }
.quote-band { padding-block: 56px; }
blockquote { font-size: 32px; line-height: 1.35; letter-spacing: -.01em; max-width: 52ch; }
.quote-credit small { font-size: 13px; }
.course-detail { padding-block: 32px 48px; gap: 48px; }
.detail-art img { max-height: 400px; object-fit: contain; }
.lesson-price { font-size: 36px; margin-block: 24px; font-variant-numeric: lining-nums tabular-nums; }
.lesson-price span { font-size: 14px; }
.learning-list li { font-size: 16px; padding-block: 16px; }
.learning-list span { font-size: 24px; }
td, th { padding-block: 16px; font-size: 16px; }
thead th, caption { font-size: 13px; }
.note { font-size: 13px !important; line-height: 1.65 !important; margin-top: 20px; }
.info-list > div { padding-block: 20px; font-size: 16px; }
.info-list dt { font-size: 14px; }
.contact-grid { gap: 64px; }
.contact-grid h2 { font-size: var(--section-size); }
.big-contact { font-size: 40px; }
.big-contact.mail { font-size: 24px; }
.contact-address p { font-size: 18px; }
.guide { margin-top: 32px; }
.instruction-list > li { padding-block: 24px; }
.instruction-list h3 { font-size: var(--item-size); }
.instruction-list p { font-size: 16px; }
.article { padding-block: 32px 72px; }
.article-image { margin-block: 32px; }
.article-image img { max-height: 320px; object-fit: contain; }
.prose, .article .prose { max-width: 68ch; }
.prose h2 { font-size: 32px; margin-block: 32px 16px; }
.prose p { font-size: 16px; line-height: 1.7; }
.legal p, .legal div { font-size: 16px !important; line-height: 1.7 !important; }
.legal-wrap { padding-bottom: 72px; }
.document-note { padding: 24px; font-size: 15px; margin-bottom: 32px; }
.document-note p { font-size: 13px; }
dialog { max-width: 592px; padding: 36px 32px 28px; }
dialog h2 { font-size: 36px; line-height: 1.1; margin-bottom: 20px; }
dialog p { font-size: 16px; }
.dialog-close { width: 44px; height: 44px; }
label { font-size: 14px; }
input:not([type=checkbox]), select, textarea { font-size: 16px; min-height: 48px; padding: 12px; caret-color: var(--blue); }
.check { font-size: 13px; line-height: 1.6; }
.form-note { font-size: 13px; line-height: 1.6; }
#enroll-form > .button { font-size: 15px; }
.dialog-alternatives { font-size: 13px; }
.dialog-alternatives a { min-height: 44px; }
.price, td, .lesson-price, .meta { font-variant-numeric: tabular-nums; }
html { scrollbar-color: var(--muted) var(--page); }
a { text-underline-offset: .18em; }
.hero-art, .cta-flower img { animation: none; }
.hero-copy { animation: appear .5s var(--ease-out) both; }
body.motion-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
@media(max-width: 1200px) {
  .hero { height: 520px; }
  .hero h1 { font-size: 56px; }
  .hero-art img { height: 480px; }
  .hero-art { width: 100%; margin: 0; top: auto; }
  .hero p { font-size: 17px; }
}
@media(max-width: 900px) {
  :root { --title-size: 3rem; --section-size: 2.5rem; --item-size: 1.75rem; --section-space: 3.5rem; }
  .site-header { height: 84px; }
  .mobile-nav { top: 76px; }
  .menu-toggle { width: 44px; height: 44px; }
  .hero { height: 480px; padding-block: 24px 32px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 16px; }
  .hero-art img { height: 420px; }
  .hero .button { font-size: 14px; }
  .hero .actions { gap: 16px; }
  .text-link { min-height: 44px; }
  .price-layout > h2 br { display: initial; }
  .cta-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media(max-width: 640px) {
  :root { --title-size: 2.25rem; --section-size: 2rem; --item-size: 1.625rem; --section-space: 3rem; }
  .wrap { width: calc(100% - 32px); }
  .site-header { height: 80px; gap: 8px; }
  .site-header .brand img { width: 40px; height: 40px; }
  .site-header .brand b { font-size: 26px; }
  .site-header .brand small, .brand small { font-size: 8px; line-height: 1.4; letter-spacing: .02em; }
  .header-actions { gap: 8px; }
  .mobile-nav { top: 72px; padding: 16px; }
  .mobile-nav a { padding: 10px 8px; min-height: 44px; }
  .hero { height: auto; min-height: 0; padding-block: 20px 24px; gap: 16px; }
  .hero h1 { font-size: 36px; margin-bottom: 16px; line-height: 1.06; }
  .hero p { font-size: 16px; line-height: 1.55; max-width: 100%; margin-bottom: 20px; }
  .hero .button { font-size: 14px; min-height: 48px; padding: 12px 20px; }
  .hero .text-link { font-size: 14px; }
  .hero .actions { gap: 16px; }
  .hero-art { position: relative; width: 100%; max-width: 232px; top: auto; right: auto; margin: 0 auto; }
  .hero-art img { height: 232px; }
  .promise-strip { padding-block: 12px; gap: 8px; font-size: 13px; }
  .promise-strip span { padding: 0 4px; }
  .promise-strip span + span { padding-left: 8px; }
  .section-intro { margin-bottom: 24px; }
  .section-intro h2 { margin-bottom: 16px; }
  .section-intro > p { font-size: 16px; }
  .tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 24px; }
  .tabs button { min-height: 48px; padding: 10px 12px; font-size: 13px; line-height: 1.4; border-radius: 12px; }
  .course-grid, .journal-grid { gap: 24px; }
  .course, .journal-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); } /* taste-skill-ignore: semantic boundaries in a compact list */
  .course:last-child, .journal-card:last-child { border-bottom: 0; padding-bottom: 0; }
  .course .course-image, .journal-card .course-image { grid-column: 1; grid-row: 1 / span 2; height: 104px; margin: 0; border-radius: 12px; }
  .course-image .theme-picture, .course-image img { height: 100%; }
  .course-image img { aspect-ratio: 1; object-fit: contain; }
  .course h3, .journal-card h3 { grid-column: 2; margin: 0; font-size: var(--item-size); line-height: 1.1; }
  .course .meta { grid-column: 2; margin: 0; font-size: 13px; }
  .journal-card .meta { grid-column: 2; grid-row: 1; font-size: 13px; margin: 0; }
  .journal-card h3 { grid-row: 1 / span 2; align-self: center; }
  .course > p:not(.meta), .journal-card > p:not(.meta) { grid-column: 1 / -1; font-size: 16px; line-height: 1.55; margin: 4px 0 0; min-height: 0; }
  .course > .text-link, .journal-card > .text-link { grid-column: 1 / -1; justify-self: start; font-size: 14px; }
  .section-foot { margin-top: 24px; padding-top: 16px; font-size: 13px; gap: 12px; }
  .section-foot .text-link { font-size: 14px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 24px; }
  .steps h3 { margin-bottom: 12px; }
  .steps p, #how .steps p { font-size: 16px; }
  .price-band { padding-block: 40px; }
  .price-layout > h2 { margin-bottom: 24px; }
  .price-item { margin-top: 24px; padding-top: 16px; }
  .price-item h3 { margin-bottom: 16px; }
  .price { font-size: 42px; }
  .price span, .price-item > p:not(.price) { font-size: 15px; }
  .price-caption { margin-top: 24px; gap: 12px; }
  .price-caption p, .price-caption .text-link { font-size: 13px; }
  .app-promo { gap: 24px; }
  .app-art { height: 200px; }
  .app-promo .lead { font-size: 16px; }
  .app-promo .button { font-size: 14px; min-height: 48px; }
  .app-promo .actions { gap: 12px; }
  .faq { padding-top: 40px; gap: 8px; }
  summary { font-size: 16px; min-height: 56px; padding-block: 12px; }
  details p { font-size: 16px; margin-right: 0; }
  .cta-layout { grid-template-columns: minmax(0, 1fr); padding-block: 36px; gap: 20px; }
  .cta h2 { font-size: 34px; margin: 0; }
  .cta p { font-size: 16px; margin-bottom: 20px; }
  .cta .button { font-size: 14px; min-height: 48px; }
  .footer { padding-top: 40px; }
  .footer-top { gap: 24px 16px; }
  .footer-top h3 { font-size: 14px; margin-bottom: 12px; }
  .footer-top > div > a:not(.brand) { display: flex; align-items: center; min-height: 44px; margin-bottom: 0; font-size: 14px; }
  .footer-top > div > p { font-size: 14px; margin-top: 16px; }
  .footer-brand b { font-size: 28px; }
  .footer-brand img { width: 48px; height: 48px; }
  .footer-contact { padding-top: 16px; }
  .footer-bottom { margin-top: 24px; font-size: 13px; }
  .footer-bottom > div { gap: 8px 16px; margin-block: 16px; }
  .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .breadcrumbs { padding-top: 16px; font-size: 13px; }
  .page-head { padding-block: 24px 32px; }
  .page-head h1, .course-detail h1, .article h1 { font-size: var(--title-size); margin-bottom: 20px; }
  .page-head .lead, .lead, .course-detail .lead { font-size: 16px; }
  .page-head.with-image { padding-block: 24px 32px; gap: 24px; }
  .page-head.with-image > .theme-picture { max-width: 232px; max-height: 232px; }
  .page-head.with-image > .theme-picture img { max-height: 232px; }
  .content-split { gap: 8px; }
  .content-split p:not(.lead) { font-size: 16px; }
  .quote-band { padding-block: 40px; }
  blockquote { font-size: 24px; line-height: 1.4; }
  .quote-credit { gap: 16px; margin-top: 24px; font-size: 15px; }
  .course-detail { padding-block: 24px 32px; gap: 24px; }
  .detail-art { max-width: 240px; }
  .detail-art img { height: 220px; }
  .lesson-price { font-size: 34px; margin-block: 20px; }
  .lesson-price span { display: block; font-size: 14px; margin-top: 8px; }
  .learning-list li { font-size: 16px; padding-block: 16px; gap: 16px; }
  .pale { padding-inline: 20px; }
  .table-scroll { overflow: visible; margin-top: 24px; }
  table, tbody, caption { display: block; }
  thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
  tbody th { grid-column: 1 / -1; font-size: 16px; }
  tbody th, tbody td { display: block; border: 0; padding: 0; font-size: 16px; }
  tbody td:last-child { text-align: right; }
  .info-list > div { padding-block: 16px; }
  .info-list dt { font-size: 14px; margin-bottom: 8px; }
  .info-list dd { font-size: 16px; }
  .contact-grid { gap: 32px; }
  .big-contact { font-size: 32px; }
  .big-contact.mail { font-size: 17px; overflow-wrap: anywhere; }
  .contact-address p { font-size: 16px; }
  .guide { margin-top: 24px; }
  .instruction-list > li { padding: 20px 0 20px 40px; }
  .instruction-list > li::before { font-size: 24px; top: 16px; }
  .instruction-list h3 { font-size: var(--item-size); }
  .instruction-list p { font-size: 16px; }
  .article { padding-block: 24px 48px; }
  .article .lead { font-size: 16px; }
  .article-image { margin-block: 24px; }
  .article-image img { max-height: 200px; }
  .prose h2 { font-size: 28px; margin-block: 28px 16px; }
  .prose p { font-size: 16px; }
  .article-source { font-size: 13px; }
  .document-note { padding: 20px; font-size: 15px; margin-bottom: 24px; }
  .document-note p { font-size: 13px; }
  .legal p, .legal div { font-size: 16px !important; }
  .legal-wrap { padding-bottom: 48px; }
  dialog { padding: 36px 20px 24px; }
  dialog h2 { font-size: 30px; }
  dialog p { font-size: 16px; }
  label { font-size: 13px; margin-bottom: 16px; }
  input:not([type=checkbox]), select, textarea { font-size: 16px; }
  .check, .form-note { font-size: 13px !important; }
  .dialog-alternatives { font-size: 13px; gap: 8px; }
  #enroll-form > .button { font-size: 14px; }
  .certificate span { font-size: 13px; }
}
@media(max-width: 359px) {
  .site-header .brand img { width: 36px; height: 36px; }
  .site-header .brand b { font-size: 24px; }
  .site-header .brand small { font-size: 8px; }
  .site-header .header-actions { gap: 8px; }
  .hero h1 { font-size: 34px; }
  .hero-art { max-width: 208px; }
  .hero-art img { height: 208px; }
  .hero .actions { gap: 8px 12px; }
  .hero .button { padding-inline: 16px; }
  .course, .journal-card { grid-template-columns: 88px minmax(0, 1fr); gap: 8px 12px; }
  .course .course-image, .journal-card .course-image { height: 88px; }
}
