/* Lehespetsiifiline kujundus. Jagatud kaardi-/modaali-stiilid: card.css. */
html { overflow-x: hidden; }  /* väldib .hero-block 100vw horisontaalset kerimist */
body {
  font-family: "Geist", system-ui, sans-serif;
  font-size: var(--text-base);
  font-weight: 500;
  background: var(--paper);
  max-width: 480px;
  margin: 0 auto;
  padding: clamp(.75rem, 2.5vw, 1.5rem)
           max(1.25rem, env(safe-area-inset-right))
           clamp(3rem, 8vw, 5rem)
           max(1.25rem, env(safe-area-inset-left));
  line-height: 1.5;
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* Päise taustariba: ulatub akna servast servani (murrab 480px veerust välja). */
.hero-block {
  background: #F7F3E6;
  width: 100vw;
  margin: calc(-1 * clamp(.75rem, 2.5vw, 1.5rem)) 0 0 50%;
  transform: translateX(-50%);
  padding: clamp(.75rem, 2.5vw, 1.5rem) 0 2rem;
}
.hero-block > * {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1.25rem, env(safe-area-inset-right));
  padding-right: max(1.25rem, env(safe-area-inset-left));
  box-sizing: border-box;
}
.hero {
  text-align: center;
  margin-bottom: 3.5rem;
}
h1 {
  font-size: var(--text-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.intro p {
  margin: 0 0 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.intro p:last-child { margin-bottom: 0; }
.feedback-cta p {
  margin: 0 0 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.feedback-cta .trigger { margin: .5rem 0 0; }
.phase-summary {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.moon-icon {
  font-size: 1.1em;
  line-height: 1;
}
.diagram {
  margin: 2.5rem 0 0;
  text-align: center;
}
/* Lauaarvuti-ekraanidel murrab joonis 480px veerust välja, kuni 800px laiuseni. */
@media (min-width: 700px) {
  .diagram {
    width: min(800px, 92vw);
    margin-left: 50%;
    transform: translateX(-50%);
  }
}
.diagram img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.diagram figcaption {
  margin-top: .5rem;
  font-size: var(--text-sm);
  color: var(--text-2);
  text-wrap: pretty;
}
h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 7vw, 1.875rem);
  font-weight: 400;
  margin: 4rem 0 1rem;
  text-wrap: balance;
}
.lead {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.375rem, 6.5vw, 1.6875rem);
  line-height: 1.25;
  color: var(--text-1);
  margin: 0 auto 1.75rem;
  text-wrap: pretty;
}
.poem {
  margin: 6rem 0 5rem;
}
.poem p {
  margin: 0;
}
.poem p + p {
  margin-top: 1.5rem;
}
.poem > p:first-child {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 7vw, 1.875rem);
  line-height: 1.15;
  text-align: center;
  color: var(--text-1);
}
.poem-translation {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text-1);
  line-height: 1.2;
  text-align: center;
}
.poem-source {
  font-family: "Geist", system-ui, sans-serif;
  font-size: var(--text-sm);
  color: var(--text-3);
  text-align: center;
  text-wrap: pretty;
}
.actions { text-align: center; margin-bottom: 3rem; }
.actions .trigger { margin: 0; }
.actions .trigger + .trigger { margin-top: .6rem; }
.app-cta { margin: 1.25rem 0 0; }
.cal-label { margin: 2rem 0 .5rem; color: var(--text-2); }
.cal-label:first-of-type { margin-top: .5rem; }
.howto-title { font-size: var(--text-sm); margin: 1.25rem 0 .25rem; }
.subscribe { display: flex; align-items: center; gap: .75rem; margin: .5rem 0 1.5rem; flex-wrap: wrap; }
.subscribe a { font-size: var(--text-sm); word-break: break-all; }
.subscribe button {
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  min-height: 2.75rem;
  padding: .4rem 1.1rem;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  background: var(--black);
  color: var(--paper);
  transition-property: opacity, scale;
  transition-duration: .15s;
}
.subscribe button:hover { opacity: .8; }
.subscribe button:active { scale: 0.96; }
.steps { padding-left: 1.2rem; margin: .15rem 0 .5rem; font-size: var(--text-sm); }
.steps li { margin: .2rem 0; }
table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); margin-bottom: 1.25rem; }
td, th { padding: .6rem .5rem; text-align: left; border-bottom: 1px solid var(--base-150); color: var(--text-2); }
th { font-weight: 500; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: none; }
summary {
  font-weight: 500;
  padding: .35rem 0;
  min-height: 32px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--text-3); transition-property: color; transition-duration: .15s; }
summary:hover::after { color: var(--text-1); }
details[open] summary::after { content: '−'; }
.faq-items { padding-left: 1.25rem; padding-bottom: .25rem; }
.faq-items summary { font-weight: 500; font-size: var(--text-sm); }
.faq-group p { color: var(--text-2); padding-bottom: .75rem; }
.faq-group strong { font-weight: 500; }
.faq-note { color: var(--text-3); font-size: var(--text-sm); margin: .25rem 0 0; }
.faq-answer { padding: .75rem 0 1rem; }
.faq-answer--tight { padding: .75rem 0 .25rem; }
.faq-answer--sm { padding: 0 0 .25rem; font-size: var(--text-sm); }
.faq-answer--sm-full { padding: 0 0 1rem; font-size: var(--text-sm); }
.sources { color: var(--text-2); font-size: var(--text-sm); margin: 0; padding: 0 0 1.25rem 1.2rem; }
.sources li { margin: .35rem 0; }
.topbar { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--text-sm);
  font-weight: 500;
}
.lang-switch button {
  font: inherit;
  border: none;
  background: none;
  color: var(--text-3);
  padding: 0;
  cursor: pointer;
  transition: color .15s;
}
.lang-switch button.active {
  color: var(--text-1);
}
.lang-switch span {
  color: var(--text-4);
}
.footer {
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  color: var(--text-3);
  font-size: var(--text-sm);
  text-align: left;
}
.footer .trigger-link { font-size: var(--text-sm); text-decoration: underline; }

/* Stack the hard/soft table on the smallest screens */
@media (max-width: 400px) {
  .faq-group table, .faq-group tbody { display: block; width: 100%; }
  .faq-group table tr:first-child { display: none; }        /* header row */
  .faq-group table tr {
    display: block;
    padding: .75rem 0;
    border-bottom: 1px solid var(--base-150);
  }
  .faq-group table tr:last-child { border-bottom: none; }
  .faq-group table td {
    display: block;
    border: none;
    padding: 0;
  }
  .faq-group table td:first-child { font-size: var(--text-2xl); line-height: 1.2; }
  .faq-group table td:nth-child(2) { margin-top: .15rem; }
}
