/* Home: show learning destinations immediately, with comfortable touch targets. */
#subjects{padding:32px max(24px,calc((100% - 1160px)/2)) 56px;scroll-margin-top:130px;color:#2e261f}
#subjects .directory-head{margin:14px 0 24px;gap:24px}
.directory-head h1{font-size:clamp(28px,4vw,44px);letter-spacing:-.05em;line-height:1.3;margin:0}
#subjects .directory-head p{font-size:13px;margin:0}
#subjects .directory-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#subjects .directory-grid article{min-width:0;min-height:300px;padding:26px;border-radius:24px}
#subjects .directory-grid article>span{font-size:68px;line-height:1.1;margin-bottom:20px}
#subjects .directory-grid small{font-size:10px;letter-spacing:.15em}
#subjects .directory-grid h3{font-size:30px;margin:10px 0}
#subjects .directory-grid p{font-size:13px;line-height:1.7;margin:0 0 24px;color:#70695f}
#subjects .directory-grid nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#subjects .directory-grid nav a{min-height:48px;display:flex;align-items:center;padding:12px;font-size:13px;line-height:1.5;border-radius:12px}
#subjects .directory-grid nav a:hover{background:#fff}
#subjects a:focus-visible{outline:3px solid #a34a1c;outline-offset:4px}
.dir-wordholic{background:#fff1df}.dir-database{background:#eeeafa}
#subjects .dir-wordholic nav,#subjects .dir-database nav{grid-template-columns:1fr}
.hero h2{font-size:clamp(62px,8vw,98px);line-height:1.05;letter-spacing:-.075em;margin:24px 0}
.hero h2 em{font-style:normal;color:var(--green)}
@media(max-width:1000px) and (min-width:601px){
  #subjects .directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  #subjects{padding:22px 16px 36px;scroll-margin-top:120px}
  #subjects .directory-head{display:block;margin:10px 0 20px}
  #subjects .directory-head p{margin-top:10px;font-size:12px}
  #subjects .directory-grid{grid-template-columns:1fr;gap:12px}
  #subjects .directory-grid article{min-height:0;padding:20px;border-radius:20px;display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;align-items:start}
  #subjects .directory-grid article>span{font-size:44px;margin:0;line-height:1.1}
  #subjects .directory-grid small{font-size:9px;letter-spacing:.1em}
  #subjects .directory-grid h3{font-size:25px;line-height:1.3;margin:5px 0 8px}
  #subjects .directory-grid p{font-size:12px;margin:0}
  #subjects .directory-grid nav{grid-column:1 / -1;margin-top:0}
  #subjects .directory-grid nav a{min-height:48px;font-size:14px;justify-content:space-between;padding:12px 16px}
  #subjects .all-materials{font-size:12px;line-height:1.7;gap:16px;margin-top:16px;min-height:48px}
  .hero h2{font-size:58px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
