/* Free online seminar, Natalia Alenina. Two pages: sign-up and "your place is saved". Phone first. */

:root {
  --grey: #c7c6c8;      /* backdrop of her photo shoot */
  --paper: #f5f4f2;
  --tint: #ebe9e6;
  --ink: #172033;       /* the navy she wears in the photos */
  --soft: #555c6b;
  --line: rgba(23, 32, 51, .16);
  --teal: #386272;      /* her logo */
  --bad: #a4262c;
  --todo: #ffe45c;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; font: 400 17px/1.55 var(--sans); color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

h1, h2, blockquote { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 9.4vw, 54px); line-height: 1.06; }
h2 { font-size: clamp(28px, 7vw, 42px); line-height: 1.12; margin-bottom: 28px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.block { padding: 72px 0; }
.tint { background: var(--tint); }
.small { font-size: 14px; line-height: 1.45; color: var(--soft); }
.eyebrow { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--teal); margin-bottom: 16px; }
.lead { font-size: 18px; line-height: 1.5; }
.textlink { font-weight: 600; text-underline-offset: 4px; }

/* Working notes: yellow, counted by the bar at the top. */
.todo { background: var(--todo); color: var(--ink); padding: 1px 6px; border-radius: 3px; font-weight: 500; }
.draft { background: var(--todo); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.4; padding: 8px var(--pad); text-align: center; }
.note { margin: -12px 0 28px; font-size: 14px; }

/* Dark line at the top: the date and the time left */
.strip { background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; line-height: 1.5; text-align: center; padding: 10px var(--pad); }
.count { display: block; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .78); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: 600 17px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--teal); }
.btn[disabled] { opacity: .6; cursor: default; }

/* First page: one screen */
.hero { background: var(--grey); overflow: hidden; }
.hero-text { padding: 36px var(--pad) 8px; max-width: 640px; }
.hero .eyebrow { color: var(--ink); }
.hero .lead { margin: 18px 0 26px; }
.hero-photo img { width: 100%; }

.signup { scroll-margin-top: 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; min-height: 54px; padding: 0 14px; border: 1px solid rgba(23, 32, 51, .34); border-radius: 8px; background: #fff; color: var(--ink); font: 400 17px/1.2 var(--sans); appearance: none; -webkit-appearance: none; }
.field input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field.bad input { border-color: var(--bad); }
.field-error { margin-top: 6px; font-size: 14px; color: var(--bad); }
.signup .btn { width: 100%; margin-top: 4px; }
.signup .small { margin-top: 12px; color: var(--ink); }
.form-status { margin-top: 12px; font-size: 15px; color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.over { font-size: 18px; font-weight: 500; }

.teacher { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.teacher img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.teacher ul { font-size: 14px; font-weight: 500; line-height: 1.5; }
.teacher li { display: inline; }
.teacher li:not(:last-child)::after { content: "\00a0\00b7\00a0"; }

/* Three things */
.steps li { display: grid; grid-template-columns: 52px 1fr; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .num { font: 500 22px/1.3 var(--serif); color: var(--teal); }
.steps p { font-size: 18px; line-height: 1.45; }
.steps + .btn { width: 100%; margin-top: 36px; }

/* Second page: the place is saved */
.confirm { background: var(--grey); padding: 56px 0 64px; }
.confirm .eyebrow { color: var(--ink); }
.confirm .lead { margin-top: 18px; }
.actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 28px; }
.actions .btn { width: 100%; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices button { min-height: 56px; padding: 0 12px; border: 1px solid rgba(23, 32, 51, .34); border-radius: 8px; background: #fff; color: var(--ink); font: 600 17px/1.2 var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.choices button:hover { background: var(--ink); color: #fff; }
.choices button[disabled] { opacity: .6; cursor: default; }
.answered { font-size: 19px; font-weight: 500; }

/* Rows with thin lines */
.rows li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.45; }
.rows li:last-child { border-bottom: 1px solid var(--line); }

/* Her sentence */
.quote { background: var(--ink); color: #fff; padding: 72px 0; }
.quote blockquote { font-size: clamp(32px, 8.4vw, 56px); line-height: 1.1; }
.quote figcaption { margin-top: 20px; font-size: 15px; color: rgba(255, 255, 255, .72); }
.quote-side { margin-top: 44px; }
.quote-side img { width: 100%; border-radius: 12px; }
.quote-side p { margin-top: 24px; color: rgba(255, 255, 255, .86); }

/* The usual way against hers */
.versus-head { display: none; }
.versus li { padding: 20px 0; border-top: 1px solid var(--line); }
.versus li:last-child { border-bottom: 1px solid var(--line); }
.versus .tag { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.versus .old { color: var(--soft); }
.versus .new { margin-top: 14px; font-size: 19px; font-weight: 500; line-height: 1.4; }
.versus .new .tag { color: var(--teal); }

/* Teacher */
.about-photo { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin-bottom: 28px; }
.about h2 { margin-bottom: 20px; }
.about p + p { margin-top: 14px; }
.figures { margin-top: 44px; }
.figures div { padding: 22px 0; border-top: 1px solid var(--line); }
.figures div:last-child { border-bottom: 1px solid var(--line); }
.figures dt { font: 500 clamp(44px, 12vw, 64px)/1 var(--serif); letter-spacing: -.02em; }
.figures dd { margin-top: 8px; color: var(--soft); }
.warmup { margin-top: 28px; color: var(--soft); }
.warmup .textlink { display: block; color: var(--ink); margin-bottom: 4px; }

/* Upright numerals. Set here, after the font shorthands that would reset it. */
.figures dt, .steps .num { font-variant-numeric: lining-nums; }

/* Footer */
.foot { background: var(--ink); color: rgba(255, 255, 255, .86); padding: 32px 0; font-size: 15px; }
.foot .small { color: rgba(255, 255, 255, .6); margin-top: 10px; }
.has-sticky .foot { padding-bottom: 104px; }   /* room for the button under the thumb */

/* Button under the thumb on a phone */
.sticky { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5; min-height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--ink); color: #fff; font: 600 17px/1 var(--sans); text-decoration: none; transition: transform .25s, opacity .25s; }
.sticky.off { transform: translateY(140%); opacity: 0; pointer-events: none; }

@media (min-width: 900px) {
  :root { --pad: 40px; }
  body { font-size: 18px; }
  .has-sticky .foot { padding-bottom: 32px; }
  .sticky { display: none; }
  .block, .quote { padding: 112px 0; }
  h2 { margin-bottom: 40px; }
  .count { display: inline; }
  .count::before { content: "\00b7\00a0"; margin-left: 4px; }

  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding-left: max(var(--pad), calc((100vw - 1120px) / 2 + var(--pad))); }
  .hero-text { padding: 40px 32px 40px 0; max-width: 620px; }
  .hero .lead { font-size: 19px; margin: 18px 0 24px; }
  .hero-photo { align-self: end; }
  .hero-photo img { width: 100%; max-height: 720px; object-fit: contain; object-position: right bottom; }
  .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .signup .btn { margin-top: 0; }

  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .steps li { display: block; padding: 24px 0 0; border-bottom: 0 !important; }
  .steps .num { display: block; font-size: 26px; margin-bottom: 14px; }
  .steps p { font-size: 20px; }
  .steps + .btn { width: auto; margin-top: 48px; }

  .confirm { padding: 96px 0 104px; }
  .confirm .lead { font-size: 21px; }
  .actions { flex-direction: row; align-items: center; gap: 28px; }
  .actions .btn { width: auto; }
  .choices { grid-template-columns: repeat(4, 1fr); }

  .rows li { font-size: 20px; padding: 22px 0; }

  .quote-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
  .quote-side { margin-top: 0; }

  .versus-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 14px; font-size: 14px; font-weight: 600; }
  .versus-head span:last-child { color: var(--teal); }
  .versus li { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: baseline; padding: 26px 0; }
  .versus .tag { display: none; }
  .versus .new { margin-top: 0; font-size: 21px; }

  .about { display: grid; grid-template-columns: 320px 1fr; gap: 72px; align-items: center; }
  .about-photo { width: 320px; height: 320px; margin: 0; }
  .about p { max-width: 620px; }
  .figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 80px; }
  .figures div { border-bottom: 0 !important; padding: 28px 0 0; }
  .figures dt { font-size: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky, .choices button { transition: none; }
}
