/* Interior pages share the homepage's type, manuscript textures and ink rules. */
:root {
  --body: Arimo, Arial, sans-serif;
  --display: Oswald, "Arial Narrow", sans-serif;
  --paper: #fff;
  --ink: #171613;
  --forest: #171613;
  --muted: #565249;
  --line: #c8c4bd;
  --white: #fff;
  --blue: #f0eeea;
  --gold: #dfcbb8;
  --manuscript: linear-gradient(#f4f1ecef, #f4f1ecef), url("home-offer-background.webp") center / cover;
  --gutter: clamp(1.15rem, 4.5vw, 5.5rem);
}

.wrap { width: min(calc(100% - 2 * var(--gutter)), 80rem); }
h1, h2, h3 { font-weight: 450; letter-spacing: -.025em; line-height: 1.09; }
h1, .page-heading h1 { font-size: clamp(3.4rem, 6.3vw, 6rem); }
h2 { font-size: clamp(2.25rem, 3.7vw, 3.65rem); }
h3 { font-size: clamp(1.6rem, 2.7vw, 2.4rem); }
a:hover { color: #61442f; }
.lede { color: #393630; font-size: clamp(1.09rem, 1.55vw, 1.4rem); max-width: 42ch; line-height: 1.5; }
.meta { color: var(--muted); font-weight: 600; }
.button { background: var(--ink); border: 2px solid var(--ink); padding: .75rem 1.15rem;
  font: 550 1rem/1.25 var(--display); text-transform: uppercase; letter-spacing: .012em; }
.button:hover { background: #3c3731; }
.button.light, .button.light:hover { border-color: var(--ink); }
.button.light { background: var(--gold); }
.button.light:hover { background: #efddcc; }
.text-link { text-decoration-thickness: 1px; text-underline-offset: .25em; }
.site-header { border-bottom: 1px solid var(--ink); }
.header-inner { width: min(94%, 94rem); min-height: 6.6rem; }
.brand img { width: 5.75rem; height: 5.75rem; }
.header-inner nav { gap: clamp(.7rem, 1.55vw, 1.7rem); }
.header-inner nav a { font-size: clamp(.86rem, 1.1vw, 1.06rem); font-weight: 700; }
.header-inner nav a:hover, .header-inner nav a[aria-current=page] { text-decoration: underline; text-underline-offset: .4em; }
.nav-cta { padding: 0; border: 0; }
.nav-cta:hover { background: transparent; color: var(--ink); }
.site-footer { background: #efeeeb; border-color: var(--ink); }
.closing { background: var(--manuscript); color: var(--ink); border-top: 3px solid var(--ink); }
.closing-row { padding-block: clamp(2.8rem, 6vw, 5.5rem); }
.closing p { color: var(--muted); }
.closing h2 { max-width: 21ch; }

/* The openings use the school's own materials: a portrait, a classroom, a book. */
.paper-opening { background: var(--manuscript); border-bottom: 3px solid var(--ink); }
.spread { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(2rem, 4vw, 4.3rem); }
.about-opening h2 { font-size: clamp(1.65rem, 2.5vw, 2.5rem); margin: 1.25em 0 .12em; }
.about-opening .meta + p { margin-top: .7rem; max-width: 54ch; }
.about-opening .photo { width: min(100%, 27rem); justify-self: center; }
.about-opening .photo img { aspect-ratio: 1 / 1.07; object-position: center 40%; border-radius: 48% 48% 0 0; }
.about-tripoli { grid-template-columns: .85fr 1.15fr; }
.about-tripoli img { max-height: 30rem; object-position: center 56%; }
.about-tripoli .actions a { margin: 0; }
.price-list { border-top: 1px solid var(--ink); }
.price-list li { padding-block: .55rem; }

/* The course guide moves from a visit in Tripoli to three different ways to study. */
.class-intro {
  background: #f2ede4;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(2.8rem, 5vw, 5rem) max(var(--gutter), calc((100% - 80rem) / 2));
}
.class-welcome h1 { font-size: clamp(4.4rem, 6.4vw, 6.2rem); line-height: 1.02; margin: 0; }
.class-welcome h1 span { color: #77462f; }
.class-welcome .lede { margin: 1.7rem 0 1.9rem; max-width: 34ch; }
.class-welcome .button { text-transform: none; }
.class-location > div { overflow: hidden; border-radius: 48% 48% 0 0 / 33% 33% 0 0; }
.class-location img { width: 100%; height: clamp(27rem, 36vw, 39rem); object-fit: cover; object-position: center 57%; }
.class-location figcaption { margin-top: .65rem; color: #584f43; font-size: .88rem; }
.course-shortcuts { margin: 1.5rem 0 0; max-width: 24rem; }
.course-shortcuts summary { font-weight: 600; }
.course-shortcuts nav { display: grid; padding-bottom: .8rem; }
.course-shortcuts a { padding: .4rem 0; width: fit-content; }

.lesson-spread, .schedule-spread {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
  padding-block: clamp(4.6rem, 8vw, 8.5rem);
}
.lesson-copy { max-width: 32rem; }
.lesson-copy h2, .specialist h2 { font-size: clamp(2.9rem, 4.5vw, 4.7rem); line-height: 1.08; }
.lesson-copy p, .specialist p { font-size: clamp(1.03rem, 1.35vw, 1.2rem); line-height: 1.65; }
.lesson-copy .text-link, .specialist .text-link { margin-top: 1.6rem; }
.lesson-rates { margin-top: 1.8rem; border-block: 1px solid var(--line); }
.lesson-rates summary { padding-block: .95rem; }
.lesson-rates .price-list { margin: 0 0 1rem; border: 0; }
.lesson-pair { position: relative; padding: 0 0 9% 22%; }
.lesson-pair .photo:first-child img { aspect-ratio: 4/4.7; object-fit: cover; object-position: center 57%; }
.lesson-pair .photo + .photo { position: absolute; width: 48%; left: 0; bottom: 0; border: .45rem solid white; }
.lesson-pair .photo + .photo img { aspect-ratio: 4/3; }
.group-lesson { background: #eee9df; }
.group-lesson .lesson-spread { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.group-lesson .photo img { aspect-ratio: 1.16; object-position: 48% center; }
.group-terms { display: flex; flex-wrap: wrap; gap: 1.1rem 2rem; margin: 1.8rem 0 0; padding-top: 1.05rem; border-top: 1px solid #a9a295; }
.group-terms dt { font-size: .88rem; color: #554e43; }
.group-terms dd { margin: .15rem 0 0; font: 450 clamp(1.6rem, 2.1vw, 2.15rem)/1.2 var(--display); }

.scheduled-lesson { background: #253732; color: #fffdf6; }
.scheduled-lesson .text-link:hover { color: #ecd0ac; }
.scheduled-lesson details { border-color: #7c8b82; }
.scheduled-lesson summary { min-height: 3.5rem; }
.program-fees { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.program-fees th, .program-fees td { text-align: right; padding: 1.05rem .25rem; border-bottom: 1px solid #7c8b82; }
.program-fees th:first-child { text-align: left; padding-left: 0; }
.program-fees thead th { font-size: .9rem; color: #e0e6de; }
.program-fees tbody th { font: 450 1.65rem/1.25 var(--display); }
.program-fees small { display: block; margin-top: .35rem; color: #e0e6de; font: 400 .88rem/1.35 var(--body); }
.program-fees td { font-size: 1.12rem; }
.specialist .section { padding-block: clamp(4.5rem, 8vw, 8.5rem); }
.specialist header { margin: 0 0 clamp(2rem, 4vw, 4rem); }
.specialist header p { color: var(--muted); }
.specialist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.4rem, 6vw, 6rem); }
.specialist img { width: 100%; aspect-ratio: 1.9; object-fit: cover; }
.specialist h3 { margin: 1.4rem 0 .65rem; font-size: clamp(2.2rem, 3.1vw, 3rem); }
.specialist article p { max-width: 50ch; }
@media (max-width: 760px) {
  .class-intro { grid-template-columns: 1fr; gap: 2rem; }
  .class-welcome h1 { font-size: clamp(3.5rem, 10vw, 4.65rem); }
  .class-welcome h1 span br { display: none; }
  .class-welcome .lede { margin: 1.15rem 0 1.35rem; }
  .class-location { width: min(100%, 29rem); justify-self: center; }
  .class-location img { height: clamp(16rem, 74vw, 26rem); }
  .lesson-spread, .group-lesson .lesson-spread, .schedule-spread { grid-template-columns: 1fr; gap: 2.2rem; }
  .lesson-copy { max-width: 38rem; }
  .lesson-pair { width: min(100%, 32rem); justify-self: center; }
  .group-lesson .photo img { aspect-ratio: 1.55; }
  .specialist-grid { grid-template-columns: 1fr; gap: 3.3rem; }
  .program-fees th, .program-fees td { padding-block: .85rem; }
}

.book-opening { padding-block: clamp(1.5rem, 3vw, 3rem) clamp(2.5rem, 5vw, 4.5rem); }
.book-title { display: flex; justify-content: space-between; gap: 1rem 3rem; align-items: end;
  border-bottom: 1px solid var(--ink); padding-bottom: 1.2rem; margin-bottom: clamp(1.6rem, 3.4vw, 3.3rem); }
.book-title h1 { margin: 0; }
.book-title p { max-width: 36ch; line-height: 1.45; }
.book-feature { gap: clamp(2rem, 6vw, 6rem); }
.display-book { background: transparent; position: relative; isolation: isolate; padding: 1rem; }
.display-book .featured-cover { width: 55%; max-height: 27rem; transform: rotate(-4deg) translateX(-6%);
  filter: drop-shadow(.22rem .55rem .55rem #28201940); }
.display-book .peek-page { position: absolute; left: 41%; top: 50%; z-index: -1; width: 47%; max-height: 24rem;
  transform: translateY(-49%) rotate(9deg); filter: drop-shadow(.1rem .25rem .28rem #28201935); }
.book-feature h2 { margin-bottom: .23em; }
.samples .section-head, #other-samples .section-head { border-top: 2px solid var(--ink); padding-top: 1.6rem; }
.gallery { gap: 1.9rem 1.2rem; }
.gallery a { background: #eeece7; padding: clamp(.4rem, 1vw, 1rem); border-color: transparent; }
.gallery img { box-shadow: 0 2px 7px #28201924; }
.gallery figcaption { font-weight: 600; }
.book-card .cover { background: #fff; padding: 1rem; }
.book-card .cover img { width: 100%; height: 100%; }
.book-card .meta, .book-card .muted { font-size: .91rem; }
.feature { background: #eeece8; border-block: 1px solid var(--line); }

.tripoli-arrival { background: #f2ede4; }
.tripoli-heading, .tripoli-homes, .tripoli-planning {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center;
}
.tripoli-heading { padding-block: clamp(2.8rem, 5.5vw, 6rem); }
.tripoli-heading h1 { margin: 0; font-size: clamp(4.5rem, 7.8vw, 7.5rem); }
.tripoli-heading h1 span { color: #77462f; }
.tripoli-heading .lede { max-width: 42ch; }
.tripoli-heading .text-link { margin-top: 1.25rem; }
.tripoli-panorama { position: relative; overflow: hidden; height: clamp(22rem, 35vw, 36rem); --parallax-room: 45px; }
.tripoli-panorama img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; }
.tripoli-arrival figcaption, .tripoli-homes figcaption { padding-block: .7rem; color: #59534a; font-size: .88rem; }
@media (prefers-reduced-motion: no-preference) {
  .parallax-ready .tripoli-panorama img { top: calc(-1 * var(--parallax-room)); height: calc(100% + 2 * var(--parallax-room)); }
}
.tripoli-homes, .tripoli-planning { padding-block: clamp(4rem, 7.8vw, 8rem); }
.tripoli-homes h2, .tripoli-planning h2 { font-size: clamp(2.8rem, 4.5vw, 4.7rem); }
.tripoli-homes article { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.6rem; }
.tripoli-homes h3 { margin-bottom: .5em; }
.tripoli-homes p, .tripoli-planning p, .tripoli-planning dd { max-width: 48ch; font-size: clamp(1.04rem, 1.3vw, 1.18rem); }
.tripoli-homes img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border-radius: 48% 48% 0 0 / 32% 32% 0 0; }
.tripoli-practical { color: #fffdf6; background: #253732; }
.tripoli-planning .button { margin-top: 1.65rem; }
.tripoli-planning dl { margin: 0; }
.tripoli-planning dl > div { border-top: 1px solid #86948b; padding: 1.3rem 0; }
.tripoli-planning dt { font: 450 1.75rem/1.2 var(--display); }
.tripoli-planning dd { margin: .7rem 0 0; color: #e7ece7; }
@media (max-width: 760px) {
  .tripoli-heading, .tripoli-homes, .tripoli-planning { grid-template-columns: 1fr; gap: 2rem; }
  .tripoli-heading h1 { font-size: clamp(3.45rem, 13.2vw, 4.7rem); }
  .tripoli-panorama { height: clamp(18rem, 72vw, 24rem); --parallax-room: 25px; }
  .tripoli-homes figure { width: min(100%, 27rem); justify-self: center; }
}

.guide-layout, .student-story { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.guide-heading h1 { max-width: 11ch; }
.guide-heading .lede { max-width: 33ch; }
.faq-list { width: 100%; }
.faq-list details:first-child { border-top: 2px solid var(--ink); }
.faq-list summary { padding-block: 1.05rem; font: 450 clamp(1.25rem, 2vw, 1.7rem)/1.32 var(--display); }
.faq-list details[open] summary { color: #6c4930; }
.consultation { grid-template-areas: "heading form" "contact form"; grid-template-rows: auto 1fr; row-gap: 2rem; }
.consultation .guide-heading { grid-area: heading; }
.consultation form { grid-area: form; }
.contact-aside { grid-area: contact; background: none; max-width: 24rem; }
.contact-aside img { width: 100%; aspect-ratio: 2.7; }
.contact-aside > div { padding: 1rem 0 0; }
.contact-form { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.preview-notice { background: #f2eae2; border: 0; color: #493b2d; }
input, select, textarea { border-color: #938e85; min-width: 0; }
.page-heading { border-bottom: 2px solid var(--ink); }
.student-index { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(2rem, 4.5vw, 4.5rem) clamp(1.5rem, 3vw, 3rem); }
.student-image { width: 100%; aspect-ratio: 1.15; object-fit: cover; object-position: center 35%; }
.student-image[src$="77hx6.webp"] { object-position: center 18%; }
.student-entry h2 { font-size: clamp(1.8rem, 2.5vw, 2.6rem); margin: .55em 0 .12em; }
.student-entry h2 a { text-decoration: none; }
.student-entry h2 a:hover { text-decoration: underline; }
.student-entry blockquote { margin: .8rem 0; }
.student-story h1 { margin-top: .4em; }
.student-story .student-image { width: min(100%, 22rem); margin-top: 1.4rem; }
.student-story blockquote { border-top: 2px solid var(--ink); padding-top: 1.2rem; max-width: 62ch; font-size: clamp(1.08rem, 1.4vw, 1.3rem); }
@media (max-width: 850px) {
  .header-inner { min-height: 5.1rem; }
  .brand img { width: 4.5rem; height: 4.5rem; }
  .header-inner nav { column-gap: 1rem; }
  .student-index { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .guide-layout, .student-story { gap: 2rem; }
}
@media (max-width: 700px) {
  .spread, .book-feature, .about-tripoli, .guide-layout, .student-story { grid-template-columns: 1fr; }
  .about-opening .photo { width: min(83%, 23rem); }
  .book-title { display: block; }
  .book-title p { margin-top: .55rem; }
  .book-feature { gap: 1.75rem; }
  .display-book { width: min(100%, 24rem); justify-self: center; }
  .consultation { grid-template-areas: "heading" "form" "contact"; grid-template-rows: auto; gap: 1.75rem; }
  .student-story .student-image { width: min(100%, 18rem); }
}
@media (max-width: 540px) {
  .student-index { grid-template-columns: 1fr; }
  .gallery { gap: 1.2rem .75rem; }
}
