/* Palette for the home page. */
:root {
  --wine: #24364b;
  --wine2: #354b63;
  --ink: #263343;
  --muted: #576471;
  --soft: #f5f7f9;
  --pale: #f0f3f5;
  --mist: #d7e3ee;
}

.offer { background: white; }
.trial { background: var(--pale); }
.trial-form input:not([type=checkbox]), .trial-form textarea { background: var(--soft); }
.gift { background: white; }
.teacher, .founder-photo { background: var(--pale); }
.teacher-photo { background: #e1e6eb; }
.course-card span, .header-trial, .review:first-child figcaption { color: var(--mist); }
.contacts a:not(.brand), .contacts .text-button { color: white; }
.contact-head, .credits, .review:first-child figcaption { border-color: #64798d; }
.course-card::before { background: radial-gradient(circle at var(--px,70%) var(--py,50%), #57728c 0, transparent 62%); }
dialog::backdrop { background: #192939c4; }

@media (min-width: 1051px) {
  .topnav { background: var(--wine2); }
  .topnav a:hover { color: var(--mist); }
}

speaking-mascot { --face: var(--wine); --arm: #71879d; }
speaking-mascot[scene="lesson"] {
  --body: #c1d2df;
  --leg: var(--wine);
  --arm: #5d758a;
  --tongue: white;
}

.home {
  --wine: #4c283d;
  --silver: #bec1cc;
  --mint: #d9eee5;
  --mint-accent: #b2dccb;
  --wine2: #604052;
  --ink: #352b34;
  --muted: #5b5c63;
  --blue: var(--silver);
  --pale: #f8f9fd;
  --mist: #e2e4ec;
  --soft: #f0f1f6;
  --focus: #70556b;
}
.home-hero { background: var(--pale); color: var(--ink); }
.home .offer, .home .trial { background: var(--mint); }
.home .teacher { background: var(--wine); color: var(--pale); }
.home .teacher-photo { background: var(--silver); }
.home .gift { background: var(--mint-accent); }
.home .course-card::before {
  background: radial-gradient(circle at var(--px,70%) var(--py,50%), #654b5e 0, transparent 62%);
}
.home .course-card span .icon { filter: grayscale(1) brightness(1.42); }
.home .gift .icon { filter: grayscale(1); }
.home .contact-head, .home .credits, .home .review:first-child figcaption { border-color: #846f7e; }
.home .lesson-list article + article, .home .review:not(:first-child) figcaption{ border-color: var(--mist); }
.home .consent a { text-decoration-color: var(--focus); }
.home ::selection { background: var(--blue); color: var(--ink); }
.home :focus-visible, .home .trial-form :is(input, textarea):focus { outline-color: var(--focus); }
.home :is(.courses, .contacts) :focus-visible { outline-color: var(--blue); }
.home .teacher-track, .home .reviews-grid { scrollbar-color: #989ca9 transparent; }
.home dialog::backdrop { background: #2f192ac4; }
.home-hero .hello, .home-hero .header-trial { color: inherit; }
.home-hero .header-trial:hover { color: var(--wine); }
.home-hero .header-trial .icon { filter: brightness(.27); }
.home-hero .hero-cta { background: var(--wine); color: white; }
.home-hero .hero-cta:hover { background: var(--wine2); }
.home-hero .menu-toggle { background: var(--mint); color: inherit; }
.home speaking-mascot { --leg: var(--wine); }
.home speaking-mascot[kind="talker"] { --body: var(--blue); --face: var(--wine); --arm: #584653; }
.home speaking-mascot[kind="listener"] {
  --body: var(--wine);
  --edge: #665060;
  --face: var(--pale);
  --arm: #918693;
}
.home speaking-mascot[scene="teachers"] {
  --body: var(--mint-accent);
  --edge: var(--mint);
  --face: var(--ink);
  --arm: var(--ink);
  --leg: var(--ink);
}
@media (min-width: 1051px) {
  .home-hero .topnav { background: var(--mint); }
  .home-hero .topnav a:hover { color: var(--wine); }
}

.home .founder-photo, .home .teacher-photo { position: relative; overflow: hidden; }
.home .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home .founder-photo img { object-position: 50% 58%; }
@media (max-width: 600px) {
  .home .founder-photo { aspect-ratio: 4 / 3; max-height: none; }
  .home .founder-photo img { object-position: 50% 42%; }
}
.home .teacher-photo { aspect-ratio: 4 / 3; }
