:root {
  color-scheme: light;
  --ink: #101114;
  --muted: #667085;
  --line: #d7dce5;
  --paper: #f4f7fb;
  --white: #fcfdff;
  --blue: #173ee8;
  --coral: #ff5a43;
  --radius: 14px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { min-height: 76px; padding: 0 3vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: rgb(252 253 255 / .86); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 5; }
.wordmark { display: inline-block; width: max-content; font-size: 25px; line-height: .9; font-weight: 950; letter-spacing: -1.6px; transform: scaleX(.78); transform-origin: left center; white-space: nowrap; }
.site-header nav { display: flex; gap: clamp(20px, 3vw, 46px); font-size: 14px; font-weight: 650; }
.site-header nav a, footer nav a { border-bottom: 1px solid transparent; }
.site-header nav a:hover, footer nav a:hover { border-color: currentColor; }
.button { display: inline-flex; width: max-content; align-items: center; justify-content: center; gap: 24px; padding: 15px 19px; border-radius: 8px; background: var(--blue); color: white; font-weight: 720; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: #0f2fc7; }
.button:active { transform: translateY(1px); }
.button-small { justify-self: end; padding: 12px 16px; gap: 16px; font-size: 14px; }

main { overflow: clip; }
.hero { min-height: min(760px, calc(100dvh - 76px)); padding: clamp(64px, 7vw, 112px) 5vw 72px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: clamp(40px, 7vw, 110px); align-items: center; position: relative; background: radial-gradient(circle at 83% 22%, #e0e9ff 0, transparent 28%), linear-gradient(135deg, var(--white), #eef3fa); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(#7d8ca6 1px, transparent 1px), linear-gradient(90deg, #7d8ca6 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, transparent 38%, black); }
.hero-copy, .hero-index { position: relative; z-index: 1; }
.hero-label, .section-heading > p, .learn-intro > p, .business-section > div > p, .submit-copy > p:first-child { margin: 0 0 20px; font-size: 12px; font-weight: 780; letter-spacing: .11em; text-transform: uppercase; }
.hero h1 { max-width: 880px; margin: 0; font-size: clamp(56px, 7.2vw, 112px); line-height: .86; letter-spacing: -.065em; font-weight: 950; }
.hero-text { max-width: 630px; margin: 30px 0 34px; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.35; letter-spacing: -.02em; }
.search { max-width: 720px; height: 66px; display: grid; grid-template-columns: 28px 1fr 66px; align-items: center; border: 1px solid #cbd2df; border-radius: 10px; background: var(--white); box-shadow: 0 14px 38px rgb(47 66 99 / .10); overflow: hidden; }
.search-icon { width: 18px; height: 18px; margin-left: 20px; border: 2px solid #6b7689; border-radius: 50%; position: relative; }
.search-icon::after { content: ""; width: 8px; height: 2px; background: #6b7689; position: absolute; right: -6px; bottom: -3px; transform: rotate(45deg); }
.search input { height: 100%; padding: 0 16px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; min-width: 0; }
.search input::placeholder { color: #7a8495; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(23 62 232 / .12), 0 14px 38px rgb(47 66 99 / .10); }
.search button { height: 100%; border: 0; background: var(--blue); color: white; font-size: 31px; cursor: pointer; }
.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.quick-filters button { padding: 8px 11px; border: 1px solid #cbd2df; border-radius: 999px; background: rgb(255 255 255 / .58); color: #3f4857; cursor: pointer; font-size: 13px; }
.quick-filters button:hover, .quick-filters button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: white; }

.hero-index { min-height: 480px; display: grid; grid-template-rows: 1fr auto; padding: 28px; border-radius: var(--radius); background: #17181c; color: white; box-shadow: 0 36px 80px rgb(23 35 62 / .25); transform: rotate(1.6deg); }
.index-lead { padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; }
.index-lead span, .index-grid span { color: #aeb5c2; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.index-lead strong { max-width: 420px; font-size: clamp(36px, 4vw, 64px); line-height: .95; letter-spacing: -.045em; margin: 12px 0 14px; }
.index-lead p { max-width: 340px; margin: 0; color: #c8ced8; }
.index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.index-grid a { min-height: 132px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 9px; background: #f8f9fc; color: var(--ink); transition: transform .2s ease; }
.index-grid a:hover { transform: translateY(-4px); }
.index-grid img { margin-bottom: auto; }
.index-grid span { margin-bottom: 4px; color: #677184; letter-spacing: .06em; }
.index-grid strong { font-size: 15px; }

.category-band { padding: 0 5vw; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.category-band a { padding: 27px 20px; display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 700; border-right: 1px solid var(--line); transition: background .2s ease; }
.category-band a:last-child { border-right: 0; }
.category-band a:hover { background: #eaf0ff; }
.category-band span { color: var(--blue); font-size: 11px; font-weight: 800; }

.directory-section, .compare-section, .learn-section, .business-section, .submit-section { padding: clamp(88px, 10vw, 150px) 5vw; }
.section-heading { max-width: 760px; margin-bottom: 56px; }
.section-heading h2, .learn-intro h2, .business-section h2, .submit-copy h2 { margin: 0; font-size: clamp(42px, 5.4vw, 78px); line-height: .98; letter-spacing: -.055em; }
.section-heading > span, .learn-intro > span { display: block; margin-top: 18px; color: var(--muted); }
.listing-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.listing-card { grid-column: span 4; min-height: 430px; display: grid; grid-template-rows: 190px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: transform .25s ease, box-shadow .25s ease; }
.listing-card:hover { transform: translateY(-6px); box-shadow: 0 24px 55px rgb(48 65 92 / .12); }
.listing-featured { grid-column: span 6; }
.listing-mark { display: grid; place-items: center; }
.brand-monogram { font-size: 38px; font-weight: 950; letter-spacing: -.08em; }
.brand-monogram-light { color: white; }
.mark-dark { background: #191a1e; }
.mark-coral { background: #ffebe7; }
.mark-mint { background: #cceee4; }
.mark-blue { background: #173ee8; }
.mark-sky { background: #0d9dda; }
.mark-cloud { background: #edf1f8; }
.listing-copy { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.listing-copy .type, .course-rail > a > span { color: var(--blue); font-size: 12px; font-weight: 780; text-transform: uppercase; letter-spacing: .08em; }
.listing-copy h3, .course-rail h3 { margin: 10px 0 8px; font-size: 26px; letter-spacing: -.035em; }
.listing-copy p, .course-rail p { margin: 0 0 22px; color: #4c5564; }
.listing-copy a { margin-top: auto; color: var(--blue); font-weight: 720; }
.listing-copy a span { margin-left: 8px; }
.no-results { padding: 42px; border: 1px dashed #aab3c2; text-align: center; color: var(--muted); }

.compare-section { color: #f4f6fb; background: #15161a; }
.section-heading.compact { max-width: 840px; }
.comparison-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.comparison-primary { min-height: 460px; padding: clamp(30px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; border-radius: var(--radius); background: linear-gradient(145deg, #1b43ed, #1029a8); }
.comparison-primary > span, .comparison-list a > span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .72; }
.comparison-primary h3 { max-width: 620px; margin: auto 0 20px; font-size: clamp(44px, 6vw, 88px); line-height: .9; letter-spacing: -.06em; }
.comparison-primary p { max-width: 560px; margin: 0 0 26px; font-size: 18px; color: #dce3ff; }
.comparison-primary strong { padding-bottom: 4px; border-bottom: 1px solid currentColor; }
.comparison-list { display: grid; gap: 12px; }
.comparison-list a { padding: 26px; display: grid; grid-template-columns: 1fr auto; align-content: end; border: 1px solid #383a42; border-radius: var(--radius); background: #1d1e23; }
.comparison-list a:hover { border-color: #778198; }
.comparison-list a > span { grid-column: 1 / -1; align-self: start; margin-bottom: 28px; }
.comparison-list strong { font-size: 23px; letter-spacing: -.025em; }
.comparison-list em { font-style: normal; color: #9aabff; }

.learn-section { background: #e9eef6; }
.learn-intro { max-width: 680px; margin-bottom: 54px; }
.course-rail { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 16px; }
.course-rail > a { min-height: 380px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.course-rail > a:nth-child(2) { background: #18191d; color: white; border-color: #18191d; transform: translateY(28px); }
.course-rail > a:nth-child(2) p { color: #c0c5cf; }
.course-rail img, .course-monogram { margin-bottom: auto; }
.course-monogram { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: white; font-size: 12px; font-weight: 900; }
.course-rail h3 { max-width: 360px; font-size: 30px; }

.business-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 7vw; background: var(--white); }
.business-section > div { align-self: start; position: sticky; top: 120px; }
.business-section ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.business-section li { min-height: 180px; padding: 28px; border-radius: var(--radius); background: #edf2fa; }
.business-section li:nth-child(2) { margin-left: 7vw; background: #dbe4f6; }
.business-section li span { display: block; margin-bottom: 30px; font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.business-section li p { max-width: 480px; margin: 0; color: #4d5767; }

.submit-section { min-height: 620px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 8vw; background: var(--coral); color: #17181b; }
.submit-art { height: 380px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.submit-art span { font-size: clamp(110px, 14vw, 230px); line-height: .7; font-weight: 950; letter-spacing: -.11em; transform: rotate(-7deg); }
.submit-art span:nth-child(2) { transform: translateY(44px) rotate(5deg); color: #e9effc; }
.submit-art span:nth-child(3) { transform: translateY(-26px) rotate(10deg); color: var(--blue); }
.submit-copy { max-width: 680px; }
.submit-copy > p:not(:first-child) { max-width: 590px; margin: 24px 0 30px; font-size: 18px; }
.submit-copy .button { background: #17181b; }

footer { padding: 38px 5vw; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 24px; background: #111216; color: #f2f4f8; }
footer p { margin: 0; color: #9da5b4; font-size: 14px; }
footer nav { display: flex; gap: 22px; font-size: 13px; }

:focus-visible { outline: 3px solid #ff8b78; outline-offset: 4px; }

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-index { min-height: 420px; transform: none; }
  .category-band { grid-template-columns: 1fr 1fr; }
  .category-band a:nth-child(2) { border-right: 0; }
  .category-band a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .listing-card, .listing-featured { grid-column: span 6; }
  .comparison-layout, .business-section, .submit-section { grid-template-columns: 1fr; }
  .business-section > div { position: static; }
  .course-rail { grid-template-columns: 1fr 1fr; }
  .course-rail > a:nth-child(2) { transform: none; }
  .course-rail > a:last-child { grid-column: 1 / -1; min-height: 300px; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { min-height: 66px; padding: 0 18px; }
  .wordmark { font-size: 21px; }
  .button-small { padding: 10px 12px; gap: 8px; font-size: 12px; }
  .hero, .directory-section, .compare-section, .learn-section, .business-section, .submit-section { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: auto; padding-top: 52px; padding-bottom: 56px; }
  .hero h1 { font-size: clamp(49px, 16vw, 76px); }
  .hero-text { margin-top: 24px; font-size: 18px; }
  .search { height: 60px; grid-template-columns: 28px 1fr 58px; }
  .search input { font-size: 14px; padding-right: 5px; }
  .hero-index { min-height: 440px; padding: 16px; }
  .index-grid { grid-template-columns: 1fr; }
  .index-grid a { min-height: 82px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: 1fr 1fr; align-items: center; column-gap: 10px; }
  .index-grid img { grid-row: 1 / 3; margin: 0; }
  .category-band { padding: 0; grid-template-columns: 1fr; }
  .category-band a { border-right: 0; border-bottom: 1px solid var(--line); }
  .listing-grid { grid-template-columns: 1fr; }
  .listing-card, .listing-featured { grid-column: auto; min-height: 390px; }
  .comparison-primary { min-height: 420px; }
  .course-rail { grid-template-columns: 1fr; }
  .course-rail > a:last-child { grid-column: auto; }
  .business-section li:nth-child(2) { margin-left: 0; }
  .submit-art { height: 220px; }
  .submit-section { min-height: auto; }
  footer nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
