/* Queendom Academy - the client's DESIGN.md on top of the Taste kit.
   Loaded after the kit's stylesheets and the printed :root block. Holds the self-hosted faces, the brand
   tokens the brief fixes (the espresso band, 2px corners, the gold line) and the page CSS of the
   type-led parts (the h1's category line, the numbered lists, the cards, the band, the enquiry form). */

/* ---------------------------------------------------------------- faces (self-hosted, Latin subset) */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

/* ---------------------------------------------------------------- brand tokens (DESIGN.md section 2) */
:root {
  --gold: #b0925f;
  /* the one dark band: the client's espresso, not the ink */
  --p-inv-bg: #39221e; --p-inv-surface: #452c27;
}
/* one light theme; taps answer at once; the content clears a phone's notch in landscape */
html { color-scheme: light; touch-action: manipulation; -webkit-tap-highlight-color: rgba(126, 95, 54, 0.16); }
.wrap, .container { width: min(100% - 2 * max(var(--gut), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)), var(--container)); }
.hero__facts dd, .price__amount { font-variant-numeric: tabular-nums; }

/* corners 0-2px (DESIGN.md section 1): the sharp scale at 2px */
html[data-radius="sharp"] { --r-sm: 2px; --r-md: 2px; --r-lg: 2px; --r-btn: 2px; }
h1, h2, h3, .mo-wh__text, .statement-text { font-optical-sizing: auto; font-synthesis: none; }
h1 em, h2 em { font-style: italic; letter-spacing: -0.01em; }

/* ---------------------------------------------------------------- header: a thin gold line along its top */
header.nav::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--gold); pointer-events: none; }
.nav__logo picture { display: block; line-height: 0; }
.nav__logo img { height: 44px; width: auto; }
@media (max-width: 639px) { .nav__logo img { height: 36px; } }

/* the secondary is the underlined text link of DESIGN.md: its words on the column line, no inset */
html[data-buttons="arrow"] .btn--secondary { padding-inline: 0; }

/* small tracked capitals: the nav words, the button labels, the eyebrows (DESIGN.md section 3) */
.nav__link, .btn, .nav__actions .btn { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow { font: 500 13px/1.4 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.ground-inverse .eyebrow { color: var(--muted); }

/* ---------------------------------------------------------------- heroes */
.hero h1 .h1-kicker { display: block; font: 500 13px/1.5 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--s-5); }
.hero h1 .h1-line { display: block; }
@media (max-width: 639px) { .hero h1 .h1-kicker { font-size: 12px; margin-bottom: var(--s-4); } }
/* statement hero (About, Programs, Contact): the eyebrow over the h1, no facts unless the brief gives them */
.hero--statement .hero__text > .eyebrow { margin-bottom: var(--s-5); }
.hero--statement .hero__text > .hero__lead + .hero__lead { margin-top: var(--s-4); }
.hero--statement h1 { max-width: 22ch; }
.hero__facts a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; overflow-wrap: anywhere; }
.hero__facts a:hover { text-decoration-color: currentColor; }
/* word hero (What We Teach, Price List): the eyebrow over the oversized h1; the word is held still on this kind */
.hero--word .hero__eyebrow { margin-bottom: var(--s-5); }
/* the portrait whole (the client's wish): the full 2:3 photograph inside the hero's frame, never cropped;
   on a desktop it stands on the right line, on a tablet on the left line under the words; a phone keeps the
   face-and-shoulders crop, since the whole portrait does not fit its first screen */
@media (min-width: 640px) {
  .hero--portrait .hero__media { background: transparent; border-radius: 0; }
  .hero--portrait .hero__media > picture > img { object-fit: contain; object-position: right top; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hero--portrait .hero__media > picture > img { object-position: left top; }
}
.develop.founder__photo--whole { background: transparent; border-radius: 0; }
:is(.mo-pd, [data-moment="picture-develops"]).founder__photo--whole > img { object-fit: contain; object-position: right top; }
@media (max-width: 1023px) {
  .develop.founder__photo--whole { aspect-ratio: 2 / 3; max-width: 420px; height: auto; }
  :is(.mo-pd, [data-moment="picture-develops"]).founder__photo--whole > img { object-position: left top; }
}

/* masterclasses: the black-and-white photograph at its own 3:2, so no face at its edges is cut */
@media (min-width: 1024px) {
  .hero--photo-32 .hero__grid { align-items: start; }
  .hero--photo-32 .hero__media { height: auto; aspect-ratio: 3 / 2; align-self: start; }
}

/* ---------------------------------------------------------------- statements (#about, #mission, #education, #intake) */
.statement .eyebrow { margin-bottom: var(--s-6); }
.statement .mo-wh__text, .statement-text { max-width: 1040px; }
.statement-text { font: var(--display-weight) clamp(24px, 1.6vw + 14px, 36px)/1.22 var(--font-display); letter-spacing: var(--display-tracking); text-wrap: pretty; }
.about__cols, .mission__cols, .intake__cols { margin-top: var(--s-8); }
.about__cols > p, .mission__cols > p, .intake__cols > p { font-size: 18px; line-height: 1.65; max-width: 46ch; }
.about__more, .intake__btn { margin-top: var(--s-6); }
#mission .section-head { margin-bottom: var(--s-6); }
.intake h2 { margin-bottom: var(--s-6); }
.intake .mo-wh__text { font-size: clamp(24px, 1.6vw + 14px, 36px); line-height: 1.22; max-width: 980px; }
@media (max-width: 639px) {
  .about__cols, .mission__cols, .intake__cols { margin-top: var(--s-6); row-gap: var(--s-4); }
  .about__cols > p, .mission__cols > p, .intake__cols > p { font-size: 16px; }
}

/* ---------------------------------------------------------------- photographs in the statements (16 Nov photographs) */
.mission__photo, .education__photo { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.mission__photo img, .education__photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* #mission: two paragraphs on the page's split lines (span-5 and span-5 start-7), then on its second screen the
   group at its whole 3:2 with the last paragraph beside it, both top-aligned */
#mission .mission__cols > p { max-width: none; }
.mission__photo { aspect-ratio: 3 / 2; align-self: start; }
main > .section.g2 > .wrap > .grid.mission__row { align-content: start; align-items: start; row-gap: var(--s-6); }
.mission__last { font-size: 18px; line-height: 1.65; }
/* #education: the statement beside the high-tea table (1:1) */
.education__row { align-items: start; row-gap: var(--s-7); }
.education__photo { aspect-ratio: 1 / 1; }
.statement .education__row > .mo-wh__text { max-width: none; font-size: clamp(24px, 1.6vw + 14px, 36px); line-height: 1.22; }
@media (min-width: 640px) and (max-width: 1023px) {
  .education__photo { width: min(100%, 500px); }
  .mission__photo { width: min(100%, 640px); }
}
@media (max-width: 639px) {
  /* a phone keeps #mission one screen, as before: the group photograph shows from the tablet up (two phone screens
     would leave a hole in the middle, and a 4:5 or 1:1 crop of the group would cut faces at its edges) */
  #mission { --hm: 1; }
  .mission__photo { display: none; }
  .mission__last { font-size: 16px; }
  .education__row { row-gap: var(--s-6); }
}
/* Programs: the notes photograph in the split hero, around the phone */
.hero--notes .hero__media > picture > img { object-position: var(--ly-pos); }

/* ---------------------------------------------------------------- #teach (home): numbered titles in two columns */
.teach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto);
  grid-auto-flow: column; column-gap: var(--gutter); align-content: start; }
.teach__list { display: contents; }
.teach__list > li, .teach__more { display: flex; align-items: baseline; gap: var(--s-5); min-height: 112px; padding-block: var(--s-6); border-bottom: 1px solid var(--line); }
.teach__more { border-bottom: 0; align-items: center; }
.teach__n, .topics__n { flex: none; width: 3ch; font: 500 13px/1 var(--font-text); letter-spacing: 0.14em; color: var(--accent); font-variant-numeric: tabular-nums; }
.teach__t { font: var(--display-weight) 30px/1.2 var(--font-display); letter-spacing: -0.012em; text-wrap: balance; }
@media (max-width: 1023px) {
  .teach { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .teach__list > li, .teach__more { min-height: 88px; padding-block: var(--s-5); align-items: center; }
  .teach__t { font-size: 26px; }
}
@media (max-width: 639px) {
  .teach__list > li, .teach__more { min-height: 0; padding-block: var(--s-4); align-items: baseline; }
  .teach__t { font-size: 22px; }
}

/* ---------------------------------------------------------------- .topics: titles with their lines, two columns */
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column;
  column-gap: var(--gutter); align-content: start; }
.topics--plain { grid-template-rows: repeat(3, auto); }
.topics__row { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-5); row-gap: var(--s-2); align-content: start;
  padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.topics__row--plain { grid-template-columns: minmax(0, 1fr); }
.topics__n { grid-row: 1; padding-top: 9px; }
.topics__t { font: var(--display-weight) 26px/1.2 var(--font-display); letter-spacing: -0.01em; }
.topics__d { grid-column: -2 / -1; font-size: 16px; line-height: 1.6; max-width: 58ch; }
@media (max-width: 1023px) {
  .topics, .topics--plain { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
}
@media (min-width: 640px) and (max-width: 1023px) { #subjects { --h: 2; } }
@media (max-width: 639px) { .topics__t { font-size: 22px; } .topics__row { padding-block: var(--s-4); } }

/* ---------------------------------------------------------------- .programs (home): sand cards, no shadow */
.programs { align-content: start; }
.programs > .card, .prices > .card { --c-border: transparent; --c-hi: transparent; --c-sh: transparent; background: var(--surface); justify-content: flex-start; }
.programs > .card > h3, .prices > .card > h3 { font: var(--display-weight) 26px/1.2 var(--font-display); letter-spacing: -0.01em; }
.programs > .card > p, .prices > .card > p { margin-top: var(--s-3); max-width: 52ch; color: var(--ink); }
@media (min-width: 1024px) { .programs > .card { min-height: 188px; } }
.programs--three { margin-top: var(--card-gap); }
/* a tablet keeps the three on one row, so the section stays one screen (system.css would stack span-4 text cards) */
@media (min-width: 640px) and (max-width: 1023px) { .programs--three > .card.span-4 { grid-column: auto / span 4; } }
@media (max-width: 639px) { .programs > .card > h3, .prices > .card > h3 { font-size: 22px; } .programs--three { margin-top: 0; } }

/* ---------------------------------------------------------------- .band: the espresso band, a large serif heading (Sol Haus) */
.band .eyebrow { margin-bottom: var(--s-4); }
.band__title { font: var(--display-weight) calc(var(--t-h2) * 1.29)/1.04 var(--font-display); letter-spacing: -0.022em; max-width: 19ch; }
.band__row { margin-top: var(--s-7); align-items: stretch; }
.band__text p, .band__lead { font-size: 18px; line-height: 1.6; max-width: 48ch; }
.band__text .btn-row { margin-top: var(--s-5); }
.band__photo { background: var(--p-inv-surface); }
.frame > picture.frame__img { display: block; }
.frame > picture.frame__img > img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
.band__photo { --pos: 50% 36%; }
.band__lead { margin-top: var(--s-6); }
#global .mo-wh__text { margin-top: var(--s-7); font-size: clamp(24px, 1.6vw + 14px, 36px); line-height: 1.22; max-width: 980px; }
.band__cols { margin-top: var(--s-7); }
.band__cols h3 { font: var(--display-weight) 26px/1.2 var(--font-display); }
.band__cols p { margin-top: var(--s-3); font-size: 16px; line-height: 1.6; max-width: 52ch; }
@media (max-width: 1023px) {
  #masterclass .band__row.fill { flex: none; row-gap: var(--s-6); }
  #masterclass .band__photo { --ratio: 66.6%; }
  .band__cols > div { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- #founder (About): text beside the portrait */
.founder { align-items: start; }
.founder__text > .eyebrow { margin-bottom: var(--s-4); }
.founder__text > h2 { margin-bottom: var(--s-6); }
.founder__text > p { font-size: 16px; line-height: 1.6; }
.founder__text > p + p { margin-top: var(--s-3); }
.develop { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(620px, calc(100svh - var(--padt) - var(--padb))); background: var(--surface); }
@media (max-width: 1023px) { .develop { height: auto; aspect-ratio: 4 / 5; margin-top: var(--s-7); } }
@media (min-width: 640px) and (max-width: 1023px) { #founder { --h: 2; } .develop { aspect-ratio: 1 / 1; } }
@media (max-width: 639px) { .develop { aspect-ratio: 4 / 5; margin-top: var(--s-6); } }

/* ---------------------------------------------------------------- .prices (hidden Price List) */
.prices > .price { display: flex; flex-direction: column; }
.prices > .price > h3 { text-transform: uppercase; letter-spacing: 0.06em; font-size: 22px; }
.price__amount { margin-top: var(--s-5) !important; font: var(--display-weight) 32px/1.15 var(--font-display) !important; letter-spacing: -0.01em; }
.price__term { margin-top: var(--s-1) !important; color: var(--muted) !important; }
.price__btn { margin-top: auto; padding-top: var(--s-5); }
@media (min-width: 1024px) { .prices > .price { min-height: 268px; } }
/* a tablet: two cards a row are 336px wide, so the longest label sits a touch tighter to stay inside its card */
@media (min-width: 640px) and (max-width: 1023px) { .prices > .card { --c-pad: 20px; } .prices .btn { letter-spacing: 0.04em; padding-inline: 14px; } }

/* ---------------------------------------------------------------- the enquiry form (Contact) */
.form.enquiry { display: block; }
.enquiry__grid { row-gap: var(--s-5); align-items: start; }
.field label { font-weight: 500; }
.field__opt { font-weight: 400; color: var(--muted); }
.field :is(input, select, textarea) { background: #fffdf9; }
.field select { appearance: none; padding-right: var(--s-7);
  background: #fffdf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%232b1e19' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; }
.field textarea { min-height: 112px; }
.field--check { display: block; font-weight: 400; }
/* the box and its words are one hit target */
.field--check .check { display: inline-flex; align-items: flex-start; gap: var(--s-3); font-weight: 400; font-size: 15px; line-height: 1.5; cursor: pointer; }
.field--check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.check__link { display: inline-block; margin-left: calc(22px + var(--s-3)); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.field--check .field__error { margin-top: var(--s-2); }
.field--trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enquiry__send { display: flex; justify-content: flex-end; }
/* phone and country share a row; with the intake's format beside them, three to a row */
.enquiry__grid:has(> [data-topic-only="intake"]:not([hidden])) > .f-half { grid-column: auto / span 4; }
.hero__facts--two > div { grid-column: auto / span 6; }
.form__status { margin-top: var(--s-4); }
.form__sent { display: none; margin-top: var(--s-4); padding: var(--s-4) var(--s-5); background: var(--surface); font-size: 16px; }
.form__sent:target, .form__sent.is-shown { display: block; }
[data-topic-only][hidden] { display: none !important; }
@media (min-width: 640px) and (max-width: 1023px) {
  .enquiry__grid > .span-4, .enquiry__grid:has(> [data-topic-only="intake"]:not([hidden])) > .f-half { grid-column: auto / span 4; }
  .enquiry__grid > .f-half { grid-column: auto / span 6; }
  .enquiry__grid > .span-3 { grid-column: auto / span 6; }
  .enquiry__grid > .span-8 { grid-column: 1 / span 8; }
}
@media (max-width: 639px) {
  .enquiry__send { justify-content: stretch; }
  .enquiry__send .btn { width: 100%; }
}

/* ---------------------------------------------------------------- footer.closing */
.closing__cta .t-lead { max-width: 58ch; }
.footer__logo img { height: 72px; }
.closing__links .footer__lede { font-size: 22px; max-width: 26ch; }
.footer__col h3 { font: 500 13px/1.4 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.footer__copy { margin: 0; }
.footer__copy a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.footer__copy a:hover { text-decoration-color: currentColor; }
@media (max-width: 639px) { .footer__logo img { height: 56px; } }
.footer a { overflow-wrap: anywhere; }
/* the legal row's end: the privacy link, then email and Instagram as icons (the client's wish, 16 Nov) */
.closing__links > .footer__legal { align-items: center; }
.footer__end { display: flex; align-items: center; gap: var(--s-5); }
footer .footer__end .socials a { display: inline-grid; place-items: center; min-width: 0; min-height: 0; }
/* just the icon, no frame (the client's wish); the link keeps a 40px (44px on a phone) area to tap */
.footer__end .socials { gap: 0; }
.footer__end .socials a { width: 40px; height: 40px; border: 0; border-radius: var(--r-sm); color: var(--ink); transition: color .2s; }
.footer__end .socials a:hover { color: var(--accent); }
.footer__end .socials a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.footer__end .socials svg { width: 20px; height: 20px; }
@media (max-width: 639px) {
  .footer__end { width: 100%; justify-content: space-between; }
  .footer__end .socials a { width: 44px; height: 44px; }
  /* the Regium link is a link inside a sentence: it keeps the line's own height (an inline link needs no 44px box) */
  .footer .footer__copy a:not(.btn) { display: inline; min-height: 0; min-width: 0; }
}

/* ---------------------------------------------------------------- plain pages (Privacy Policy, 404): not a Taste page */
main.plain { padding: calc(var(--nav) + var(--s-9)) 0 var(--s-9); }
.plain__body { max-width: 760px; }
.plain__body h1 { font-size: clamp(40px, 3vw + 20px, 64px); line-height: 1.06; margin-top: var(--s-4); }
.plain__body h2 { font-size: 28px; line-height: 1.2; margin-top: var(--s-8); }
.plain__body p { margin-top: var(--s-4); font-size: 17px; line-height: 1.7; max-width: 62ch; }
.plain__body a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.plain__lead { font-size: 20px !important; }
.plain--404 { min-height: 70svh; }
body.page-plain footer.closing { height: auto; min-height: 100svh; }

/* ---------------------------------------------------------------- phones: the button labels a touch tighter, so the
   longest label ("Request an Intake Consultation") stays on one line inside a card */
@media (max-width: 639px) { .btn { letter-spacing: 0.06em; padding-inline: var(--s-4); } }

/* ---------------------------------------------------------------- the narrowest phones (320-399) */
@media (max-width: 399px) {
  .btn { white-space: normal; text-align: center; height: auto; min-height: var(--btn-h); padding-block: 12px; line-height: 1.3; }
  .nav:not(.is-open) .nav__actions .btn { padding-inline: var(--s-3); font-size: 12px; letter-spacing: 0.06em; }
  .nav:not(.is-open) .nav__actions .btn::after { display: none; }
}
