:root {
  --ink: #19332f;
  --ink-soft: #38564f;
  --cream: #fbf7ed;
  --paper: #fffdf8;
  --sage: #dce8dc;
  --mint: #bfe7d4;
  --mint-deep: #6db99a;
  --clay: #db8067;
  --sun: #efc45f;
  --line: rgba(25, 51, 47, 0.14);
  --shadow: 0 24px 65px rgba(25, 51, 47, 0.12);
  --shadow-small: 0 12px 32px rgba(25, 51, 47, 0.09);
  --radius: 26px;
  --radius-small: 16px;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(191, 231, 212, 0.5), transparent 28rem),
    radial-gradient(circle at 95% 20%, rgba(239, 196, 95, 0.2), transparent 24rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  z-index: -1;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: 99px;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(25, 51, 47, 0.08);
  background: rgba(251, 247, 237, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px 13px 20px 13px;
  color: var(--paper);
  background: linear-gradient(145deg, var(--ink), #477469);
  box-shadow: inset -7px -7px 0 rgba(191, 231, 212, 0.22);
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}

.brand-text {
  font-size: clamp(0.92rem, 1.7vw, 1.05rem);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.main-nav a {
  color: var(--ink-soft);
  font-size: 0.91rem;
  font-weight: 730;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.language-switcher {
  display: inline-flex;
  padding: 0.24rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 253, 248, 0.88);
}

.language-switcher button {
  min-width: 36px;
  padding: 0.4rem 0.55rem;
  border: 0;
  border-radius: 99px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 850;
}

.language-switcher button.active {
  color: white;
  background: var(--ink);
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
}

.menu-toggle span {
  margin: 4px 0;
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.2rem, 7vw, 5.5rem);
  text-align: center;
}

.hero::after {
  content: "";
  width: 280px;
  height: 280px;
  position: absolute;
  right: max(-8rem, calc((100vw - var(--wrap)) / 2 - 9rem));
  bottom: -7rem;
  border: 1px solid rgba(25, 51, 47, 0.1);
  border-radius: 45% 55% 63% 37%;
  transform: rotate(19deg);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  margin-bottom: 1.2rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(25, 51, 47, 0.12);
  border-radius: 99px;
  color: var(--ink-soft);
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 11px 0 0 var(--sun);
  margin-right: 11px;
}

.hero h1,
.article-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.072em;
}

.hero .lead,
.article-hero .lead {
  max-width: 730px;
  margin: 1.45rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(1.03rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  padding: 0.72rem 1.12rem;
  border: 1px solid var(--ink);
  border-radius: 14px;
  color: white;
  background: var(--ink);
  box-shadow: 0 8px 0 rgba(25, 51, 47, 0.14);
  cursor: pointer;
  font-weight: 820;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(25, 51, 47, 0.14);
}

.button.secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
  box-shadow: none;
}

.tool-section {
  padding: 0 0 clamp(4.5rem, 9vw, 7rem);
}

.tool-shell {
  position: relative;
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid rgba(25, 51, 47, 0.12);
  border-radius: 34px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.tool-shell::before {
  content: "";
  height: 8px;
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, var(--clay), var(--sun), var(--mint-deep));
}

.tool-intro {
  max-width: 720px;
  margin: 0 auto 1.7rem;
  text-align: center;
}

.tool-intro h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.tool-intro p,
.section-heading p {
  margin: 0.8rem auto 0;
  color: var(--ink-soft);
}

.generator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.42rem;
  text-align: left;
}

.field span {
  font-size: 0.84rem;
  font-weight: 820;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0.72rem 0.84rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: white;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(109, 185, 154, 0.17);
}

.generate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.generator-note {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.83rem;
}

.results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.name-card {
  min-height: 94px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.9rem;
  border: 1px solid rgba(25, 51, 47, 0.11);
  border-radius: 15px;
  background: linear-gradient(150deg, white, #f4f8f2);
}

.name-card strong {
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.copy-button {
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.trust-item {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  color: var(--ink-soft);
  background: var(--sage);
  font-size: 0.82rem;
}

.trust-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.content-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.content-section.tint {
  background: rgba(220, 232, 220, 0.58);
  border-block: 1px solid rgba(25, 51, 47, 0.08);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-kicker {
  margin-bottom: 0.55rem;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.content-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid rgba(25, 51, 47, 0.11);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.content-card:nth-child(3n + 2) {
  background: #f2f7ef;
}

.content-card:nth-child(3n + 3) {
  background: #fff7e5;
}

.card-number,
.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 14px;
  color: white;
  background: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.content-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.content-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.card-link {
  margin-top: auto;
  color: var(--ink);
  font-weight: 850;
  text-underline-offset: 5px;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.prose-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.prose-intro p {
  color: var(--ink-soft);
}

.check-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.check-list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  position: absolute;
  left: 0.9rem;
  top: 0.92rem;
  border-radius: 50%;
  color: white;
  background: var(--mint-deep);
  font-size: 0.76rem;
  font-weight: 900;
}

.soft-callout {
  padding: clamp(1.35rem, 4vw, 2.2rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ink), #315b52);
  color: white;
  box-shadow: var(--shadow);
}

.soft-callout h2,
.soft-callout h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.soft-callout p {
  color: rgba(255, 255, 255, 0.78);
}

.soft-callout .button {
  color: var(--ink);
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: none;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list details p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.article-hero {
  padding: clamp(4.5rem, 9vw, 7rem) 0 3rem;
  text-align: center;
}

.article-hero h1 {
  max-width: 930px;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
}

.article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.article-meta span {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 253, 248, 0.7);
}

.article-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 760px);
  justify-content: center;
  gap: 2.2rem;
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.78);
}

.toc strong {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toc a {
  display: block;
  padding: 0.32rem 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.article-body {
  min-width: 0;
  padding: clamp(1.3rem, 4vw, 2.4rem);
  border: 1px solid rgba(25, 51, 47, 0.1);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body h2 {
  margin-top: 2.4rem;
  scroll-margin-top: 110px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.article-body h3 {
  margin-top: 1.7rem;
  scroll-margin-top: 110px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.article-body p,
.article-body li {
  color: #304c46;
}

.article-body a {
  font-weight: 750;
  text-decoration-color: var(--clay);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--clay);
  border-radius: 0 15px 15px 0;
  color: var(--ink);
  background: #fff3e8;
  font-size: 1.05rem;
  font-weight: 720;
}

.article-body .tip,
.article-body .warning {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #edf7ef;
}

.article-body .warning {
  background: #fff1e8;
}

.formula-grid,
.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.3rem 0;
}

.formula-card,
.example-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f6f8f1;
}

.formula-card strong,
.example-card strong {
  display: block;
  color: var(--ink);
}

.formula-card span,
.example-card span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.4rem 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.article-table th,
.article-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: var(--sage);
}

.guide-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.guide-card {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.guide-card:nth-child(4n + 2) {
  background: #edf6ef;
}

.guide-card:nth-child(4n + 3) {
  background: #fff3e5;
}

.guide-card:nth-child(4n + 4) {
  background: #f0eee9;
}

.guide-card .tag {
  align-self: flex-start;
  padding: 0.32rem 0.58rem;
  border-radius: 99px;
  color: white;
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
}

.guide-card h2 {
  margin: 1rem 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.guide-card p {
  color: var(--ink-soft);
}

.guide-card .card-link {
  margin-top: auto;
}

.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.legal-wrap h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.legal-wrap h2 {
  margin-top: 2.2rem;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.legal-card {
  margin-top: 2rem;
  padding: clamp(1.35rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.site-footer {
  padding: 4rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 0.7fr));
  gap: 2rem;
}

.footer-brand .brand {
  color: white;
}

.footer-brand .brand-mark {
  color: var(--ink);
  background: var(--mint);
  box-shadow: inset -7px -7px 0 rgba(25, 51, 47, 0.11);
}

.footer-brand p {
  max-width: 340px;
  font-size: 0.88rem;
}

.footer-column strong {
  display: block;
  margin-bottom: 0.65rem;
  color: white;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  padding: 0.24rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  text-decoration: none;
}

.footer-column a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
}

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

@media (max-width: 920px) {
  .menu-toggle {
    display: grid;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: var(--shadow-small);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.55rem 0.4rem;
  }

  .generator-grid,
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .article-layout {
    grid-template-columns: minmax(0, 780px);
  }

  .toc {
    position: static;
  }

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

@media (max-width: 680px) {
  .wrap {
    width: min(calc(100% - 1.25rem), var(--wrap));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-text {
    display: none;
  }

  .main-nav {
    top: 68px;
    left: 0.65rem;
    right: 0.65rem;
  }

  .hero {
    padding-top: 4rem;
    text-align: center;
  }

  .hero h1,
  .article-hero h1 {
    letter-spacing: -0.058em;
  }

  .generator-grid,
  .card-grid,
  .results,
  .trust-row,
  .two-column,
  .guide-hub,
  .formula-grid,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .generate-row {
    align-items: stretch;
    flex-direction: column;
  }

  .generate-row .button {
    width: 100%;
  }

  .tool-shell {
    border-radius: 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
