:root {
  --bg: #f7f1e8;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --text: #1d1d1b;
  --muted: #6a6258;
  --accent: #b85c38;
  --accent-dark: #8f4326;
  --border: #e7d8c4;
  --shadow: 0 18px 40px rgba(66, 37, 20, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 92, 56, 0.14), transparent 28%),
    linear-gradient(180deg, #fbf5ee 0%, #f7f1e8 100%);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 40px 0 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

h1,
h2 {
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
}

.intro {
  max-width: 680px;
  margin: 14px 0 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  padding-bottom: 32px;
}

.tool-card,
.info-card {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.tool-card {
  padding: 24px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.card-head h2,
.info-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

textarea {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  resize: vertical;
  font: inherit;
  font-size: 1.05rem;
  background: var(--surface-strong);
  color: var(--text);
}

textarea:focus {
  outline: 2px solid rgba(184, 92, 56, 0.25);
  border-color: var(--accent);
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin: 14px 0 20px;
}

button {
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

.secondary-btn {
  background: #efe2d2;
  color: var(--text);
}

.secondary-btn:hover {
  background: #e5d4c1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-box {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.stat-box strong {
  font-size: 1.7rem;
}

.info-panel {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 22px;
}

.info-card p,
.info-card ul {
  margin: 12px 0 0;
  color: var(--muted);
}

.info-card ul {
  padding-left: 18px;
}

.ad-slot {
  border-style: dashed;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(184, 92, 56, 0.06), rgba(255, 255, 255, 0.65));
}

.inline-ad {
  margin-top: 18px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0 28px;
  color: var(--muted);
}

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

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 100%);
  }

  .hero {
    padding: 28px 0 16px;
  }

  .tool-card,
  .info-card {
    border-radius: 16px;
  }

  .tool-card {
    padding: 16px;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .intro {
    font-size: 1rem;
  }

  .card-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  textarea {
    min-height: 260px;
    padding: 16px;
    font-size: 16px;
  }

  .stat-box {
    padding: 16px;
  }

  .stat-box strong {
    font-size: 1.45rem;
  }

  .info-card {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .actions {
    justify-content: stretch;
  }

  .tool-card {
    padding: 14px;
  }

  textarea {
    min-height: 220px;
  }
}
