:root {
  color-scheme: light;
  --canvas: #fff;
  --ink: #1a1c1f;
  --muted: #6a6b6d;
  --border: #e4e4e4;
  --input-border: #c9cacc;
  --primary: #191a1b;
  --focus: #73777d;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
.frame { width: min(640px, calc(100% - 48px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--border); }
.masthead-inner { display: flex; align-items: center; min-height: 58px; }
.masthead img { display: block; }
.layout { padding-block: 38px 64px; }
h1 { font-size: 34px; line-height: 1.15; font-weight: 630; letter-spacing: -.035em; margin: 0 0 8px; }
.subtitle { color: var(--muted); margin: 0; }
.intro-copy { margin-top: 19px; }
.intro-copy p { margin: 0 0 10px; }
.contribution { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 21px; }
h2 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.form-intro, .hint { color: var(--muted); font-size: 14px; margin: 5px 0 0; }
.identity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
label { font-size: 14px; font-weight: 550; }
.identity label { display: block; margin-bottom: 5px; }
input, textarea, button { font: inherit; }
input:not([type=checkbox]), textarea { display: block; min-width: 0; width: 100%; border: 1px solid var(--input-border); border-radius: 8px; background: var(--canvas); color: var(--ink); font-size: 16px; padding: 10px 12px; }
input:not([type=checkbox]) { min-height: 44px; }
textarea { margin-top: 9px; resize: vertical; min-height: 96px; line-height: 1.45; }
.question { margin-top: 22px; }
.question label { display: block; font-size: 15px; line-height: 1.4; }
.required { color: var(--muted); font-weight: 500; }
.optional { display: inline-block; color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 4px; }
.consent { display: flex; align-items: flex-start; gap: 9px; min-height: 44px; padding: 9px 0; margin-top: 16px; font-size: 14px; font-weight: 400; cursor: pointer; }
.consent input { margin: 3px 0 0; width: 17px; height: 17px; flex: none; accent-color: var(--primary); }
button { min-height: 44px; border: 1px solid transparent; border-radius: 8px; background: var(--primary); color: var(--canvas); padding: 10px 15px; font-size: 14px; font-weight: 550; margin-top: 12px; cursor: pointer; }
button:hover { background: #303234; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input:not([type=checkbox]):focus, textarea:focus { border-color: var(--focus); outline: 1px solid var(--focus); outline-offset: 0; }
.error { color: #a52b32; background: #fbf0f1; border: 1px solid #e7cbd0; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.notice { padding-block: 50px 64px; }
.notice p { color: var(--muted); }

@media (min-width: 900px) {
  .masthead-inner, .layout { width: min(1120px, calc(100% - 80px)); }
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    column-gap: clamp(36px, 5vw, 72px);
    padding-block: 58px 80px;
  }
  .introduction { max-width: 400px; }
  .introduction h1 { font-size: clamp(38px, 3.6vw, 52px); margin-bottom: 10px; }
  .intro-copy { margin-top: 24px; }
  .intro-copy p { margin-bottom: 14px; }
  .contribution {
    border-top: 0;
    border-inline-start: 1px solid var(--border);
    margin-top: 0;
    padding: 4px 0 0 clamp(28px, 3.5vw, 48px);
  }
  .contribution h2 { font-size: 23px; }
  .identity { margin-top: 23px; }
  .question { margin-top: 27px; }
  textarea { min-height: 112px; }
}

@media (max-width: 540px) {
  .frame { width: calc(100% - 32px); }
  .masthead-inner { min-height: 53px; }
  .layout { padding-block: 25px max(36px, env(safe-area-inset-bottom)); }
  h1 { font-size: 29px; }
  .intro-copy { margin-top: 15px; }
  .contribution { margin-top: 20px; padding-top: 17px; }
  .identity { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 14px; }
  .question { margin-top: 19px; }
  button { width: 100%; }
}
