:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #382832;
  background: #fbf5ef;
  --plum: #533047;
  --mauve: #4a323d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main, footer { width: min(100% - 32px, 850px); margin-inline: auto; }
main { padding-top: clamp(16px, 5vw, 48px); }
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  background: radial-gradient(ellipse at 75% 50%, #624651, var(--mauve) 70%);
  border-radius: 28px;
  overflow: hidden;
  color: #fff7ef;
}
.hero-copy { padding: clamp(16px, 5vw, 54px); padding-right: 0; }
.hero img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;
  mask-image: radial-gradient(ellipse closest-side, #000 83%, transparent 100%);
}
h1, h2 { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(2rem, 7.7vw, 5.3rem); letter-spacing: -.045em; line-height: .97; margin: 0; }
.hero p { color: #f6dedc; line-height: 1.45; margin-bottom: 0; }
.card, .signup { border-radius: 22px; padding: clamp(20px, 4vw, 34px); margin-top: 18px; }
.card { background: #fffdf9; border: 1px solid #eadbdc; }
.signup { background: #ece4f1; }
h2 { font-size: clamp(1.55rem, 4vw, 2.15rem); margin: 0 0 12px; }
p { line-height: 1.55; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
input, button, .button { font: inherit; border-radius: 9px; min-height: 46px; padding: 10px 14px; }
input { min-width: 0; background: white; border: 1px solid #a88e9c; color: inherit; }
button, .button { background: var(--plum); color: white; border: 1px solid transparent; cursor: pointer; font-weight: 650; }
.button { display: inline-block; text-decoration: none; }
:focus-visible { outline: 3px solid #80508e; outline-offset: 3px; }
.small { font-size: .9rem; color: #5e4658; margin-bottom: 0; }
#result { margin-top: 20px; background: #f1e9f3; border-radius: 14px; padding: 16px; }
#result strong { font-family: Georgia, serif; font-size: clamp(1.45rem, 4vw, 2.25rem); font-weight: 400; }
#weeks { margin: 4px 0 0; }
#weeks:empty { display: none; }
.text-button { color: var(--plum); background: transparent; text-decoration: underline; padding-inline: 0; }
a { color: var(--plum); }
footer { display: flex; flex-wrap: wrap; gap: 12px 26px; padding-block: 23px; font-size: .9rem; }
.privacy { max-width: 650px; }
.privacy h1 { margin-block: 24px; }
.privacy h2 { margin-top: 24px; }
@media (max-width: 450px) {
  .hero p { font-size: .9rem; }
  .controls > * { width: 100%; }
}
