:root {
  --bg: #f6f2ea;
  --surface: rgba(255, 252, 247, 0.92);
  --surface-strong: #fffdf9;
  --text: #1d1d1b;
  --muted: #5d564d;
  --line: #d7cbba;
  --brand: #1e6b52;
  --brand-dark: #124a39;
  --accent: #d28b36;
  --shadow: 0 18px 48px rgba(44, 31, 14, 0.1);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(210, 139, 54, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(30, 107, 82, 0.14), transparent 25%),
    linear-gradient(180deg, #f3ecdf 0%, #f8f5ef 44%, #efe6d8 100%);
  line-height: 1.6;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

img {
  max-width: 100%;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  padding: 18px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 18px;
  background: rgba(255, 251, 244, 0.82);
  border: 1px solid rgba(215, 203, 186, 0.7);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(44, 31, 14, 0.06);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.topnav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.96rem;
}

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

.hero-panel,
.page-hero {
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(244, 237, 225, 0.92));
  border: 1px solid rgba(215, 203, 186, 0.9);
  border-radius: 32px;
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-panel::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(30, 107, 82, 0.18), transparent 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(30, 107, 82, 0.08);
  color: var(--brand-dark);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 16px;
}

.lead {
  max-width: 760px;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions,
.chip-list,
.link-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
button,
.link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-size: 0.98rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover,
button:hover,
.link-pill:hover {
  transform: translateY(-1px);
}

.button-primary,
button,
.link-pill {
  background: var(--brand);
  color: #fffaf5;
}

.button-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.hero-stats,
.grid,
.tool-grid,
.faq-grid,
.card-grid {
  display: grid;
  gap: 18px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.stat,
.card,
.tool-card,
.faq,
.content-panel {
  background: var(--surface);
  border: 1px solid rgba(215, 203, 186, 0.9);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 28px rgba(44, 31, 14, 0.06);
}

.stat strong {
  display: block;
  font-size: 1.9rem;
}

.section {
  padding: 22px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
}

.section-head p {
  max-width: 700px;
  color: var(--muted);
}

.tool-grid,
.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid,
.grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card h3,
.card h3 {
  margin-bottom: 8px;
}

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

.page-hero {
  margin-top: 18px;
}

.page-wrap {
  padding: 22px 0 52px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 22px;
}

.stack {
  display: grid;
  gap: 18px;
}

.panel-title {
  margin-bottom: 10px;
}

.tool-box {
  background: var(--surface-strong);
  border: 1px solid rgba(215, 203, 186, 0.9);
  border-radius: 26px;
  padding: 22px;
}

form,
.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.96rem;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fffdf9;
  padding: 14px 16px;
  font: inherit;
  color: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.output,
.result-box,
pre {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(215, 203, 186, 0.9);
  background: #fbf8f2;
  padding: 18px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-actions,
.option-row,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(215, 203, 186, 0.9);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fffdf9;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.slug-main-output {
  font-size: 1.15rem;
  font-weight: 700;
}

.slug-preview {
  color: var(--muted);
}

.examples-grid {
  display: grid;
  gap: 10px;
}

.helper-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 107, 82, 0.08);
  color: var(--brand-dark);
}

.status-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(215, 203, 186, 0.9);
  border-radius: 18px;
  background: #fbf8f2;
}

.status-panel[data-state="empty"] {
  background: #f5efe5;
}

.status-panel[data-state="good"] {
  background: rgba(30, 107, 82, 0.08);
}

.status-panel[data-state="short"],
.status-panel[data-state="long"] {
  background: rgba(210, 139, 54, 0.12);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(18, 74, 57, 0.1);
  color: var(--brand-dark);
  font-weight: 700;
}

.meter {
  display: grid;
  gap: 10px;
}

.meter-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e9ddcd;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: inherit;
  transition: width 180ms ease;
}

ul,
ol {
  margin: 0;
  padding-left: 22px;
}

.small {
  font-size: 0.92rem;
}

.site-footer {
  padding: 18px 0 40px;
}

.site-footer-inner {
  padding: 22px;
  background: rgba(255, 251, 244, 0.82);
  border: 1px solid rgba(215, 203, 186, 0.8);
  border-radius: 28px;
}

@media (max-width: 900px) {
  .hero-stats,
  .tool-grid,
  .card-grid,
  .faq-grid,
  .grid.two-col,
  .page-layout,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .topbar-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-panel,
  .page-hero {
    padding: 28px 22px;
  }

  .result-actions,
  .option-row,
  .inline-meta {
    align-items: stretch;
    flex-direction: column;
  }
}
