:root {
  color-scheme: light;
  --ink: #231e22;
  --paper: #fffdf9;
  --berry: #962042;
  --line: #dfd5c8;
  font:
    100%/1.48 system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  padding: 12px max(20px, calc((100% - 610px) / 2));
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  padding-left: max(
    20px,
    calc((100% - 610px) / 2),
    env(safe-area-inset-left, 0px)
  );
  padding-right: max(
    20px,
    calc((100% - 610px) / 2),
    env(safe-area-inset-right, 0px)
  );
  background: #fff;
  border-bottom: 1px solid var(--line);
}
header a,
header img {
  display: block;
  width: 108px;
}
main {
  max-width: 650px;
  padding: clamp(24px, 5vw, 48px) 20px 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  margin: auto;
}
h1,
h2,
legend {
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 750;
}
h1 {
  font-size: clamp(2.35rem, 7vw, 3.35rem);
  margin: 0.25em 0;
}
h2,
legend {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
}
p {
  margin: 0.55rem 0;
}
.eyebrow {
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--berry);
  font-size: 0.8rem;
}
.note,
.credit,
#streak {
  color: #554c50;
}
.note,
.credit {
  font-size: 0.93rem;
}
form,
article {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(16px, 4vw, 28px);
  margin: 1.4rem 0;
  background: white;
}
progress {
  display: block;
  width: 100%;
  height: 8px;
  accent-color: var(--berry);
  margin: 0.5rem 0 1rem;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
legend {
  padding: 0;
  margin: 0 0 0.8rem;
}
#choices {
  display: grid;
  gap: 6px;
}
label {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  gap: 10px;
  cursor: pointer;
}
label:has(:checked) {
  background: #fff0bd;
  border-color: #926421;
}
input {
  accent-color: var(--berry);
  width: 18px;
  height: 18px;
}
button {
  font: inherit;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 24px;
  background: var(--berry);
  color: white;
  padding: 10px 18px;
  min-height: 46px;
  cursor: pointer;
}
button:disabled {
  background: #f5ead1;
  color: #5a4a2b;
  cursor: default;
}
button.quiet {
  color: var(--ink);
  background: white;
  border-color: var(--line);
}
button.text-button {
  color: var(--berry);
  background: transparent;
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid #175ba5;
  outline-offset: 3px;
}
.buttons,
.result-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.buttons {
  justify-content: flex-end;
  margin-top: 12px;
}
.buttons #back {
  margin-right: auto;
}
#validation,
#storage-note {
  color: var(--berry);
}
#validation:empty,
#storage-note:empty {
  display: none;
}
.score {
  font-size: 2.5rem;
  font-weight: 750;
  color: var(--berry);
}
article {
  background: #fff5d6;
}
article h2 {
  margin: 0.35rem 0;
}
article button {
  margin: 0.5rem 0;
}
.install-help {
  color: #554c50;
  font-size: 0.93rem;
}
.install-help summary {
  width: fit-content;
  padding: 12px 0;
  min-height: 44px;
  cursor: pointer;
  color: var(--berry);
}
@media (display-mode: standalone) {
  .install-help {
    display: none;
  }
}
.credit {
  margin-top: 1rem;
}
[hidden] {
  display: none !important;
}
