@import '../shared.css';

.back-link {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--fg);
}

#app {
  max-width: 620px;
  margin: 0 auto;
  padding: 3.5rem 2rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header ---- */

.app-header {
  margin-bottom: 2rem;
  user-select: none;
}

.app-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.header-rule {
  height: 1px;
  background: var(--rule);
  margin: 1.1rem 0 1.4rem;
}

/* ---- Stats ---- */

.stats {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-divider {
  width: 1px;
  height: 2rem;
  background: var(--rule);
  align-self: center;
}

/* ---- Editor ---- */

#editor {
  flex: 1;
  width: 100%;
  min-height: 300px;
  background: none;
  border: none;
  border-top: 1px solid var(--rule);
  outline: none;
  resize: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fg);
  caret-color: var(--fg);
  padding: 1rem 0;
}

#editor::placeholder {
  color: var(--muted);
  font-style: italic;
}
