:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #5d6a63;
  --line: #dfe6df;
  --paper: #fbfaf7;
  --soft: #f2efe8;
  --panel: #ffffff;
  --sage: #2f6b4f;
  --sage-soft: #e7f0ea;
  --coral: #c96f59;
  --gold: #b68a3a;
  --blue: #335c81;
  --shadow: 0 16px 42px rgba(31, 46, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.58;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 32, 27, 0.08);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  max-width: 1180px;
  min-height: 64px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--sage);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 23px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.page {
  min-height: 100vh;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.ad-band {
  padding: 18px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.ad-band.lower {
  border-top: 1px solid var(--line);
}

.ad-slot {
  min-height: 92px;
  border: 0;
  border-radius: 8px;
  display: block;
  padding: 16px;
  background: transparent;
}

.tool-section {
  padding: 42px 0 46px;
}

.tool-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--coral);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 68px);
}

.tool-intro p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.intro-art {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.intro-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.generator-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.input-panel {
  padding: 20px;
  position: sticky;
  top: 84px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

textarea {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background: #fffefa;
  font: 18px/1.45 inherit;
}

textarea:focus,
select:focus {
  outline: 3px solid rgba(47, 107, 79, 0.18);
  border-color: var(--sage);
}

.controls {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font: inherit;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--sage);
  text-decoration: none;
  font-weight: 850;
  background: var(--sage);
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.button.secondary {
  background: var(--sage-soft);
  color: var(--sage);
}

.button.copy {
  min-width: 76px;
  padding-inline: 12px;
}

.meta-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.results {
  display: grid;
  gap: 12px;
}

.result-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.result-title {
  font-weight: 850;
}

.output {
  min-height: 48px;
  overflow-wrap: anywhere;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.25;
}

.seo-section {
  padding: 58px 0 64px;
}

.seo-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.seo-aside {
  position: sticky;
  top: 88px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seo-aside h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.keyword-list a,
.keyword-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--sage);
  background: var(--sage-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.seo-copy {
  max-width: 820px;
}

.seo-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 18px;
}

.seo-copy h3 {
  margin-top: 30px;
  font-size: 24px;
}

.seo-copy p {
  margin: 16px 0 0;
  color: #3f4d46;
  font-size: 17px;
}

.partners-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.partners-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
}

.partners-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.partner-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
}

.partner-card strong {
  font-size: 18px;
}

.partner-card span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.partner-card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow);
}

.sitemap-section {
  padding: 56px 0 64px;
}

.sitemap-panel {
  max-width: 820px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.sitemap-panel h1 {
  margin-top: 0;
  font-size: clamp(34px, 5vw, 54px);
}

.sitemap-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.sitemap-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.sitemap-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--sage);
  background: var(--sage-soft);
  font-weight: 850;
  text-decoration: none;
}

.sitemap-list a:hover {
  border-color: var(--sage);
}

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

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--sage);
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .tool-intro,
  .generator-shell,
  .seo-layout,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .intro-art {
    max-width: 320px;
  }

  .input-panel,
  .seo-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }

  .nav {
    padding-inline: 16px;
  }

  .tool-section {
    padding-top: 32px;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
