:root {
  --bg: rgb(240, 240, 240);
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: rgba(26, 26, 26, 0.18);
  --accent: #1a1a1a;
  --mono: "Share Tech Mono", ui-monospace, "Consolas", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  /* faint blueprint grid */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font-family: var(--mono);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

/* ---------- tech frame ---------- */
.frame {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 64px 24px;
  border: 1px solid var(--line);
}

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--ink);
}
.corner.tl { top: -1px; left: -1px;  border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: -1px; left: -1px;  border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.tag {
  position: absolute;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  background: var(--bg);
  padding: 0 8px;
}
.tag-top { top: -7px; left: 40px; }
.tag-bottom { bottom: -7px; right: 40px; }

/* ---------- title ---------- */
.title {
  margin: 0;
  font-family: "Monofett", var(--mono);
  font-weight: 400;
  font-size: clamp(2.4rem, 9vw, 7.5rem);
  line-height: 1.05;
  text-align: center;
  white-space: pre-wrap;
  min-height: 1.05em;
}

/* plain underscore cursor, not a Monofett bubble */
.cursor {
  display: inline-block;
  font-family: var(--mono);
  position: relative;
  top: -0.1em;
}
.cursor.blink { animation: blink 1s steps(1, end) infinite; }

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- signup ---------- */
.signup {
  width: 100%;
  max-width: 560px;
}

.row {
  display: flex;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.row input::placeholder { color: var(--muted); }
.row input:focus { outline: none; }
.row:focus-within { box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.12); }

.row button {
  border: 0;
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0 22px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.row button:hover,
.row button:focus-visible { background: var(--bg); color: var(--ink); outline: none; }
.row button:disabled { opacity: 0.6; cursor: wait; }

.fine {
  margin: 10px 2px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.fine a, .footer a { color: inherit; }

.status {
  margin: 8px 2px 0;
  min-height: 1.2em;
  font-size: 14px;
}
.status.error { color: #a12020; }

.hp { position: absolute; left: -9999px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  padding: 18px 8px 0;
  font-size: 12px;
  color: var(--muted);
}
.sep { opacity: 0.5; }

/* ---------- simple text pages (privacy, thanks) ---------- */
.doc {
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}
.doc article {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 15px;
}
.doc h1 {
  font-family: "Monofett", var(--mono);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin: 0 0 8px;
}
.doc h2 { font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 28px; }
.doc a { color: inherit; }

@media (max-width: 520px) {
  body { padding: 12px; }
  .row { flex-direction: column; }
  .row button { border-left: 0; border-top: 1px solid var(--ink); padding: 14px; }
  .tag { display: none; }
}
