:root {
  color-scheme: light;
  --ink: #20251f;
  --paper: #f5f3eb;
  --line: #d4d5c9;
  --accent: #ac3619;
}
* { box-sizing: border-box; }
body {
  margin: auto;
  width: min(1120px, calc(100% - 40px));
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 "DM Sans", system-ui, sans-serif;
}
header, footer { padding: 26px 0; }
header { border-bottom: 1px solid var(--line); }
header a { color: inherit; text-decoration: none; font-size: 22px; font-weight: 750; letter-spacing: -.04em; }
header span, em { color: var(--accent); }
main {
  display: grid;
  grid-template-columns: 1fr minmax(330px, 420px);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  padding: clamp(40px, 8vw, 100px) 0;
}
.label { font-size: 11px; font-weight: 700; letter-spacing: .18em; }
h1 { font-size: clamp(45px, 7vw, 89px); line-height: 1; letter-spacing: -.075em; font-weight: 550; margin: 18px 0 24px; }
em { font-family: Georgia, serif; font-weight: 400; }
.intro > p:last-child { max-width: 410px; }
.card { background: #fffdf8; border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 4vw, 38px); }
h2 { margin: 0; font-size: 29px; letter-spacing: -.05em; }
#demo, footer { font-size: 13px; color: #555c52; }
form { display: grid; gap: 8px; }
label { font-size: 14px; font-weight: 650; margin-top: 8px; }
input, button { font: inherit; }
input:not([type=checkbox]) { width: 100%; padding: 11px; border: 1px solid #aaafa2; border-radius: 3px; }
.remember { display: flex; gap: 7px; align-items: center; margin: 9px 0 12px; }
.remember small { font-weight: 400; }
input[type=checkbox] { accent-color: var(--accent); }
button { display: flex; justify-content: space-between; padding: 12px 16px; border: 0; border-radius: 3px; background: var(--accent); color: white; font-weight: 700; cursor: pointer; }
button:hover { background: #8e2c14; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#error { color: var(--accent); margin: 0 0 9px; font-size: 14px; }
footer { border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  main { grid-template-columns: 1fr; }
}
