/* Ask Your Dreams / Paklausk Sapnų: the public landing page at askyourdreams.app.
   The look is the app's own (app/static/app.css, design direction D): the same colour tokens, Fraunces for headings,
   DM Sans for text, the same button and the same rounded picture. One difference: the app's night look is a manual
   choice in its settings; this page has no settings, so it follows the device's light or dark mode.
   No request leaves this site: the fonts are served from fonts/ (OFL, see the licence files beside them). */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/fraunces-latin-opsz-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/fraunces-latin-ext-opsz-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(fonts/dm-sans-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url(fonts/dm-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The app's light tokens ("Day garden"). */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --soft: #f1eee7;
  --chip: #efece4;
  --line: #e4e1d8;
  --border: #8e90a6;
  --fg: #1a1b2e;
  --muted: #5f6177;
  --link: #2d3a8c;
  --btn: #1a1b2e;
  --btn-fg: #fbfaf7;
  --shadow: 0 10px 24px rgba(26, 27, 46, 0.16);
  --num: #ffffff;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}
/* The app's night tokens, taken when the device is in dark mode. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12142b;
    --surface: #1c1f3f;
    --soft: #1c1f3f;
    --chip: #262a52;
    --line: #343968;
    --border: #5a5f99;
    --fg: #f3efe6;
    --muted: #b4b6d0;
    --link: #f2b950;
    --btn: #f2b950;
    --btn-fg: #12142b;
    --shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    --num: #343968;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: break-word;
}
p {
  margin: 0;
}
a {
  color: var(--link);
}
:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}
img {
  display: block;
  max-width: 100%;
}

/* One calm column, as in the app; only the painting may be wider on a large screen. */
.col {
  max-width: 32rem;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.brand img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.toplink {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.toplink:hover {
  text-decoration: underline;
}

/* the painting with the name: on a phone the name sits on a card over the foot of the picture */
.hero {
  max-width: 32rem;
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}
.hero-in {
  position: relative;
}
.hero-pic {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
}
.hero-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero-text {
  position: relative;
  margin: -64px 14px 0;
  padding: 20px 22px 22px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.motto {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  color: var(--muted);
  text-wrap: balance;
}

/* sections */
main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 48px;
}
section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}
.lead {
  font-size: 19px;
  line-height: 1.5;
}

/* the main action */
.action {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn {
  min-height: 56px;
  border-radius: 28px;
  padding: 10px 22px;
  background: var(--btn);
  color: var(--btn-fg);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn:hover {
  filter: brightness(1.12);
}
.btn3 {
  align-self: center;
  min-height: 44px;
  min-width: 44px;
  border-radius: 22px;
  padding: 6px 22px;
  background: var(--surface);
  color: var(--fg);
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn3:hover {
  background: var(--chip);
}
.quiet {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* how a session goes: three numbered cards */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--soft);
  border-radius: 20px;
  padding: 18px 20px 20px;
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 14px;
  row-gap: 6px;
}
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--num);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps p {
  color: var(--fg);
}

/* about the author */
.author {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.author-photo {
  width: min(100%, 300px);
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 20px;
}
.author-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
}

/* good to know */
.know {
  background: var(--soft);
  border-radius: 20px;
  padding: 20px;
  gap: 10px;
}
.know h2 {
  font-size: 21px;
}

.again {
  align-items: center;
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 8px;
  row-gap: 0;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
.foot .dot {
  color: var(--border);
}

/* A wider screen: the wide painting as a band, the name on its light sky at the left (as the app sets Severija's
   slogans). The painting is light in both modes, so the ink there is fixed dark. */
@media (min-width: 760px) {
  .hero {
    max-width: 68rem;
  }
  .hero-pic {
    aspect-ratio: 1400 / 467;
  }
  .hero-pic img {
    object-position: 100% 50%;
  }
  .hero-text {
    position: absolute;
    inset: 0 auto 0 0;
    margin: 0;
    max-width: 52%;
    padding: 0 0 0 clamp(28px, 5vw, 64px);
    justify-content: center;
    background: none;
    box-shadow: none;
    border-radius: 0;
  }
  h1 {
    font-size: clamp(36px, 4.4vw, 52px);
    color: #1a1b2e;
  }
  .motto {
    font-size: clamp(19px, 2vw, 23px);
    color: #3d3f58;
  }
  main {
    padding-top: 48px;
  }
  .author {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: start;
  }
  .author-photo {
    width: 200px;
  }
  .author-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}
@media (min-width: 760px) and (max-width: 919px) {
  .hero-text {
    max-width: 58%;
  }
}
.author-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* The narrowest phones (320 px): the name in the header on one line, the step cards a little roomier. */
@media (max-width: 359px) {
  .col,
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand {
    font-size: 19px;
    white-space: nowrap;
    gap: 8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .steps li {
    grid-template-columns: 1fr;
    padding: 16px 18px 18px;
  }
  .steps li::before {
    grid-row: auto;
  }
  h1 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
