:root {
  color-scheme: light;
  --bg: #f6f3ec;
  --bg-deep: #eee8db;
  --surface: rgba(255, 252, 246, 0.8);
  --surface-strong: rgba(255, 252, 246, 0.96);
  --ink: #1f1c18;
  --muted: #625a50;
  --line: rgba(31, 28, 24, 0.12);
  --line-strong: rgba(31, 28, 24, 0.2);
  --accent: #7e5d35;
  --accent-soft: rgba(126, 93, 53, 0.14);
  --shadow: 0 24px 80px rgba(54, 43, 29, 0.1);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    "URW Palladio L", serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(32px, 8vw, 88px);
}

.hero {
  width: 100%;
  max-width: 920px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 0;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.subtitle {
  margin: 18px 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  color: var(--ink);
}

.live-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: inherit;
  opacity: 0.8;
}

.live-count-separator {
  opacity: 0.6;
}

.live-count-value {
  color: inherit;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.footer-line {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.lede {
  width: min(620px, 100%);
  margin: 18px auto 0;
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--muted);
}

.prompt-shell {
  width: min(640px, 100%);
  margin: 34px auto 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.prompt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.prompt-input {
  width: 100%;
  min-width: 0;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.96rem;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease,
    transform 140ms ease;
}

.prompt-input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 5px var(--accent-soft);
  transform: translateY(-1px);
}

.copy-button {
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #201c17;
  color: #faf7f0;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease,
    background-color 140ms ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  transform: translateY(-1px);
  background: #11100e;
}

.prompt-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer {
  width: 100%;
  margin-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #7a7165;
}

.site-footer a {
  color: inherit;
  text-decoration-color: rgba(122, 113, 101, 0.45);
  text-underline-offset: 0.18em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration-color: currentColor;
}

@media (max-width: 820px) {
  .prompt-row {
    grid-template-columns: 1fr;
  }

  .copy-button {
    min-height: 52px;
  }
}
