/*
 * LearnItalianOra — whole-site responsive density calibration
 * WPVibe draft candidate 2026-11-08. Presentation only.
 * Preserve language-learning article readability, focus rings, 44px touch targets,
 * student bookings, forms and contract/withdrawal behavior.
 */
:root {
  --li-container: 1120px;
  --li-gutter: 24px;
  --li-space-section: 40px;
  --li-space-mobile-section: 28px;
  --li-header-top-height: 60px;
  --li-header-nav-height: 46px;
}
body {
  font-size: 16px;
  line-height: 1.5;
}
.container { max-width: 1120px; }
.section-shell { padding-block: clamp(1.7rem, 3.3vw, 2.5rem); }
.content-area { padding-block: clamp(1.2rem, 2.2vw, 2rem) clamp(2rem, 4vw, 3rem); }
.breadcrumbs { font-size: .85rem; margin-bottom: 1.1rem; line-height: 1.4; }
.page-header, .article-header { margin-bottom: 1.25rem; }
.page-header h1, .article-header h1 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.16;
  letter-spacing: -.025em;
}
.article-header h1 { max-width: 24ch; }
.article-content { font-size: 1rem; line-height: 1.58; }
.article-content .article-lead { font-size: 1.075rem; line-height: 1.55; }
.article-content h2, .section-shell h2 {
  font-size: clamp(1.45rem, 2.35vw, 1.9rem);
  line-height: 1.25;
  margin-block: 1.7rem .65rem;
}
.section-shell h2 { margin-block: 0 .7rem; }
.article-content h3 { font-size: clamp(1.2rem, 1.75vw, 1.45rem); margin-block: 1.35rem .5rem; }
.section-shell h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.article-content p, .article-content li { overflow-wrap: break-word; }
.hero { height: min(420px, 65vw); min-height: 280px; }
.hero-copy { padding-block: 1.5rem; }
.hero-copy h1 { font-size: clamp(2rem, 3.2vw, 3.1rem); line-height: 1.12; }
.hero-copy .hero-intro { font-size: clamp(1rem, 1.2vw, 1.075rem); }
.hero-highlights .highlight-grid { min-height: 92px; }
.hero-highlights .highlight-item { padding-block: 1rem; }
.feature-card, .exercise-card, .empty-state { padding: clamp(.9rem, 1.7vw, 1.2rem); }
.card-title { font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.topic-card { min-height: 4.8rem; padding: .8rem .95rem; font-size: .98rem; }
.free-content-areas .topic-card { min-height: 70px; padding: .8rem .85rem; font-size: .98rem; }
.highlight-title { font-size: 1.02rem; }
.highlight-item p { font-size: .95rem; }
.hub-header { margin-bottom: 1.7rem; }
.hub-header h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); line-height: 1.18; }
.hub-header .section-lead { font-size: 1.05rem; }
.section-lead, .hero-intro { font-size: 1.04rem; }
.button, .button-small, .wp-block-button__link,
.lio-button, button, input[type="submit"] {
  font-size: 1rem;
}
.button, .button-small { min-height: 44px; padding: .55rem 1rem; }
.site-header .header-topbar { min-height: 60px; }
.site-header .header-nav-row { min-height: 46px; }
.site-brand .brand-wordmark { font-size: clamp(1.22rem, 1.65vw, 1.48rem); }
.site-footer { padding-block: 1.5rem .8rem; }
.site-footer .menu a { font-size: .9rem; }
.site-footer .footer-bottom small { font-size: .83rem; }
/* Forms: 16px prevents automatic iOS Safari input focus zoom. */
input:not([type="checkbox"]):not([type="radio"]),
select, textarea { max-width: 100%; font-size: max(16px, 1rem); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--li-orange-dark); }
/* Avoid global overflow clipping that could hide booking dialogs. */
@media (max-width: 1023px) {
  :root { --li-gutter: 20px; }
  .article-content { font-size: 1rem; }
  .hero { height: auto; min-height: 310px; }
  .hero-copy { padding-block: 1.3rem; }
}
@media (max-width: 680px) {
  :root {
    --li-gutter: 16px;
    --li-space-mobile-section: 24px;
    --li-header-top-height: 60px;
    --li-header-nav-height: 0px;
  }
  body { font-size: 16px; line-height: 1.5; }
  .content-area { padding-block: 1rem 2rem; }
  .breadcrumbs { margin-bottom: .85rem; font-size: .82rem; }
  .page-header, .article-header { margin-bottom: 1rem; }
  .page-header h1, .article-header h1 {
    font-size: clamp(1.68rem, 6.6vw, 2rem); max-width: 100%;
  }
  .article-content h2, .section-shell h2 { font-size: 1.45rem; }
  .article-content h3 { font-size: 1.2rem; }
  .article-content .article-lead { font-size: 1.02rem; }
  .hero { min-height: 275px; }
  .hero-copy h1 { font-size: clamp(1.8rem, 7.4vw, 2.35rem); }
  .hero-copy .hero-intro { font-size: 1rem; }
  .section-shell { padding-block: 1.5rem; }
  .hub-header { margin-bottom: 1.3rem; }
  .hub-header h1 { font-size: clamp(1.7rem, 6.5vw, 2.1rem); }
  .topic-card { min-height: 4rem; }
  .site-header .header-topbar { min-height: 60px; }
  .site-footer { padding-block: 1.25rem .75rem; }
  .article-content table { max-width: 100%; overflow-x: auto; }
}
@media (max-width: 390px) {
  :root { --li-gutter: 12px; }
  .page-header h1, .article-header h1 { font-size: 1.65rem; }
  .article-content { font-size: 1rem; }
}

/* The legacy mobile shell marks article heading sizes important. */
@media (max-width: 47.99rem) {
    body .article-content :is(h2, h2[style]) { font-size: 1.45rem !important; line-height: 1.25 !important; }
    body .article-content :is(h3, h3[style]) { font-size: 1.2rem !important; }
}
