:root {
  --forest: #173d30;
  --forest-dark: #0e2a20;
  --forest-soft: #dfe9e0;
  --paper: #edf1e7;
  --surface: #fcfdf9;
  --ink: #1d2921;
  --muted: #657066;
  --accent: #e8b83f;
  --accent-dark: #b47b13;
  --line: #cfd8cb;
  --shadow: 0 1.1rem 2.6rem rgba(23, 61, 48, 0.12);
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "DM Sans", "Segoe UI", sans-serif;
  --max: 45rem;
  --radius: 1.1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  font-optical-sizing: auto;
}

::selection {
  background: var(--accent);
  color: var(--forest-dark);
}

:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}

a {
  color: var(--forest);
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

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

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

.is-hidden {
  display: none;
}

.site-header {
  padding: 1rem 0 0;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--forest);
  text-decoration: none;
}

.mark svg {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.mark span {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10rem;
  gap: 0.35rem;
  align-items: end;
  padding: 2.3rem 0 1.35rem;
}

.hero-copy {
  min-width: 0;
  padding-bottom: 0.35rem;
}

.hero h1 {
  margin: 0 0 0.45rem;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero h2 {
  max-width: 12ch;
  margin: 0;
  color: var(--forest-dark);
  font-family: var(--display);
  font-size: clamp(2.2rem, 9vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.hero-art {
  display: flex;
  min-height: 9.5rem;
  align-items: end;
  justify-content: end;
}

.hero-art img {
  width: min(12rem, 100%);
  max-height: 12.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0.8rem 0.7rem rgba(23, 61, 48, 0.16));
}

.tool-shell {
  width: min(var(--max), calc(100% - 1.25rem));
}

.tool {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.q {
  padding: 0.85rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.q:first-child {
  padding-top: 0.2rem;
}

.q:last-of-type {
  padding-bottom: 0.85rem;
  border-bottom: 0;
}

.q p {
  margin: 0 0 0.55rem;
  color: var(--forest-dark);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

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

.choices label {
  min-width: 0;
  cursor: pointer;
}

.choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choices span {
  display: flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.55rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.choices input:checked + span {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--accent);
}

.choices input:focus-visible + span {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}

.go {
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.9rem 1rem;
  background: var(--forest);
  border: 0;
  border-radius: 0.85rem;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  transition: background 160ms ease, transform 160ms ease;
}

.go:hover {
  background: var(--forest-dark);
  transform: translateY(-1px);
}

.go:active {
  transform: translateY(1px);
}

.results {
  display: none;
  margin-top: 1.2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.results.is-on {
  display: block;
}

.results h2 {
  margin: 0;
  color: var(--forest-dark);
  font-family: var(--display);
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.match {
  margin: 0.35rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid li {
  position: relative;
  display: flex;
  min-height: 9.5rem;
  flex-direction: column;
  padding: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

.grid strong {
  display: block;
  max-width: 14ch;
  padding-right: 4.4rem;
  color: var(--forest-dark);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.why {
  max-width: 34ch;
  margin: 0.45rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: auto;
}

.copy,
.share,
.fav {
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.copy,
.share {
  padding: 0.45rem 0.7rem;
  border-radius: 0.6rem;
}

.copy {
  background: var(--surface);
  color: var(--forest);
}

.share {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: var(--forest-dark);
}

.copy:hover,
.share:hover,
.fav:hover {
  transform: translateY(-1px);
}

.share.is-done {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--accent);
}

.fav {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.5rem;
  background: var(--forest-soft);
  border-color: transparent;
  border-radius: 0.55rem;
  color: var(--forest);
}

.fav.is-fav {
  background: var(--forest);
  color: var(--accent);
}

.actions {
  margin-top: 0.75rem;
}

.actions button {
  width: 100%;
  padding: 0.75rem 0.8rem;
  background: transparent;
  border: 1px solid var(--forest);
  border-radius: 0.75rem;
  color: var(--forest);
  cursor: pointer;
  font-weight: 700;
}

.actions button:hover {
  background: var(--forest-soft);
}

.favoritos {
  display: none;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.favoritos.is-on {
  display: block;
}

.favoritos h3 {
  margin: 0 0 0.6rem;
  color: var(--forest-dark);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.favoritos ol {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.favoritos li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.55rem 0.45rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.favoritos strong {
  color: var(--forest-dark);
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
}

.favoritos .fav {
  position: static;
}

.home-nav {
  margin-top: 2.4rem;
  padding: 1.35rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.section-label {
  margin: 0 0 0.35rem;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-nav h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--forest-dark);
  font-family: var(--display);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.home-nav-copy {
  max-width: 36ch;
  margin: 0.55rem 0 1rem;
  color: var(--muted);
}

.topic-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-links a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.topic-links a:hover {
  background: var(--forest-soft);
}

.content {
  padding-bottom: 2.5rem;
}

.seo-content {
  margin-top: 2.8rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.page-intro,
.article,
.faq {
  max-width: 43rem;
}

.page-intro {
  margin: 0 0 1.5rem;
  color: var(--forest);
  font-size: 1.05rem;
  font-weight: 700;
}

.seo-content h2 {
  max-width: 23ch;
  margin: 1.8rem 0 0.35rem;
  color: var(--forest-dark);
  font-family: var(--display);
  font-size: clamp(1.7rem, 6vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.seo-content h2:first-of-type {
  margin-top: 0;
}

.intro {
  max-width: 42ch;
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.name-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.name-list li {
  padding: 0.75rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.name-list li strong {
  display: block;
  color: var(--forest-dark);
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.name-list li p {
  max-width: 52ch;
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.more-names {
  margin-top: 0.75rem;
}

.more-names summary {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  padding: 0.65rem 0.8rem;
  background: var(--forest-soft);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--forest);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  list-style: none;
}

.name-list-more {
  margin-top: 0.75rem;
}

.article {
  margin-top: 2.2rem;
}

.article h3,
.faq h3 {
  margin: 1.5rem 0 0.45rem;
  color: var(--forest-dark);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.article h3:first-child,
.faq h3:first-of-type {
  margin-top: 0;
}

.article p,
.faq p {
  max-width: 68ch;
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.article a,
.faq a {
  color: var(--forest);
  font-weight: 700;
}

.faq {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.faq h2 {
  margin-top: 0;
}

.site-footer {
  padding: 2.4rem 0 3rem;
  background: var(--forest);
  color: var(--paper);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer p {
  max-width: 36ch;
  margin: 0;
  color: #dce7dc;
  font-size: 0.88rem;
}

@media (min-width: 680px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 12rem;
    padding-top: 3.2rem;
  }

  .hero-art {
    min-height: 11rem;
  }

  .hero-art img {
    width: 14rem;
    max-height: 14rem;
  }

  .tool {
    padding: 1.2rem;
  }

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

  .grid li {
    min-height: 10.5rem;
  }
}

@media (max-width: 390px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 8.25rem;
    gap: 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero-art {
    min-height: 8.5rem;
  }

  .hero-art img {
    width: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
