:root {
  --paper: #f4f1e9;
  --ink: #191712;
  --muted: #837c6d;
  --line: #d9d3c4;
  --accent: #ec4426;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* faint paper texture without an image request */
  background-image: radial-gradient(rgba(25, 23, 18, 0.025) 1px, transparent 1px);
  background-size: 4px 4px;
}

.frame {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 4rem);
}

/* ---------- header ---------- */
.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.mark-dot {
  color: var(--accent);
}

.tag {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: lowercase;
}

.tag .sep {
  color: var(--line);
  margin: 0 0.25rem;
}

/* ---------- hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 42ch;
  margin: 0 auto;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "— ";
  color: var(--accent);
}

.statement {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2.9rem, 11vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0;
}

.statement .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

/* ---------- interactive domain line ---------- */
.tryit {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  width: 100%;
  text-align: center;
  overflow: hidden;
}

.tryit-inner {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--mono);
  font-size: clamp(1.35rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  max-width: 100%;
}

.mirror {
  position: absolute;
  visibility: hidden;
  white-space: pre;
  pointer-events: none;
}

.name {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  width: 8ch;
  min-width: 1ch;
  max-width: 62vw;
  outline: none;
  caret-color: var(--accent);
}

.name::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.stop {
  color: var(--accent);
  padding: 0 0.02em;
}

.blank {
  display: inline-block;
  width: 2.2ch;
  height: 0.14em;
  background: var(--ink);
  margin-left: 0.15ch;
  transform: translateY(-0.05em);
  animation: pulse 1.4s steps(1, end) infinite;
}

@keyframes pulse {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0.18; }
}

/* ---------- copy + cta ---------- */
.lede {
  margin: 0 auto;
  max-width: 44ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
}

.say {
  align-self: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.15s ease, background 0.15s ease;
}

.say:hover {
  color: var(--accent);
}

.say span {
  display: inline-block;
  transition: transform 0.15s ease;
}

.say:hover span {
  transform: translateX(3px);
}

/* ---------- footer ---------- */
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.bottom .dim {
  color: var(--muted);
}

/* ---------- utils ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- mobile ---------- */
@media (max-width: 560px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .hero {
    /* let the headline use the full width on phones */
    max-width: none;
  }

  .lede {
    font-size: 0.9rem;
  }

  .bottom {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blank { animation: none; opacity: 0.7; }
  .say span { transition: none; }
}
