:root {
  --ink: #111814;
  --muted: #5f6c64;
  --soft: #879189;
  --line: #e2e8e3;
  --line-strong: #b8c8bd;
  --paper: #ffffff;
  --surface: #ffffff;
  --sage: #13775a;
  --sage-dark: #0b6047;
  --gold: #c49b39;
  --shadow: 0 14px 36px rgba(17, 24, 20, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  min-height: 100%;
}

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

a {
  color: inherit;
}

main,
.site-nav,
.site-footer {
  width: min(1040px, calc(100% - 42px));
  margin: 0 auto;
}

main {
  flex: 1 0 auto;
}

.site-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: none;
}

.nav-links,
.footer-links,
.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a,
.footer-links a {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover,
.text-link:hover,
.tool-side a:hover {
  color: var(--sage-dark);
}

.hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: 46px;
  padding: 62px 0 42px;
}

.hero__content::before {
  content: "";
  display: block;
  width: 92px;
  height: 5px;
  margin: 0 0 24px;
  background: var(--sage);
  transform: rotate(-4deg);
}

.hero h1 {
  margin: 0;
  max-width: 560px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4vw, 3.35rem);
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: 0;
}

.page-heading h1,
.tool-main > h1 {
  margin: 0;
  max-width: 760px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: 0;
}

.tool-main > h1 {
  max-width: 820px;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

.hero p,
.page-heading p {
  max-width: 430px;
  color: var(--muted);
  font-size: 1rem;
}

.hero__content > p {
  margin: 22px 0 0;
}

.hero__art {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__art img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  mix-blend-mode: multiply;
}

.eyebrow,
.panel-label,
.tool-card__category {
  margin: 0 0 10px;
  color: var(--sage-dark);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  padding: 0 16px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  background: var(--sage-dark);
  color: white;
}

.secondary-button {
  background: white;
  color: var(--ink);
  border-color: var(--line-strong);
}

.text-link {
  color: var(--sage-dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.text-link::after {
  content: " ->";
}

.section-heading {
  padding: 26px 0 0;
}

.section-heading h2 {
  margin: 0;
  position: relative;
  width: fit-content;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.15;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin-top: 14px;
  background: var(--sage);
  transform: rotate(-3deg);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 10px 0 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tool-grid--featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.tool-card {
  position: relative;
  min-height: 142px;
  padding: 22px 26px 22px 82px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.tool-card:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.tool-card::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 26px;
  width: 34px;
  height: 42px;
  border: 2px solid var(--sage);
  border-radius: 4px;
  background:
    linear-gradient(var(--sage), var(--sage)) 8px 12px / 16px 2px no-repeat,
    linear-gradient(var(--sage), var(--sage)) 8px 20px / 14px 2px no-repeat,
    linear-gradient(var(--sage), var(--sage)) 8px 28px / 18px 2px no-repeat;
}

.tool-card::after {
  position: absolute;
  left: 28px;
  top: 26px;
  width: 34px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1;
}

.tool-card:nth-child(2)::before {
  background: none;
}

.tool-card:nth-child(2)::after {
  content: "T";
}

.tool-card:nth-child(3)::before {
  width: 38px;
  height: 28px;
  top: 34px;
  border-radius: 4px 4px 4px 12px;
  background: none;
  transform: rotate(-38deg);
}

.tool-card:nth-child(3)::after {
  content: "";
  left: 36px;
  top: 41px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--sage);
  border-radius: 50%;
}

.tool-card:nth-child(4)::before {
  background:
    linear-gradient(var(--sage), var(--sage)) 10px 14px / 14px 2px no-repeat,
    linear-gradient(var(--sage), var(--sage)) 10px 23px / 14px 2px no-repeat;
}

.tool-card:nth-child(4)::after {
  content: "✓";
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1px 0 0 7px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.tool-card:nth-child(5)::before {
  width: 34px;
  height: 34px;
  top: 31px;
  border-radius: 2px;
  background: none;
  transform: rotate(45deg);
}

.tool-card:nth-child(5)::after {
  content: "";
  left: 36px;
  top: 39px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: rotate(45deg);
}

.tool-card:nth-child(6)::before {
  background: none;
}

.tool-card:nth-child(6)::after {
  content: "↓";
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 400;
}

.tool-card:hover {
  background: #fbfdfb;
}

.tool-card h2,
.content-section h2,
.tool-builder h2,
.tool-side h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.22;
}

.tool-card p,
.content-section p {
  color: var(--muted);
}

.tool-card p {
  font-size: 0.9rem;
  line-height: 1.52;
}

.tool-card > div > p:last-child {
  margin-bottom: 18px;
}

.content-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 34px 0;
  margin: 10px 0 64px;
}

.content-band h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.content-band p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.copyright-line {
  margin: 6px 0 0;
  font-size: 0.86rem;
}

.page-heading {
  padding: 52px 0 26px;
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  max-width: 720px;
}

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

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

.tool-builder,
.tool-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.tool-builder {
  padding: 26px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}

.tool-builder__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.tool-builder__header p {
  margin: 0;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

label span,
.result-label {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 760;
  margin-bottom: 7px;
}

label small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 12px;
}

input:focus,
textarea:focus {
  border-color: var(--sage);
  outline: 3px solid rgba(19, 119, 90, 0.12);
}

textarea {
  margin: 12px 0;
  resize: vertical;
  font-family: "Segoe UI Mono", Consolas, monospace;
  font-size: 0.92rem;
}

.tool-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost-button {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 740;
  cursor: pointer;
}

.content-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.check-list {
  padding-left: 20px;
}

.check-list li {
  margin: 8px 0;
}

details {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

summary {
  cursor: pointer;
  font-weight: 760;
}

.tool-side {
  position: sticky;
  top: 18px;
  padding: 20px;
  box-shadow: none;
}

.tool-side nav {
  display: grid;
  gap: 12px;
}

.tool-side a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  min-height: 132px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  color: var(--muted);
  flex-shrink: 0;
}

.site-footer strong {
  color: var(--ink);
}

@media (max-width: 920px) {
  .hero,
  .tool-layout,
  .tool-grid,
  .tool-grid--featured {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 32px;
    padding-top: 34px;
  }

  .tool-grid {
    border: 0;
    gap: 14px;
  }

  .tool-card,
  .tool-card:nth-child(odd) {
    border: 1px solid var(--line);
  }

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

  .tool-builder__header {
    flex-direction: column;
  }

  .tool-side {
    position: static;
  }

  .content-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  main,
  .site-nav,
  .site-footer {
    width: min(100% - 28px, 1040px);
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .page-heading h1,
  .tool-main > h1 {
    font-size: 1.9rem;
  }

  .hero__art img {
    width: min(100%, 330px);
  }

  .tool-card {
    min-height: 0;
    padding: 22px 20px 22px 72px;
  }

  .tool-card::before {
    left: 20px;
    top: 24px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
