:root {
  --paper: #f7f5ef;
  --ink: #171717;
  --muted: #6c6a65;
  --line: #d9d5cc;
  --panel: #fffdf8;
  --accent: #171717;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(0,0,0,.035), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
.shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 28px; }
.brand { display: flex; align-items: baseline; gap: 10px; margin-bottom: 64px; font-size: 14px; }
.wordmark { color: inherit; text-decoration: none; font-weight: 900; letter-spacing: -.02em; }
.dot, .expansion { color: var(--muted); }
.card { margin: 0 auto; }
.eyebrow { margin: 0 0 14px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .11em; }
h1 { font-size: clamp(44px, 8vw, 76px); line-height: .98; letter-spacing: -.055em; margin: 0; max-width: 700px; }
.lede { margin: 24px 0 38px; max-width: 620px; color: var(--muted); font-size: clamp(18px, 3vw, 23px); line-height: 1.45; }
form > label, .result > label, legend { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 800; }
textarea, .copyrow input { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); font: inherit; outline: none; }
textarea { padding: 18px; resize: vertical; min-height: 126px; font-size: 18px; line-height: 1.45; }
textarea:focus, .copyrow input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
fieldset { border: 0; padding: 0; margin: 28px 0; }
.tones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tone input { position: absolute; opacity: 0; pointer-events: none; }
.tone span { display: flex; min-height: 84px; flex-direction: column; justify-content: center; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; transition: transform .12s ease, border-color .12s ease; }
.tone span:hover { transform: translateY(-1px); }
.tone input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tone small { color: var(--muted); font-size: 12px; }
button, .buttonlike { appearance: none; border: 0; cursor: pointer; font: inherit; }
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: white; font-weight: 850; text-decoration: none; }
.primary:hover { opacity: .88; }
.result { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.copyrow { display: flex; gap: 8px; }
.copyrow input { padding: 13px 14px; min-width: 0; }
.copyrow button { padding: 0 18px; border-radius: 12px; background: #e9e5dc; font-weight: 800; }
.secondary { display: inline-block; color: var(--ink); margin-top: 16px; font-weight: 800; text-underline-offset: 3px; }
.receiver blockquote { margin: 38px 0 28px; padding: 22px 24px; border-left: 4px solid var(--ink); background: var(--panel); border-radius: 0 14px 14px 0; font-size: clamp(20px, 3vw, 28px); font-weight: 700; line-height: 1.35; }
.tiny { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
footer { display: flex; justify-content: space-between; gap: 18px; margin-top: 84px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 620px) {
  .shell { padding-top: 22px; }
  .brand { margin-bottom: 48px; }
  .expansion { display: none; }
  .tones { grid-template-columns: 1fr; }
  .tone span { min-height: 68px; }
  footer { flex-direction: column; }
  .primary { width: 100%; }
}
