:root {
  --paper: #F7F4EF;
  --ink: #141414;
  --blood: #BF1F2A;
  --muted: #7a746b;
  --line: #d8d2c7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  padding: 28px 36px 0;
  display: inline-block;
}

.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.name {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1.05;
  margin: 0;
}

.rule {
  width: 48px;
  height: 1px;
  background: var(--blood);
  margin: 26px auto;
}

.voice {
  font-family: 'Homemade Apple', cursive;
  color: var(--blood);
  line-height: 2.1;
}

.lead-voice { font-size: clamp(16px, 2.4vw, 22px); margin: 0; }

.body-line { font-size: 16px; line-height: 1.75; margin: 18px 0 26px; }

.headline {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.3;
  max-width: 720px;
  margin: 0;
}

.headline em { color: var(--blood); }

.signup {
  display: flex;
  gap: 22px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.signup input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font: 300 15px 'Poppins', sans-serif;
  color: var(--ink);
  padding: 8px 2px;
  width: 210px;
  outline: none;
}

.signup input::placeholder { color: var(--muted); }
.signup input:focus { border-bottom-color: var(--blood); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  background: var(--blood);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  font: 400 13px 'Poppins', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn:hover { background: #a51a24; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn:focus-visible, .signup input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blood); outline-offset: 3px; }

.err { color: var(--blood); font-size: 13px; min-height: 20px; margin-top: 12px; }

.reading {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 28px 64px;
}

.reading p { font-size: 16px; line-height: 1.8; margin: 16px 0 0; }

.permission-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.35;
  margin: 0;
}

.permission-title span { color: var(--blood); }

.reading .permission-voice { font-size: 16px; margin: 22px 0 32px; }

.page-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 48px);
  margin: 0;
}

textarea {
  width: 100%;
  min-height: 220px;
  margin-top: 22px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 16px;
  font: 300 16px/1.8 'Poppins', sans-serif;
  color: var(--ink);
  resize: vertical;
}

textarea::placeholder { color: var(--muted); }

.words {
  font-size: 17px;
  line-height: 1.9;
  white-space: pre-wrap;
  word-wrap: break-word;
  border-left: 2px solid var(--blood);
  padding-left: 20px;
  margin: 22px 0 32px;
  transition: opacity 1.2s ease;
}

.fade { opacity: 0; }

.hidden { display: none !important; }

.made-room { text-align: center; padding-top: 40px; }
.reading .made-room .closing { font-size: 16px; margin-top: 28px; }

@media (max-width: 560px) {
  .wordmark { padding: 22px 22px 0; }
  .signup { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .signup input { width: 100%; }
}
