/*
 * ajdaflasker.com
 *
 * One page, read top to bottom on a phone. Everything here is written for that
 * first, and widened at two breakpoints — 46rem where a phone becomes a
 * tablet, 64rem where two columns start to earn their place.
 *
 * Colours are Ajda's own palette: forest green for grounded wisdom, dusty rose
 * for soft feminine power, warm cream for clarity and space. They are declared
 * once, here, and everything below refers to them by name.
 */

/* --- the two typefaces, self-hosted -------------------------------------- */
/*
 * Served from this server rather than linked to Google. A page that promises
 * privacy on its own privacy page should not be telling a third party who
 * opened it, and one fewer host is one fewer thing between a reader and the
 * text.
 */

@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/marcellus-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/marcellus-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/raleway-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/raleway-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- the palette --------------------------------------------------------- */

:root {
  --cream: #f8f4ef;
  --cream-deep: #f0e9e1;
  --paper: #fffdfa;
  --ink: #2e2e2e;
  --ink-soft: #5b5b58;

  --green: #2f5d50;
  --green-deep: #24483e;
  --green-soft: #3f6656;

  --rose: #c98f9c;
  --rose-pale: #f3e6e8;
  --mauve: #a97c8d;
  --sage: #aab5a0;

  --serif: 'Marcellus', Georgia, 'Times New Roman', serif;
  --sans: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --wrap: 68rem;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(46, 46, 46, .04), 0 8px 28px rgba(47, 93, 80, .07);
}

/* --- the ground ---------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* A <picture> is inline by default, which leaves a text-line's worth of space
   under every photo on the page. Every photo here is a block. */
picture { display: block; }

a { color: var(--green); }
a:hover { color: var(--mauve); }

:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .002em;
  color: var(--green);
  margin: 0 0 .6em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--cream);
  padding: .7rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0; }

/* Present for a robot, gone for everyone else. Not display:none — some of
   them know to skip a field nobody can see at all. */
.nowhere {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- the shared pieces --------------------------------------------------- */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.wrap--narrow { width: min(100% - 2.5rem, 42rem); }

.center { text-align: center; }

.section { padding: clamp(3.25rem, 9vw, 6rem) 0; }

.section__title {
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
}

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mauve);
  margin: 0 0 .9rem;
}

.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--rose-pale);
  border-radius: 100px;
  padding: .35rem .85rem;
  margin: 0 0 1.1rem;
}

.prose > :last-child { margin-bottom: 0; }
.prose a { text-underline-offset: .18em; }

.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.2rem; }
.prose li { margin-bottom: .4em; }

.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }

.prose--light, .prose--light p { color: rgba(248, 244, 239, .92); }

/* --- the button ---------------------------------------------------------- */

.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  color: var(--cream);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 100px;
  padding: .95rem 1.9rem;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--cream);
  transform: translateY(-1px);
}

.button--small { padding: .6rem 1.15rem; font-size: .85rem; }
.button--wide { width: 100%; padding-block: 1.05rem; }

/* --- the masthead -------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2rem);
  background: rgba(248, 244, 239, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 93, 80, .1);
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.masthead__mark { width: 44px; height: auto; flex: none; }

.masthead__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.masthead__name strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: .05em;
  color: var(--green);
  white-space: nowrap;
}

.masthead__name span {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mauve);
  white-space: nowrap;
}

/* On a narrow phone the tagline and the button fight over the same row, and
   the button is the one with something to do. */
@media (max-width: 26rem) {
  .masthead__name span { display: none; }
  .masthead__mark { width: 36px; }
}

/* --- the hero ------------------------------------------------------------ */

.hero { position: relative; background: var(--cream); }

.hero__image img {
  width: 100%;
  height: clamp(17rem, 52vw, 30rem);
  object-fit: cover;
  object-position: 62% 40%;
}

.hero__panel {
  width: min(100% - 2.5rem, var(--wrap));
  margin: -3rem auto 0;
  position: relative;
  background: var(--cream);
  padding: clamp(1.6rem, 5vw, 2.6rem) clamp(1.4rem, 4vw, 2.6rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__title {
  font-size: clamp(1.95rem, 6vw, 3.2rem);
  margin-bottom: .5em;
}

.hero__text {
  max-width: 34rem;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}

/* --- the question -------------------------------------------------------- */

.section--question { padding-bottom: 0; }

.question {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  line-height: 1.35;
  color: var(--green);
  margin: 0;
  text-wrap: balance;
}

/* --- the webinar --------------------------------------------------------- */

.webinar { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }

.webinar__card {
  background: var(--paper);
  border: 1px solid rgba(47, 93, 80, .12);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 2.6rem);
  box-shadow: var(--shadow);
}

.webinar__title { font-size: clamp(1.45rem, 3.6vw, 2.05rem); }

.webinar__when {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  align-items: baseline;
  font-weight: 600;
  color: var(--green);
  border-top: 1px solid rgba(47, 93, 80, .14);
  border-bottom: 1px solid rgba(47, 93, 80, .14);
  padding: .85rem 0;
  margin-bottom: 1.4rem;
}

.webinar__place { font-weight: 400; color: var(--mauve); }

.webinar__when--past {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
}

.webinar__card .button { margin-top: 1.6rem; }

.webinar__photo img {
  width: 100%;
  height: clamp(15rem, 46vw, 22rem);
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: var(--radius);
}

/* --- what you will learn ------------------------------------------------- */

.section--learn { background: var(--cream-deep); }

.takeaways {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.takeaway {
  background: var(--paper);
  border-radius: var(--radius);
  border-left: 3px solid var(--rose);
  padding: 1.4rem 1.5rem;
}

.takeaway__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mauve);
  margin: 0 0 .4rem;
}

.takeaway__title {
  font-size: 1.18rem;
  margin-bottom: .45em;
}

.takeaway__text {
  color: var(--ink-soft);
  font-size: .98rem;
}

/* --- about --------------------------------------------------------------- */

.about { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }

.about__figure { margin: 0; }

.about__figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about__figure figcaption {
  margin-top: .9rem;
  font-size: .84rem;
  letter-spacing: .05em;
  color: var(--mauve);
  text-align: center;
}

.about__text .prose { color: var(--ink-soft); }

/* --- testimonials -------------------------------------------------------- */

.section--quotes { background: var(--rose-pale); }

.quotes {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.quote {
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.3rem;
  box-shadow: 0 1px 2px rgba(46, 46, 46, .04);
}

.quote blockquote {
  margin: 0 0 1.1rem;
  font-size: .99rem;
  color: var(--ink-soft);
}

.quote blockquote p:first-child::before { content: '“'; }
.quote blockquote p:last-child::after { content: '”'; }

.quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .7rem;
  border-top: 1px solid rgba(201, 143, 156, .35);
  padding-top: .9rem;
}

.quote__author {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--green);
}

.quote__note {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mauve);
}

/* --- the closing invitation and the form --------------------------------- */

.section--closing {
  background: var(--green);
  color: var(--cream);
  scroll-margin-top: 4.5rem;
}

.closing { text-align: center; }

.closing__title {
  color: var(--cream);
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
}

.closing__when {
  margin: 1.6rem 0 0;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--rose);
}

.closing__cta { margin: 2rem 0 0; }

.section--closing .closing__cta .button {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--green-deep);
}

.signup {
  margin-top: 2.2rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  text-align: left;
  box-shadow: 0 18px 40px rgba(20, 40, 34, .22);
}

.signup__heading { font-size: 1.35rem; margin-bottom: .35em; }

.signup__intro {
  color: var(--ink-soft);
  font-size: .93rem;
  margin-bottom: 1.4rem;
}

.signup__error {
  background: #fdecee;
  border-left: 3px solid #b84150;
  color: #7d2531;
  padding: .8rem 1rem;
  margin-bottom: 1.2rem;
  font-size: .93rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* The same shape as .signup__error, in the site's green rather than red.
   Nothing has gone wrong here — somebody is already on the list — and a red
   panel for that reads as a rejection. */
.signup__notice {
  background: #eef4f1;
  border-left: 3px solid var(--green);
  color: var(--green-deep);
  padding: .8rem 1rem;
  margin-bottom: 1.2rem;
  font-size: .93rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.signup__fields { display: grid; gap: 1rem; }

.field { margin: 0; }

.field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .35rem;
}

.field input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(47, 93, 80, .2);
  border-radius: var(--radius);
  padding: .8rem .9rem;
}

.field input:focus {
  border-color: var(--green);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 93, 80, .12);
}

.consent {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  margin: 1.2rem 0 1.4rem;
  font-size: .87rem;
  color: var(--ink-soft);
}

.consent input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .28rem;
  accent-color: var(--green);
}

/* Held back until the tick is cleared; signup.js unhides it. */
.consent__warning {
  background: #fdecee;
  border-left: 3px solid #b84150;
  color: #7d2531;
  padding: .7rem .9rem;
  margin: -.6rem 0 1.4rem;
  font-size: .87rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.consent__warning[hidden] { display: none; }

.button:disabled,
.button[disabled] {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.signup__note {
  margin: .9rem 0 0;
  text-align: center;
  font-size: .82rem;
  color: var(--ink-soft);
}

/* --- plain pages --------------------------------------------------------- */

.section--simple { padding-top: clamp(2.5rem, 7vw, 4.5rem); }
.section--simple .prose { color: var(--ink-soft); }

.back { margin-top: 2.5rem; font-size: .92rem; }

/* --- the footer ---------------------------------------------------------- */

.footer {
  background: var(--cream-deep);
  padding: clamp(2.5rem, 7vw, 4rem) 0 1.5rem;
}

.footer__inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  align-items: start;
}

.footer__mark { width: 5.5rem; height: auto; }

.footer__name {
  margin: .9rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .07em;
  color: var(--green);
}

.footer__tagline {
  margin: .3rem 0 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mauve);
  max-width: 20rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  font-size: .92rem;
}

.footer__links a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: start;
}

.footer__links a:hover {
  color: var(--mauve);
  border-bottom-color: currentColor;
}

.footer__fine {
  width: min(100% - 2.5rem, var(--wrap));
  margin: 2.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(47, 93, 80, .12);
  font-size: .78rem;
  color: var(--ink-soft);
}

/* --- tablet -------------------------------------------------------------- */

@media (min-width: 46rem) {
  .hero__image img { object-position: 60% 40%; }

  .hero__panel {
    margin-top: -5rem;
    width: min(100% - 4rem, var(--wrap));
    max-width: 42rem;
    margin-right: auto;
    margin-left: max(2rem, calc(50vw - var(--wrap) / 2));
  }

  .takeaways { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .takeaways .takeaway:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .quotes { grid-template-columns: repeat(2, 1fr); }
  .quotes .quote:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .signup__fields { grid-template-columns: 1fr 1fr; }

  .footer__inner { grid-template-columns: 1fr auto; gap: 3rem; }
  .footer__links { align-items: flex-end; }
}

/* --- desktop ------------------------------------------------------------- */

@media (min-width: 64rem) {
  .hero__image img { height: 34rem; }

  .webinar {
    grid-template-columns: 1.35fr .95fr;
    align-items: stretch;
  }

  .webinar__photo, .webinar__photo img { height: 100%; }

  .takeaways { grid-template-columns: repeat(3, 1fr); }
  .takeaways .takeaway:last-child:nth-child(odd) { grid-column: auto; }

  .about {
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
  }

  .quotes { grid-template-columns: repeat(3, 1fr); }
  .quotes .quote:last-child:nth-child(odd) { grid-column: auto; }
}

/* --- print --------------------------------------------------------------- */

@media print {
  .masthead, .skip, .button, .signup { display: none; }
  body { background: #fff; }
}
