/* Shared responsive rules; all assets are served locally. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.container { width: min(1240px, calc(100% - clamp(32px, 6vw, 96px))); }
.hero, .idea-grid, .about-section { grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr); }
.idea-grid { grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)); }
.hero > *, .idea-grid > *, .about-section > *, .section-heading > *, .footer-bottom > * { min-width: 0; }
.hero h1, .explore-section h1, .about-section h2, .article-card h3,
.hero-description, .about-copy, .footer-records a { overflow-wrap: anywhere; }
.hero-actions, .section-heading, .pagination, .article-end, .preview-banner { flex-wrap: wrap; gap: 16px 24px; }
.button, .nav-action, .text-button, .filters a, .back-link, .article-end a,
.footer-top > a:last-child, .footer-records a { min-height: 44px; }
.text-button, .back-link, .article-end a, .footer-top > a:last-child { display: inline-flex; align-items: center; }
.nav nav a { min-width: 44px; text-align: center; font-size: .875rem; }
.button, .text-button, .filters a, .back-link { font-size: .875rem; }
.hero-description, .lead, .idea-intro p, .concept p, .article-card p, .about-copy p { font-size: 1rem; }
.hero-note, .eyebrow, .section-kicker, .visual-top, .visual-bottom, .footer-records a { font-size: .75rem; }
.growth-visual { min-width: 0; max-width: 100%; }
.growth-svg { right: 0; max-width: 100%; }
.footer-records { min-width: 0; max-width: 100%; }
.footer-records a { max-width: 100%; }
.prose { min-width: 0; max-width: 100%; font-size: 1rem; }
.prose pre, .prose table { max-width: 100%; overscroll-behavior-x: contain; }
.prose pre { overflow-wrap: normal; word-break: normal; }
.prose table { display: block; overflow-x: auto; }
.prose img, .article-cover { max-width: 100%; height: auto; }
.prose ul, .prose ol { padding-inline-start: 1.5em; }
.prose blockquote { margin-inline: 0; }
.reading > .card-meta { flex-wrap: wrap; gap: 8px 16px; }
.card-art img { height: 100%; }

/* Give the desktop headline enough room without crowding the growth graphic. */
@media (min-width: 901px) {
  .hero { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(1.75rem, 3.15vw, 3rem); letter-spacing: -.035em; }
  .hero h1 br { display: none; }
}

/* Tablets: two equally sized columns instead of narrow desktop cards. */
@media (min-width: 601px) and (max-width: 1100px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .article-card:last-child:nth-child(odd) { grid-column: auto; }
  .card-art, .article-card:last-child:nth-child(odd) .card-art { height: auto; aspect-ratio: 1.8; min-height: 185px; }
  .idea-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .idea-intro { grid-column: 1 / -1; display: flex; gap: 24px; justify-content: space-between; }
  .idea-intro h2 br { display: none; }
  .concept { padding-left: 20px; }
  .concept p br { display: none; }
}
@media (max-width: 900px) {
  .nav-action { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 40px; padding-bottom: 32px; }
  .hero h1 { font-size: clamp(2rem, 5.4vw, 3rem); letter-spacing: -.04em; }
  .hero-description { max-width: 38rem; }
  .hero-note { margin-top: 28px; }
  .growth-visual { width: min(530px, 100%); margin-inline: auto; }
  .about-section { gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Phones: visible three-item navigation needs no script or menu gesture. */
@media (max-width: 600px) {
  html { scroll-padding-top: 136px; }
  .header .nav { height: auto; min-height: 108px; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 12px 0 6px; }
  .header .brand { font-size: 20px; min-height: 36px; }
  .header .brand img { width: 30px; height: 30px; }
  .nav nav { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .nav nav a { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 8px 2px; border-radius: 5px; font-size: .875rem; }
  .nav nav a.active { background: #13271f; color: var(--green); }
  .nav nav a.active:after { display: none; }
  .hero { padding-top: 28px; min-height: auto; }
  .hero-copy { padding-top: 0; }
  .hero h1 { font-size: clamp(1.875rem, 7.5vw, 2.5rem); line-height: 1.5; margin-top: 20px; }
  .hero-actions { gap: 12px 20px; }
  .hero-description { margin-bottom: 24px; }
  .hero-note { row-gap: 8px; }
  .eyebrow { letter-spacing: .4px; }
  .idea-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .idea-intro { display: block; grid-column: auto; margin: 0; }
  .idea-intro h2 { margin-bottom: 0; font-size: 1.5rem; }
  .idea-intro h2 br { display: none; }
  .idea-intro p { display: block; max-width: none; margin-top: 8px; }
  .idea-intro p br { display: none; }
  .concept { display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 16px; border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .concept-symbol { grid-row: 1 / 3; height: auto; font-size: 36px; padding-top: 4px; }
  .concept-symbol.multiply { font-size: 48px; }
  .concept-number { display: none; }
  .concept h3 { font-size: 1.0625rem; margin-bottom: 6px; }
  .concept p br { display: none; }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .article-card:last-child:nth-child(odd) { grid-column: auto; }
  .card-art, .article-card:last-child:nth-child(odd) .card-art { height: auto; aspect-ratio: 1.8; min-height: 185px; }
  .art-caption, .art-index { left: 18px; letter-spacing: .6px; }
  .section-heading { gap: 12px; align-items: center; }
  .section-heading > div { flex: 1 1 190px; }
  .section-heading > .text-button { flex: 0 0 auto; margin: 0; font-size: .875rem; }
  .about-section { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .about-section h2 { font-size: 1.75rem; }
  .explore-section h1 { font-size: clamp(1.75rem, 7vw, 2.25rem); }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .filters a { display: flex; align-items: center; justify-content: center; padding: 8px; font-size: .875rem; }
  .reading h1 { font-size: clamp(1.625rem, 6.8vw, 2rem); }
  .article-summary { font-size: 1rem; }
  .prose pre { padding: 16px; }
  .prose blockquote { padding: 14px 18px; }
  .footer-records { flex-direction: column; align-items: flex-start; gap: 2px; }
  .footer-records a { font-size: .75rem; line-height: 1.8; }
  .footer-bottom { gap: 8px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
@media (hover: none) {
  .button:hover, .card-link:hover .card-art { transform: none; }
}
/* Leave room for reading when a phone is held horizontally. */
@media (max-height: 500px) and (pointer: coarse) {
  .header { position: static; }
  html { scroll-padding-top: 20px; }
}
