:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  background: #f7efe5;
  color: #4e372d;
}
* { box-sizing: border-box; }
body { margin: 0; }
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .3rem 1rem;
  padding: .65rem max(1rem, calc((100vw - 700px) / 2));
  background: #fffaf3;
  border-bottom: 1px solid #dbc6b4;
}
.top a { color: #704936; text-underline-offset: .2em; }
.top span { font-family: Georgia, serif; }
main { width: min(100% - 2rem, 700px); margin: 2rem auto 3.5rem; }
.intro { padding: 1.4rem clamp(1rem, 5vw, 2rem); background: #efe0d0; border-radius: 1rem; }
.eyebrow { font-size: .9rem; color: #714c3a; }
h1 { font: 700 clamp(1.65rem, 5vw, 2.35rem)/1.25 "Noto Serif TC", "Songti TC", Georgia, serif; margin: .35rem 0 1rem; }
p { margin: .55rem 0; }
form { margin-top: 1.4rem; }
.card {
  min-width: 0;
  padding: 1rem clamp(.75rem, 3vw, 1.2rem);
  margin: 0 0 1rem;
  border: 1px solid #ddc8b7;
  border-radius: .8rem;
  background: #fffaf3;
}
.identity { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.legend, legend { font-weight: 650; }
legend { padding: 0 .3rem; }
small { font-weight: 500; color: #785642; font-size: .77rem; white-space: nowrap; }
.choice { display: flex; align-items: start; gap: .62rem; min-height: 44px; padding: .55rem .25rem; cursor: pointer; }
.choice input { accent-color: #794e39; width: 1.08rem; height: 1.08rem; margin: .28rem 0 0; flex-shrink: 0; }
.extra { margin: .45rem .25rem .25rem 1.95rem; }
input:not([type=radio]):not([type=checkbox]), textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: #4e372d;
  border: 1px solid #ad8c74;
  border-radius: .52rem;
  background: #fffdf9;
  padding: .58rem .7rem;
  margin-top: .35rem;
}
textarea { resize: vertical; }
.errors { border: 1px solid #a7493b; border-radius: .65rem; background: #fff4ef; padding: 1rem; margin-top: 1rem; color: #783226; }
.errors ul { padding-inline-start: 1.15rem; }
.hint { color: #715747; font-size: .9rem; }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .65rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: #79503b;
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  margin-top: .55rem;
}
.primary:hover { background: #643d2c; }
:focus-visible { outline: 2px solid #7e4e39; outline-offset: 3px; }
@media (max-width: 550px) {
  .identity { grid-template-columns: 1fr; }
  .primary { width: 100%; }
}
