:root {
  color-scheme: light;
  --ink: #1d211f;
  --muted: #5f675f;
  --paper: #f3efe4;
  --paper-strong: #fbf8ef;
  --teal: #0e7471;
  --clay: #b65a37;
  --moss: #667449;
  --line: rgba(29, 33, 31, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(251, 248, 239, 0.92), rgba(243, 239, 228, 0.72)),
    var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(29, 33, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 33, 31, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.site-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  max-width: 100vw;
  min-height: 100svh;
  min-width: 0;
  overflow-x: hidden;
  padding: 28px;
  grid-template-rows: auto 1fr auto;
}

.topbar,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-right-color: var(--teal);
  border-bottom-color: var(--clay);
  transform: rotate(45deg);
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.topnav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  background: rgba(251, 248, 239, 0.48);
}

.topnav a {
  padding: 9px 12px;
  font-size: 0.9rem;
}

.home-page .site-shell {
  padding: 0;
}

.home-page .topbar {
  min-height: 88px;
  padding: 22px clamp(24px, 2.8vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 239, 0.46);
  backdrop-filter: blur(8px);
}

.home-page .brand {
  gap: 14px;
  font-size: 1.08rem;
  font-weight: 720;
}

.home-page .brand-mark {
  width: 20px;
  height: 20px;
}

.home-page .topnav {
  gap: clamp(16px, 3vw, 42px);
}

.home-page .topnav a {
  padding: 10px 2px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
}

.home-page .topnav a[aria-current="page"],
.home-page .topnav a.nav-primary {
  color: var(--teal);
}

.home-content {
  display: grid;
  align-content: start;
  gap: 70px;
  min-width: 0;
  padding: 46px clamp(24px, 2.8vw, 44px) 52px;
}

.home-facts {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.topnav a:hover {
  border-color: rgba(14, 116, 113, 0.42);
  color: var(--teal);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 248, 239, 0.68);
}

.language-switch > span {
  color: var(--muted);
  font-size: 0.7rem;
}

.language-switch button {
  min-width: 34px;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 720;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--paper-strong);
  background: var(--teal);
}

.language-switch button:focus-visible {
  outline: 3px solid rgba(14, 116, 113, 0.24);
  outline-offset: 2px;
}

.tools-section {
  display: grid;
  gap: 0;
  width: 100%;
  min-width: 0;
}

.tools-section > h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.45rem);
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.tool-search {
  display: grid;
  gap: 10px;
  width: min(100%, 650px);
  margin-top: 38px;
}

.tool-search label {
  font-size: 0.94rem;
  font-weight: 720;
}

.search-input {
  position: relative;
}

.search-input > img {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 22px;
  height: 22px;
  opacity: 0.72;
  pointer-events: none;
  transform: translateY(-50%);
}

.tool-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px 0 50px;
  border: 1px solid rgba(29, 33, 31, 0.62);
  border-radius: 7px;
  color: var(--ink);
  outline: none;
  background: rgba(251, 248, 239, 0.68);
  font: inherit;
  font-size: 0.98rem;
  box-shadow: 0 7px 18px rgba(29, 33, 31, 0.025);
  -webkit-appearance: none;
  appearance: none;
}

.tool-search input::placeholder {
  color: rgba(95, 103, 95, 0.76);
}

.tool-search input:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 116, 113, 0.13);
}

.search-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.search-meta p {
  margin: 0;
}

#tool-search-status {
  white-space: nowrap;
}

.tool-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 52px);
  margin-top: 100px;
}

.tool-group {
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
}

.group-label {
  margin: 0;
  padding: 0 0 11px;
  border-bottom: 1px solid rgba(29, 33, 31, 0.38);
  color: var(--teal);
  font-size: 0.98rem;
  font-weight: 720;
  line-height: 1.4;
}

.tool-link {
  display: grid;
  align-items: center;
  grid-template-columns: 60px minmax(0, 1fr) 18px;
  gap: 18px;
  min-height: 106px;
  padding: 13px 8px 13px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.tool-name {
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 720;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.tool-icon {
  display: grid;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(29, 33, 31, 0.28);
  border-radius: 9px;
  place-items: center;
  background: rgba(251, 248, 239, 0.46);
}

.tool-icon img {
  width: 27px;
  height: 27px;
  opacity: 0.86;
  filter: invert(35%) sepia(20%) saturate(1726%) hue-rotate(129deg) brightness(90%) contrast(92%);
}

.tool-chevron {
  width: 18px;
  height: 18px;
  opacity: 0.82;
}

.tool-link:hover {
  border-color: rgba(14, 116, 113, 0.48);
  color: var(--teal);
  background: rgba(251, 248, 239, 0.38);
}

.tool-link:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(14, 116, 113, 0.18);
  outline-offset: 2px;
}

.tool-link--highlighted {
  min-height: 78px;
  margin: 6px 0;
  padding: 7px 10px 7px 2px;
  border: 1px solid rgba(14, 116, 113, 0.2);
  border-radius: 7px;
  color: var(--teal);
  background: rgba(14, 116, 113, 0.075);
}

.tool-link--highlighted:hover {
  border-color: rgba(14, 116, 113, 0.4);
  background: rgba(14, 116, 113, 0.11);
}

.tool-empty {
  margin: 38px 0 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.feedback-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1fr);
  gap: clamp(42px, 8vw, 120px);
  margin-top: 34px;
  padding: clamp(34px, 5vw, 58px) 0 12px;
  border-top: 1px solid rgba(29, 33, 31, 0.38);
}

.feedback-intro {
  max-width: 480px;
}

.feedback-eyebrow {
  margin: 0 0 13px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.09em;
}

.feedback-intro h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
  font-weight: 720;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.feedback-intro > p:last-child {
  max-width: 42ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.feedback-form {
  position: relative;
  display: grid;
  gap: 22px;
  min-width: 0;
}

.feedback-field {
  display: grid;
  gap: 8px;
}

.feedback-field label {
  font-size: 0.9rem;
  font-weight: 720;
}

.feedback-field label span {
  color: var(--clay);
}

.feedback-field input,
.feedback-field textarea {
  width: 100%;
  border: 1px solid rgba(29, 33, 31, 0.46);
  border-radius: 7px;
  color: var(--ink);
  outline: none;
  background: rgba(251, 248, 239, 0.68);
  font: inherit;
  font-size: 0.95rem;
  box-shadow: 0 7px 18px rgba(29, 33, 31, 0.025);
}

.feedback-field input {
  min-height: 50px;
  padding: 0 14px;
}

.feedback-field textarea {
  min-height: 142px;
  padding: 13px 14px;
  line-height: 1.6;
  resize: vertical;
}

.feedback-field input::placeholder,
.feedback-field textarea::placeholder {
  color: rgba(95, 103, 95, 0.76);
}

.feedback-field input:focus-visible,
.feedback-field textarea:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 116, 113, 0.13);
}

.feedback-field-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.feedback-website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
}

.feedback-actions button {
  min-height: 46px;
  flex: 0 0 auto;
  padding: 0 20px;
  border: 1px solid var(--teal);
  border-radius: 7px;
  color: var(--paper-strong);
  background: var(--teal);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 720;
  cursor: pointer;
}

.feedback-actions button:hover,
.feedback-actions button:focus-visible {
  background: #095d5a;
}

.feedback-actions button:focus-visible {
  outline: 3px solid rgba(14, 116, 113, 0.2);
  outline-offset: 2px;
}

.feedback-actions button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.feedback-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.feedback-status[data-state="success"] {
  color: var(--teal);
}

.feedback-status[data-state="error"] {
  color: #91452e;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 clamp(24px, 2.8vw, 44px) 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 248, 239, 0.42);
}

.trust-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 0;
  padding: 26px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.trust-strip img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  opacity: 0.82;
}

.trust-strip span + span {
  border-left: 1px solid var(--line);
}

.trust-strip a {
  color: inherit;
  text-underline-offset: 4px;
}

.foot {
  align-items: flex-end;
  color: var(--muted);
  font-size: 0.88rem;
}

.foot span,
.foot a {
  color: inherit;
}

.foot span {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.info-page {
  width: 100%;
  max-width: 900px;
  min-width: 0;
  padding: 76px 0 64px;
}

.info-page h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 780;
  line-height: 1.06;
}

.info-lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.info-stack,
.method-list {
  display: grid;
  gap: 22px;
  margin-top: 38px;
}

.info-stack section,
.method-list article {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.info-page h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.3;
}

.info-page p,
.plain-list {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.info-page a {
  color: var(--ink);
  font-weight: 650;
  text-decoration-color: rgba(14, 116, 113, 0.36);
  text-underline-offset: 4px;
}

.method-list .review-date {
  margin-top: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.plain-list {
  display: grid;
  gap: 6px;
  padding-left: 1.2em;
}

@media (max-width: 720px) {
  .site-shell {
    min-height: 100svh;
    padding: 22px;
    grid-template-rows: auto 1fr auto;
  }

  .home-page .site-shell {
    padding: 0;
  }

  .home-page .topbar {
    min-height: 0;
    padding: 18px 20px 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }

  .home-page .brand {
    font-size: 1rem;
  }

  .home-page .topnav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .home-page .language-switch {
    margin-left: auto;
  }

  .home-page .topnav a {
    padding: 6px 0;
    font-size: 0.86rem;
  }

  .home-content {
    gap: 34px;
    padding: 28px 20px 34px;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    justify-content: flex-start;
  }

  .home-facts {
    max-width: 30ch;
    font-size: 0.86rem;
  }

  .tools-section > h1 {
    font-size: 1.9rem;
  }

  .tool-search {
    margin-top: 27px;
  }

  .tool-search input {
    min-height: 50px;
    padding: 0 13px 0 46px;
    font-size: 0.92rem;
  }

  .search-input > img {
    left: 13px;
    width: 20px;
    height: 20px;
  }

  .search-meta {
    display: grid;
    gap: 3px;
  }

  #tool-search-status {
    white-space: normal;
  }

  .tool-groups {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 38px;
  }

  .tools-section {
    padding-top: 0;
  }

  .tool-link {
    grid-template-columns: 48px minmax(0, 1fr) 17px;
    gap: 14px;
    min-height: 76px;
    padding: 10px 4px 10px 1px;
  }

  .tool-icon {
    width: 48px;
    height: 48px;
  }

  .tool-icon img {
    width: 24px;
    height: 24px;
  }

  .tool-link--highlighted {
    min-height: 66px;
    padding: 8px 8px 8px 1px;
  }

  .feedback-section {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 18px;
    padding-top: 30px;
  }

  .feedback-intro > p:last-child {
    margin-top: 12px;
  }

  .feedback-form {
    gap: 18px;
  }

  .feedback-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .feedback-actions button {
    width: 100%;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 20px 20px;
  }

  .trust-strip span {
    gap: 7px;
    padding: 16px 8px;
    font-size: 0.78rem;
  }

  .trust-strip img {
    width: 19px;
    height: 19px;
  }

  .trust-strip span:nth-child(3) {
    border-left: 0;
  }

  .trust-strip span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .info-page {
    padding: 58px 0 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #field {
    display: none;
  }

  .tool-link {
    transition: none;
  }
}
