:root {
  color-scheme: light;
  --desk: #dce1e5;
  --stock: #e4e0da;
  --paper: #eeeae4;
  --blue: #699cbb;
  --rose: #bfa6bc;
  --ink: #3a2e30;
  --muted: #60595b;
  --action: #324e63;
  --serif: Georgia, 'Noto Serif SC', 'Songti SC', SimSun, serif;
  font-family: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  color: var(--ink);
  background: var(--desk);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 38px 28px;
}
main {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--paper);
  border: 1px solid #ada6a0;
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--stock), 5px 5px 0 #b0a9a3,
              8px 8px 0 var(--paper), 9px 9px 0 #b4aca6,
              12px 18px 30px #312c2d26;
}

.brand {
  position: relative;
  min-width: 0;
  padding: 52px clamp(24px, 4.8vw, 58px) 48px;
  border-right: 1px dashed #a39b94;
  background: var(--stock);
}
.brand::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 34px;
  width: 62px;
  height: 10px;
  background: var(--blue);
  border: 1px solid #597e93;
  border-bottom: 0;
}
.brand-type, .eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .08em;
}
.brand-name {
  margin: 12px 0 0;
  font: 600 clamp(34px, 4.5vw, 56px)/1.18 var(--serif);
  letter-spacing: .055em;
}
.brand-ticket {
  position: relative;
  isolation: isolate;
  margin-top: 43px;
  padding: 23px 20px 21px 28px;
  border: 1px solid #63849a;
  background: #cedce4;
  box-shadow: 4px 5px 0 var(--rose);
}
.brand-ticket::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 13px;
  border-left: 1px dashed #6a8595;
}
.brand-ticket::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stock);
  box-shadow: inset 0 1px 2px #3a2e3066;
}
.brand-note { margin: 0; font: 600 clamp(17px, 2.1vw, 24px)/1.55 var(--serif); }
.brand-fr {
  margin: 12px 0 0;
  color: #374955;
  font: italic 16px/1.5 Georgia, serif;
}

form { min-width: 0; padding: 43px clamp(24px, 4.4vw, 54px) 32px; }
h1 { margin: 8px 0 6px; font: 600 32px/1.3 var(--serif); }
.form-intro { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.65; }
label { display: block; margin: 16px 0 8px; font-size: 14px; }
input, button {
  width: 100%;
  min-height: 46px;
  border: 1px solid #8a817e;
  border-radius: 2px;
  padding: 10px 12px;
  font: inherit;
}
input { background: #fbf9f5; color: var(--ink); }
button { margin-top: 18px; border-color: var(--action); background: var(--action); color: #fff; cursor: pointer; }
button:hover { background: #263f51; }
button:disabled { opacity: .65; cursor: wait; }
:where(input, button, a):focus-visible { outline: 2px solid #4b5c85; outline-offset: 3px; }
#error { margin: 8px 0 6px; color: #8d3046; font-size: 13px; line-height: 1.55; }
#error:empty { margin: 0; }
form small { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
footer {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 13px 23px;
  border-top: 1px dashed #a39b94;
  color: var(--muted);
  background: var(--stock);
  font-size: 12px;
  line-height: 1.6;
}
footer a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 680px) {
  body { padding: 27px 18px 28px 14px; }
  main { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .brand { padding: 20px 22px 24px; border-right: 0; border-bottom: 1px dashed #a39b94; }
  .brand::before { left: 22px; width: 46px; }
  .brand-name { margin-top: 5px; }
  .brand-ticket { margin-top: 15px; padding: 12px 11px 12px 23px; }
  .brand-ticket::before { left: 10px; }
  .brand-ticket::after { top: 16px; left: 6px; }
  .brand-fr { margin-top: 6px; font-size: 14px; }
  form { padding: 22px; }
  h1 { font-size: 27px; }
  .form-intro { margin-bottom: 12px; }
  footer { padding: 10px 22px; }
}
