:root {
  color-scheme: light;
  --paper: #e7e2d9;
  --ink: #1c1a17;
  --muted: #6a645c;
  --line: rgba(28, 26, 23, 0.22);
  --serif: "Newsreader", "Noto Serif SC", "Songti SC", "PMingLiU", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

::selection {
  background: var(--ink);
  color: #f4f1ea;
}

.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  padding: 48px clamp(24px, 8vw, 120px);
}

.kicker {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

h1 {
  display: flex;
  flex-direction: column;
  gap: 0.06em;
  margin: 0;
  flex: none;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(72px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: 0;
}

.panel {
  width: min(320px, 100%);
}

.lede {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.45;
}

form {
  display: grid;
  gap: 18px;
  justify-items: start;
}

label {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

input {
  font: inherit;
  color: inherit;
  width: min(260px, 100%);
  padding: 8px 0 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}

input:focus {
  outline: none;
  border-bottom-width: 2px;
}

button {
  font: inherit;
  letter-spacing: 0.22em;
  color: #f4f1ea;
  background: var(--ink);
  border: 0;
  padding: 12px 28px;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}

.error {
  min-height: 1.4em;
  margin: 0;
  color: #8a3b32;
  letter-spacing: 0.04em;
}

.error:empty { display: none; }

.note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  .gate {
    display: block;
    padding: 18vh 24px 48px;
  }

  h1 {
    flex-direction: row;
    gap: 0.22em;
    font-size: 64px;
    margin-bottom: 28px;
  }
}
