:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #60706b;
  --line: rgba(23, 33, 31, 0.13);
  --accent: #285f54;
  --paper: #f3f6f5;
  --paper-deep: #e9efec;
  --shadow: 0 28px 70px rgba(25, 54, 47, 0.12);
}

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

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 14%, rgba(98, 159, 144, 0.16), transparent 31rem),
    linear-gradient(145deg, #f8faf9 0%, var(--paper) 55%, var(--paper-deep) 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(23, 33, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 31, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  border-radius: 0.5rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(40, 95, 84, 0.45);
  outline-offset: 4px;
}

.page-shell {
  display: grid;
  width: min(1180px, calc(100% - 3rem));
  min-height: 100vh;
  margin: 0 auto;
  grid-template-rows: auto 1fr auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  place-items: center;
  color: #fff;
  background: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(40, 95, 84, 0.22);
}

.site-label,
.site-footer {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

main {
  align-self: center;
  padding: clamp(2.5rem, 7vh, 5.75rem) 0 clamp(2.25rem, 6vh, 4.75rem);
}

.hero {
  display: grid;
  gap: clamp(2.5rem, 8vw, 7.5rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
}

.eyebrow {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2rem;
  height: 1px;
  background: currentColor;
  content: "";
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.65rem, 6.2vw, 5.7rem);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.intro {
  max-width: 44rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.study-card {
  overflow: hidden;
  min-height: 18.5rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.study-card__bar {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  height: 2.75rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.study-card__bar span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #aab7b3;
}

.study-card__bar span:first-child {
  background: var(--accent);
}

.study-card__canvas {
  display: flex;
  min-height: 15.75rem;
  padding: 2rem;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 80% 25%, rgba(40, 95, 84, 0.16), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(220, 235, 230, 0.78));
}

.study-card__tag {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-card__line {
  display: block;
  width: 62%;
  height: 0.65rem;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: rgba(40, 95, 84, 0.18);
}

.study-card__line--wide {
  width: 90%;
  height: 1.1rem;
  margin-top: 0;
  background: rgba(23, 33, 31, 0.78);
}

.study-card__tiles {
  display: grid;
  gap: 0.55rem;
  margin-top: 2.25rem;
  grid-template-columns: repeat(3, 1fr);
}

.study-card__tiles span {
  height: 3.75rem;
  border: 1px solid rgba(40, 95, 84, 0.12);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.56);
}

.study-card__tiles span:nth-child(2) {
  background: rgba(40, 95, 84, 0.12);
}

.features {
  display: grid;
  gap: 0;
  margin-top: clamp(3rem, 8vh, 5.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  position: relative;
  min-height: 9rem;
  padding: 1.45rem 2rem 1.5rem 0;
}

.feature-card + .feature-card {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.feature-number {
  position: absolute;
  top: 1.55rem;
  right: 1.25rem;
  color: rgba(23, 33, 31, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.67rem;
}

.feature-card h2 {
  margin: 0 2.5rem 0.45rem 0;
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: -0.015em;
}

.feature-card p {
  max-width: 28ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  padding: 1.4rem 0 1.7rem;
  border-top: 1px solid var(--line);
}

.error-page {
  display: flex;
  width: min(100% - 2rem, 42rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(2rem, 8vw, 5rem) 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.error-page .brand {
  margin-bottom: clamp(4rem, 14vh, 8rem);
}

.error-page h1 {
  max-width: none;
}

.home-link {
  margin-top: 2rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 680;
  text-decoration: none;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 2rem, 38rem);
  }

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

  .site-label {
    display: none;
  }

  main {
    padding: 2.75rem 0 2.5rem;
  }

  .hero {
    gap: 2.5rem;
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.55rem, 13vw, 4.1rem);
  }

  .study-card {
    min-height: 13.5rem;
    transform: none;
  }

  .study-card__canvas {
    min-height: 11rem;
    padding: 1.5rem;
  }

  .features {
    margin-top: 3rem;
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card + .feature-card {
    min-height: auto;
    padding: 1.35rem 2.5rem 1.35rem 0;
    border-left: 0;
  }

  .feature-card + .feature-card {
    border-top: 1px solid var(--line);
  }

  .site-footer {
    padding-bottom: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
