/* The palette and image details come from the existing marketing artwork. */
:root {
  --paper: #f7f5f0;
  --ink: #242420;
  --muted: #65655e;
  --wine: #951c39;
  --line: #d9d6ce;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
a, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, select:focus-visible { outline: 3px solid var(--wine); outline-offset: 6px; }
p, h1, h2, h3 { margin: 0; }
em { font-weight: 400; }
.section-wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: -80px; left: 20px; padding: 16px; background: white; }
.skip-link:focus { top: 12px; }
.site-header { width: min(1440px, calc(100% - 112px)); margin: auto; padding: 30px 0; display: flex; justify-content: space-between; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.brand-symbol { display: block; flex-shrink: 0; width: 91px; height: 30px; background-image: url('assets/matematica.jpeg'); background-size: 364px 364px; background-position: -136.5px -32.6px; }
.brand-type { font-family: var(--serif); text-transform: uppercase; font-size: 19px; letter-spacing: .045em; }
.brand-type > span { display: block; font-family: var(--sans); font-size: 8px; letter-spacing: .29em; margin-top: 5px; }
nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
nav a { padding: 10px 0; }
nav a:hover, .text-link:hover { color: var(--wine); }
nav .nav-contact { color: var(--wine); display: flex; gap: 25px; margin-left: 10px; font-weight: 600; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 65px; align-items: center; padding-top: 76px; padding-bottom: 76px; }
.eyebrow { display: flex; align-items: center; gap: 9px; text-transform: uppercase; font-size: 10px; font-weight: 600; letter-spacing: .16em; line-height: 1.6; }
.hero .eyebrow > span { height: 6px; width: 6px; background: var(--wine); border-radius: 50%; }
h1 { font-family: var(--serif); font-size: clamp(46px, 4.4vw, 66px); font-weight: 400; line-height: 1.07; letter-spacing: -.055em; margin-top: 30px; }
h1 em { display: block; color: var(--wine); }
.hero-description { max-width: 430px; color: var(--muted); font-size: 16px; line-height: 1.85; margin-top: 27px; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 35px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 52px; padding: 16px 21px; font-size: 13px; font-weight: 600; transition: background .2s, transform .2s; }
.button-primary { background: var(--wine); color: white; }
.button-primary:hover { background: #77152d; transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 19px; border-bottom: 1px solid currentColor; padding-bottom: 6px; font-size: 12px; font-weight: 600; }
.hero-caption { display: flex; flex-wrap: wrap; gap: 15px 24px; margin-top: 55px; color: var(--muted); font-size: 10px; }
.hero-caption span + span { border-left: 1px solid var(--line); padding-left: 24px; }
.hero-art { position: relative; background: #e8e5de; transform: rotate(2deg); box-shadow: 0 24px 55px -35px #25231f5c; }
.art-label { padding: 19px 23px; display: flex; justify-content: space-between; gap: 12px; background: #edeae3; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.desk-photo { height: clamp(330px, 30vw, 435px); background-image: url('assets/matematica.jpeg'); background-repeat: no-repeat; background-size: 320% auto; background-position: 75% 100%; }
.art-footer { display: flex; justify-content: space-between; padding: 23px; background: var(--wine); color: white; font: italic 23px var(--serif); }
.art-footer > span:last-child { font-family: var(--sans); font-style: normal; }
.subjects { padding-top: 54px; padding-bottom: 108px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: end; margin-bottom: 40px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.3vw, 47px); line-height: 1.13; letter-spacing: -.04em; }
h2 em { color: var(--wine); }
.section-heading h2 { margin-top: 15px; }
.section-heading > p { max-width: 350px; color: var(--muted); font-size: 15px; line-height: 1.85; padding-bottom: 3px; }
.subject { display: grid; grid-template-columns: 1.05fr 1fr 100px; align-items: center; gap: 32px; border-top: 1px solid var(--line); padding: 26px 0; }
.subject:last-child { border-bottom: 1px solid var(--line); }
.subject h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.subject-name > p { margin-top: 8px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.subject-description { max-width: 310px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.subject-link { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 44px; font-size: 12px; color: var(--wine); }
.subject-link > span:last-child { font-size: 23px; transition: transform .2s; }
.subject-link:hover > span:last-child { transform: translate(3px, -3px); }
.desktop-break { display: none; }
.class-section { background: #ebe8e0; }
.class-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 100px; padding-top: 80px; padding-bottom: 80px; }
.class-intro h2 { margin-top: 18px; }
.class-intro > p:not(.eyebrow) { max-width: 360px; font-size: 15px; line-height: 1.85; color: var(--muted); margin-top: 24px; }
.class-intro .text-link { margin-top: 30px; }
.class-details > div { border-top: 1px solid #cbc7bd; padding: 23px 0; }
.class-details > div:first-child { padding-top: 0; border-top: 0; }
.class-details > div:last-child { padding-bottom: 0; }
.detail-label { color: var(--wine); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.class-details h3 { font: 24px var(--serif); letter-spacing: -.02em; margin-top: 10px; }
.class-details p { color: var(--muted); font-size: 13px; line-height: 1.75; margin-top: 8px; max-width: 340px; }
.about { padding-top: 110px; padding-bottom: 110px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 110px; }
.about-brand { background: #eeece6; min-height: 370px; padding: 50px 30px; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 1px solid var(--line); }
.about-brand .brand-symbol { width: 150px; height: 49px; background-size: 600px 600px; background-position: -225px -53.8px; }
.about-brand > p { font: 47px/1.05 var(--serif); text-transform: uppercase; text-align: center; margin-top: 25px; letter-spacing: .02em; }
.about-brand > span:last-child { text-transform: uppercase; font-size: 9px; letter-spacing: .29em; margin-top: 20px; }
.about-copy h2 { margin-top: 20px; margin-bottom: 23px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.85; margin-bottom: 17px; }
.about-copy .text-link { margin-top: 9px; }
.location { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.1fr 1fr; gap: 100px; padding-top: 58px; padding-bottom: 86px; }
.location h2 { font-size: clamp(33px, 3vw, 43px); margin-top: 18px; }
.location-copy { color: var(--muted); font-size: 14px; line-height: 1.85; }
.location-note { margin-top: 16px; }
.location .text-link { margin-top: 24px; color: var(--ink); }
.contact { background: var(--wine); color: white; }
.contact-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 100px; padding-top: 80px; padding-bottom: 80px; align-items: center; }
.contact .eyebrow { color: #f2cbd4; }
.contact h2 { font-size: clamp(39px, 3.8vw, 55px); margin-top: 20px; }
.contact h2 em { color: #f4dce1; }
.contact-copy > p:not(.eyebrow) { max-width: 370px; color: #f4dce1; font-size: 14px; line-height: 1.8; margin-top: 23px; }
.contact-email { display: inline-flex; gap: 22px; font-size: 13px; margin-top: 30px; overflow-wrap: anywhere; }
.contact-panel { padding: 32px; border: 1px solid #d88d9e; }
.contact-panel label { display: block; font-size: 12px; margin-bottom: 12px; }
.contact-panel select { width: 100%; padding: 14px 34px 14px 14px; min-height: 50px; border: 1px solid #d88d9e; border-radius: 0; color: white; background: #801731; cursor: pointer; }
.contact-panel option { background: white; color: var(--ink); }
.button-light { background: var(--paper); color: var(--wine); width: 100%; margin-top: 16px; }
.button-light:hover { background: white; transform: translateY(-2px); }
.contact-phone { text-align: center; font-size: 12px; margin-top: 20px; }
.contact-help { font-size: 11px; line-height: 1.75; color: #f4dce1; margin-top: 25px; padding-top: 20px; border-top: 1px solid #c66f84; }
.contact a:focus-visible, .contact select:focus-visible { outline-color: white; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; padding-bottom: 28px; font-size: 10px; color: var(--muted); }
.site-footer > a:first-child { font-family: var(--serif); font-size: 14px; color: var(--ink); }
.site-footer > a:first-child span { font-family: var(--sans); font-size: 10px; }
.site-footer > a:last-child { display: flex; gap: 15px; }
@media (min-width: 1550px) { .hero { padding-block: 95px; } }
@media (max-width: 1100px) {
  .section-wrap, .site-header { width: calc(100% - 64px); }
  .site-header nav { gap: 20px; }
  .brand { gap: 10px; }
  .brand-type { font-size: 15px; }
  .brand-type > span { font-size: 7px; }
  .hero { gap: 35px; }
  .hero-actions { gap: 22px; }
  .hero-caption { margin-top: 35px; }
  .class-inner, .about, .location, .contact-inner { gap: 55px; }
  .contact-panel { padding: 24px; }
  .subject { grid-template-columns: 1.1fr 1fr 85px; gap: 20px; }
}
@media (max-width: 780px) {
  .section-wrap, .site-header { width: calc(100% - 40px); }
  .site-header { padding-block: 23px; flex-wrap: wrap; justify-content: center; gap: 20px; }
  .brand-type { font-size: 19px; }
  .brand-type > span { font-size: 8px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 12px; font-size: 12px; }
  nav .nav-contact { gap: 10px; margin-left: 0; }
  .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 45px; padding-bottom: 58px; }
  h1 { font-size: clamp(43px, 8.6vw, 65px); margin-top: 22px; }
  .hero-description { font-size: 15px; max-width: 450px; }
  .hero-art { width: calc(100% - 16px); max-width: 520px; justify-self: center; transform: rotate(1.3deg); }
  .desk-photo { height: 350px; }
  .hero-caption { margin-top: 30px; }
  .subjects { padding-top: 40px; padding-bottom: 60px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 30px; }
  h2 { font-size: 37px; }
  .section-heading > p { max-width: 450px; font-size: 14px; }
  .subject { grid-template-columns: 1fr 85px; gap: 13px 18px; padding-block: 23px; }
  .subject h3 { font-size: 26px; }
  .subject-description { grid-column: 1; grid-row: 2; max-width: 350px; }
  .subject-link { grid-row: 1 / 3; grid-column: 2; }
  .subject-name > p { font-size: 9px; line-height: 1.6; }
  .class-inner, .about, .location, .contact-inner { grid-template-columns: 1fr; gap: 40px; padding-block: 55px; }
  .class-intro > p:not(.eyebrow) { max-width: 450px; }
  .class-details > div:first-child { border-top: 1px solid #cbc7bd; padding-top: 23px; }
  .about-brand { min-height: 310px; }
  .about { gap: 35px; }
  .about-copy h2 { margin-top: 15px; }
  .location { gap: 25px; }
  .location h2 { font-size: 35px; }
  .contact h2 { font-size: 43px; }
  .contact-panel { max-width: 500px; width: 100%; }
  .site-footer { gap: 18px; padding-block: 25px; }
  .site-footer > p { order: 3; width: 100%; }
}
@media (max-width: 380px) {
  .section-wrap, .site-header { width: calc(100% - 32px); }
  .brand-type { font-size: 17px; }
  h1 { font-size: 40px; }
  .eyebrow { font-size: 9px; letter-spacing: .12em; }
  .desk-photo { height: 300px; }
  .art-label { font-size: 8px; padding: 16px; }
  .art-footer { padding: 18px; font-size: 21px; }
  .subject { grid-template-columns: 1fr 32px; }
  .subject-link > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .contact h2 { font-size: 39px; }
  .contact-panel { padding: 20px; }
  .contact-email { font-size: 12px; gap: 10px; }
  .site-footer > a:first-child span { display: block; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
