:root {
  --ink: #18201f;
  --muted: #5a6663;
  --line: #dbe3df;
  --paper: #f7f4ef;
  --surface: #ffffff;
  --teal: #007d78;
  --amber: #c9811a;
  --graphite: #2f3533;
  --soft: #eef5f2;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(24, 32, 31, 0.12);
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--graphite);
  color: white;
  font-size: 0.78rem;
  letter-spacing: 0;
}

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

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--graphite);
  border-radius: 8px;
  background: var(--graphite);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--graphite);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 54px 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  max-width: 820px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

h3 {
  font-size: 1.12rem;
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(24, 32, 31, 0.12);
  background: #d7ded9;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.band {
  border-top: 1px solid rgba(24, 32, 31, 0.1);
  background: var(--surface);
}

.band.alt {
  background: var(--soft);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

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

.section-head p {
  color: var(--muted);
  max-width: 620px;
  margin: 8px 0 0;
}

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

.card {
  min-height: 214px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none;
}

.card:hover {
  border-color: rgba(0, 125, 120, 0.6);
}

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

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.pill {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(0, 125, 120, 0.24);
  color: var(--teal);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.page.wide {
  width: min(1120px, calc(100% - 32px));
}

.page-header {
  margin-bottom: 34px;
}

.page-header p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.article-body {
  display: grid;
  gap: 28px;
}

.article-body section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.article-body p {
  color: #303936;
}

.faq {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

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

.related {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.related-grid a {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  text-decoration: none;
}

.related-grid a:hover {
  border-color: rgba(0, 125, 120, 0.6);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 24px;
  align-items: start;
}

.tool-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

label {
  display: block;
  font-weight: 800;
  margin: 0 0 6px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c8d3ce;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.output {
  min-height: 360px;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfaf7;
  color: #26302d;
}

.footer {
  border-top: 1px solid rgba(24, 32, 31, 0.12);
  background: var(--graphite);
  color: white;
}

.footer .wrap {
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: white;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    padding: 12px 0;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .hero-media img {
    min-height: 280px;
  }

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

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

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