:root {
  --ink: #14201d;
  --body: #5b6862;
  --faint: #8a958f;
  --line: #ebefec;
  --paper: #ffffff;
  --soft: #f5f8f6;
  --mint: #8fd6c0;
  --green: #1f7a66;
  --green-dark: #185a4c;
  --amber: #d6a84f;
  --white: #ffffff;
  --maxw: 1080px;
  --read: 680px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.shell {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
}

/* Typography */
h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--ink);
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 780;
}

h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

p {
  margin: 0;
}

.lead {
  color: var(--body);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.6;
}

.label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green);
}

.muted {
  color: var(--body);
}

/* Header / nav */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

header.scrolled {
  border-bottom-color: var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 760;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--ink);
  overflow: hidden;
}

.mark svg,
.mark img {
  width: 34px;
  height: 34px;
  display: block;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  color: var(--body);
}

.navlinks a {
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  place-items: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.nav-toggle span::before {
  position: absolute;
  transform: translateY(-6px);
}

.nav-toggle span::after {
  position: absolute;
  transform: translateY(6px);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ink);
  color: var(--white);
  font-weight: 640;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}

.button:hover {
  background: #0c1411;
  transform: translateY(-1px);
}

.button.green {
  background: var(--green);
}

.button.green:hover {
  background: var(--green-dark);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

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

.button.sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

/* Text link with arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 640;
  text-decoration: none;
}

.tlink::after {
  content: "\2192";
  transition: transform 0.15s ease;
}

.tlink:hover::after {
  transform: translateX(3px);
}

/* Sections & rhythm */
section {
  padding: clamp(72px, 11vw, 132px) 0;
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.section-head {
  max-width: var(--read);
}

.section-head .lead {
  margin-top: 18px;
}

/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-row a {
  color: var(--body);
  text-decoration: none;
  font-weight: 600;
}

.footer-row a:hover {
  color: var(--ink);
}

/* Responsive */
@media (max-width: 820px) {
  .navlinks {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .navlinks.open {
    display: flex;
  }

  .navlinks a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav-toggle {
    display: grid;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 32px, var(--maxw));
  }

  .button {
    width: 100%;
  }

  .nav-actions .button {
    width: auto;
  }
}
