/* Magic Education: the paper-and-ink tools department of Magic Institution. */
@view-transition { navigation: auto; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body.products-page { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.6; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid #65559b; outline-offset: 5px; }
::selection { background: #d7e56f; color: var(--ink); }
.page-width { width: min(1240px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.eyebrow { font: 10px/1.5 var(--font-code); letter-spacing: .09em; text-transform: uppercase; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 20; padding: 12px 20px; color: var(--paper); background: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.products-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--gutter); border-bottom: 1px solid var(--brand-line-paper); }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { display: block; width: 154px; height: auto; }
.products-header nav { display: flex; align-items: center; gap: 30px; }
.products-header nav a { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; text-decoration: none; }
.products-header nav a[aria-current] { box-shadow: inset 0 -2px #65559b; }
.products-header nav a:hover { color: #65559b; }
.products-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; padding-block: 84px 90px; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 8px; color: #5e5b56; margin-bottom: 26px; }
.status-dot { width: 6px; height: 6px; background: #536b46; border-radius: 50%; }
h1 { font-size: clamp(42px, 4.9vw, 72px); font-weight: 600; line-height: 1.08; letter-spacing: -.065em; }
h1 em, .makers h2 em { font-family: var(--font-ceremony); font-weight: 400; letter-spacing: -.055em; }
h1 em { color: #66567e; }
.hero-lede { max-width: 44ch; margin-top: 24px; color: #57544e; font-size: 17px; line-height: 1.7; }
.button { min-height: 50px; padding: 13px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; font-size: 14px; font-weight: 600; line-height: 1.45; text-decoration: none; border: 1px solid transparent; transition: background .18s, transform .18s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper-2); }
.button-dark:hover { background: #34314d; }
.hero-cta { margin-top: 28px; }
.hero-caption { margin-top: 14px; font-size: 11px; color: #68645c; }
.tool-directory { position: relative; border: 1px solid #c5bca9; background: var(--paper-2); box-shadow: 7px 7px 0 -1px var(--paper), 7px 7px 0 #c5bca9, 14px 14px 0 -1px var(--paper), 14px 14px 0 #c5bca9, 0 20px 50px #342b4810; padding: 24px 28px 18px; transform: rotate(1deg); }
.tool-directory::before { content: ''; position: absolute; width: 92px; height: 23px; top: -13px; left: 36%; background: #c3b99570; border: 1px solid #b7a97830; transform: rotate(-6deg); }
.directory-head { display: flex; align-items: center; justify-content: space-between; color: #6c665b; }
.directory-number { font: 32px/1 var(--font-code); color: #655777; letter-spacing: -.1em; }
.directory-number span { font-size: 19px; vertical-align: super; margin-left: 3px; }
.directory-title { margin: 18px 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -.035em; }
.tool-directory nav a { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: center; padding: 18px 0; text-decoration: none; border-top: 1px solid var(--brand-line-paper); }
.directory-index { font: 10px/1 var(--font-code); color: #817866; }
.tool-directory strong { display: block; font-size: 15px; font-weight: 500; }
.tool-directory small { display: block; font-size: 12px; color: #68645c; margin-top: 2px; }
.tool-directory a:hover strong { color: #65559b; text-decoration: underline; text-underline-offset: 4px; }
.directory-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--brand-line-paper); padding-top: 20px; margin-top: 6px; color: #766e60; }
.stamp { border: 1px solid #746286; padding: 4px 8px; color: #746286; font: 10px/1.4 var(--font-code); letter-spacing: .12em; transform: rotate(-8deg); }
.catalog { padding-block: 35px 64px; border-top: 1px solid var(--brand-line-paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading .eyebrow, .faq .eyebrow { color: #726a5e; margin-bottom: 10px; }
h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; font-weight: 500; letter-spacing: -.05em; }
.section-heading > p { font-size: 13px; line-height: 1.6; color: #68645c; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.product { --accent: #345872; --tint: #e2e7e4; display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid #d3caba; border-top: 3px solid var(--accent); background: var(--paper-2); scroll-margin-top: 24px; }
.product-market { --accent: #775b29; --tint: #eee4c9; }
.product-hire { --accent: #665477; --tint: #e9e2ed; }
.product-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; color: var(--accent); }
.product-logo { display: block; width: clamp(112px, 13vw, 150px); height: auto; object-fit: contain; }
.product-audience { color: var(--accent); font-size: 11px; margin-bottom: 8px; }
.product h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -.06em; }
.product-pitch { margin-top: 20px; font-size: 18px; line-height: 1.45; letter-spacing: -.025em; font-weight: 500; }
.product-description { margin-top: 12px; font-size: 13px; line-height: 1.75; color: #625d53; min-height: 69px; }
.features { padding: 20px 0 24px; margin: 20px 0 0; list-style: none; border-top: 1px solid var(--brand-line-paper); display: grid; gap: 12px; }
.features li { padding-left: 19px; position: relative; font-size: 13px; line-height: 1.55; }
.features li::before { content: '+'; position: absolute; left: 0; color: var(--accent); font-family: var(--font-code); }
.product-bottom { margin-top: auto; }
.price { padding-top: 22px; border-top: 1px solid var(--brand-line-paper); }
.price-label { display: block; font-size: 12px; color: #625d53; }
.price strong { display: block; font-size: 38px; font-weight: 500; line-height: 1.4; letter-spacing: -.055em; }
.price strong span { font-size: 17px; letter-spacing: -.02em; }
.price p { font-size: 12px; color: #625d53; min-height: 39px; }
summary { cursor: pointer; }
.plan-details { margin-top: 12px; border-block: 1px dashed #c9bfad; }
.plan-details summary { min-height: 56px; padding: 15px 18px 15px 0; font-size: 12px; font-weight: 500; position: relative; list-style: none; }
.plan-details summary::after { content: '+'; position: absolute; right: 0; top: 15px; }
.plan-details[open] summary::after { content: '−'; }
summary::-webkit-details-marker { display: none; }
.plan-details > div { padding-bottom: 18px; font-size: 12px; }
.plan-details p + p { margin-top: 12px; }
.plan-details a { display: inline-block; margin-top: 12px; color: var(--accent); }
.product-note { display: flex; align-items: center; min-height: 58px; font-size: 11px; color: #625d53; margin-top: 12px; border-block: 1px dashed #c9bfad; }
.button-product { display: flex; background: var(--accent); color: #fff; margin-top: 20px; gap: 8px; padding-inline: 15px; font-size: 13px; }
.button-product:hover { background: color-mix(in srgb, var(--accent) 85%, #121524); }
.secondary-link, .secondary-note { display: flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; margin-top: 4px; font-size: 11px; gap: 5px; }
.secondary-note { color: #625d53; font-size: 10px; }
.catalog-note { margin-top: 22px; font-size: 12px; color: #68645c; }
.makers { background: var(--night); color: var(--paper); }
.makers-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-block: 65px; }
.makers .eyebrow { color: #c4bba7; }
.makers h2 { margin-top: 22px; font-size: clamp(40px, 4.4vw, 58px); line-height: 1.05; }
.makers h2 em { color: #d1c0db; }
.makers-seal { display: inline-block; margin-top: 28px; border: 1px solid #918574; color: #c4bba7; padding: 7px 12px; font: 9px/1.5 var(--font-code); letter-spacing: .12em; transform: rotate(-5deg); text-align: center; }
.makers-copy { padding-top: 5px; }
.makers-copy > p { max-width: 48ch; font-size: 16px; line-height: 1.85; color: #dbd5c7; }
.makers-copy > p + p { margin-top: 18px; }
.authors { border-top: 1px solid var(--brand-line-dark); margin-top: 26px; padding-top: 20px; }
.authors p { margin-top: 8px; font-size: 15px; line-height: 1.6; }
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; padding-block: 76px; }
.faq-intro { font-size: 13px; color: #625d53; margin-top: 22px; line-height: 1.9; }
.faq-items details { border-bottom: 1px solid #c9bfad; }
.faq-items details:first-child { border-top: 1px solid #c9bfad; }
.faq-items summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; padding: 20px 0; font-size: 15px; font-weight: 500; line-height: 1.5; }
.faq-items summary::after { content: '+'; font: 20px/1 var(--font-code); color: #746286; }
.faq-items details[open] summary::after { content: '−'; }
.faq-items details > div { padding: 0 26px 22px 0; font-size: 14px; color: #625d53; line-height: 1.8; }
.products-footer { border-top: 1px solid #c9bfad; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; padding-block: 38px; }
.footer-inner p { margin-top: 12px; color: #68645c; font: italic 16px/1.6 var(--font-ceremony); }
.footer-inner nav { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 38px; font-size: 12px; text-decoration: none; }
.footer-inner nav a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--brand-line-paper); padding-block: 18px; display: flex; justify-content: space-between; gap: 20px; color: #68645c; font-size: 10px; }
@media (max-width: 1050px) {
  .products-hero { gap: 44px; }
  .tool-directory { padding-inline: 20px; }
  .directory-title { font-size: 18px; }
  .tool-directory strong { font-size: 13px; }
  .product { padding: 20px; }
  .product-top .eyebrow { font-size: 8px; }
  .product-pitch { font-size: 16px; }
  .product-description { min-height: 91px; }
}
@media (max-width: 820px) {
  .products-hero { grid-template-columns: 1fr; gap: 52px; padding-block: 54px 60px; }
  h1 { font-size: clamp(42px, 8vw, 66px); }
  .hero-lede { max-width: 52ch; }
  .tool-directory { width: calc(100% - 14px); max-width: 540px; justify-self: center; transform: none; }
  .tool-directory strong { font-size: 15px; }
  .directory-title { font-size: 20px; }
  .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .product { padding: 28px; }
  .product-top { margin-bottom: 18px; }
  .product-top .eyebrow { font-size: 10px; }
  .product h3 { font-size: 34px; }
  .product-pitch { font-size: 20px; }
  .product-description, .price p { min-height: 0; }
  .product-description, .features li { font-size: 14px; }
  .secondary-note { font-size: 11px; }
  .makers-inner { gap: 36px; }
  .faq { grid-template-columns: 1fr; gap: 30px; padding-block: 54px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .products-header { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 18px 8px; }
  .brand img { width: 144px; }
  .products-header nav { width: 100%; justify-content: space-between; gap: 16px; }
  .products-header nav a { font-size: 13px; }
  .products-hero { padding-top: 38px; }
  .hero-copy > .eyebrow { font-size: 9px; gap: 6px; margin-bottom: 22px; }
  h1 { font-size: clamp(36px, 10.5vw, 54px); }
  .hero-lede { font-size: 15px; margin-top: 20px; }
  .hero-cta { width: 100%; margin-top: 24px; }
  .hero-caption { font-size: 10px; }
  .tool-directory { padding: 20px 18px 16px; }
  .directory-head .eyebrow { font-size: 9px; }
  .tool-directory strong { font-size: 13px; }
  .directory-foot .eyebrow { font-size: 9px; }
  .stamp { font-size: 8px; }
  .section-heading { align-items: flex-start; }
  .section-heading > p { display: none; }
  .catalog { padding-block: 28px 40px; }
  .product { padding: 24px; }
  .product h3 { font-size: 32px; }
  .makers-inner { grid-template-columns: 1fr; gap: 36px; padding-block: 44px; }
  .makers-copy > p { font-size: 15px; }
  .makers-seal { margin-top: 24px; }
  .faq-items summary { font-size: 14px; }
  .footer-inner { gap: 24px 14px; }
  .footer-inner nav a { min-height: 44px; font-size: 11px; }
  .footer-bottom { font-size: 9px; gap: 10px; }
  .footer-bottom .eyebrow { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .button:hover { transform: none; }
}
