:root {
  --bone: #F6F1E7;
  --ink: #1C1812;
  --taupe: #8B8172;
  --blue: #1B2DC4;
  --blue-soft: #E9ECFB;
  --green: #1F7A4D;
  --green-soft: #E4F3EA;
  --red: #B3261E;
  --line: rgba(28, 24, 18, 0.16);
  --card: #FFFDF8;
}
* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
main { max-width: 560px; margin: 0 auto; padding: 20px 20px 72px; }
body.login main { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 20vh; }

header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.wordmark { font-family: "Instrument Serif", Georgia, serif; font-size: 24px; margin: 0; }
header a { color: var(--taupe); font-size: 15px; text-decoration: none; }
header a:hover { color: var(--ink); }

h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 40px; line-height: 1.1; margin: 0 0 12px; text-wrap: balance; }
h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 28px; margin: 56px 0 4px; }
p { margin: 0 0 12px; }
p.lead { font-size: 18px; color: #4A4238; margin-bottom: 28px; text-wrap: pretty; }
.hint { font-size: 15px; color: var(--taupe); margin: 8px 0 0; }

.question { display: block; font-size: 19px; font-weight: 600; margin: 32px 0 12px; text-wrap: balance; }
.question:first-of-type { margin-top: 0; }
label.small { display: block; font-size: 16px; font-weight: 600; margin: 20px 0 8px; }

input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 56px;
}
textarea { min-height: 170px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #A39A8C; }
input:focus, textarea:focus { outline: 3px solid var(--blue); outline-offset: 0; border-color: var(--blue); }

.choices { display: grid; gap: 10px; }
.choice { position: relative; display: flex; align-items: center; min-height: 60px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 18px 14px 54px; font-size: 17px; cursor: pointer; text-wrap: balance; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice::before { content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border: 2px solid var(--line); border-radius: 50%; background: #FFFFFF; }
.choice.on, .choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.choice.on::before, .choice:has(input:checked)::before { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 4px #FFFFFF; }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); }

details { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 4px; }
summary { cursor: pointer; font-size: 17px; color: var(--blue); padding: 12px 0; list-style: none; text-wrap: balance; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-block; width: 22px; font-size: 22px; line-height: 0; }
details[open] summary::before { content: "\2212"; }

button.send {
  font: inherit; font-size: 19px; font-weight: 600; background: var(--blue); color: #FFFFFF; border: 0; border-radius: 14px;
  padding: 0 24px; min-height: 60px; cursor: pointer; margin-top: 32px; width: 100%;
}
button.send[disabled] { opacity: 0.6; cursor: default; }
button.send:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.notice { background: var(--green-soft); border: 1.5px solid var(--green); color: #14502F; border-radius: 14px; padding: 16px 18px; margin: 0 0 24px; font-size: 17px; }
.notice.error { background: #FBEBEA; border-color: var(--red); color: #7A1A14; }

.report { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 12px 0; }
.report .title { font-size: 18px; font-weight: 600; margin: 0 0 6px; text-wrap: pretty; }
.report .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--taupe); }
.report .fix { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.status { display: inline-block; font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.status.open { background: #EFEAE0; color: #5E5649; }
.status.built { background: var(--blue-soft); color: var(--blue); }
.status.fixed { background: var(--green-soft); color: var(--green); }
.status.closed { background: #EFEAE0; color: var(--taupe); }

footer { margin-top: 56px; font-size: 15px; color: var(--taupe); text-wrap: pretty; }
footer a { color: var(--taupe); }

@media (max-width: 420px) {
  h1 { font-size: 34px; }
  main { padding: 16px 16px 64px; }
}
