@font-face {
  font-family: "Forma DJR Text";
  src: url("./public/fonts/forma-djr-text-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Forma DJR Text";
  src: url("./public/fonts/forma-djr-text-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "VC Garamond Condensed";
  src: url("./public/fonts/garamond-condensed-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}

:root {
  --bg: #f7f7f5;
  --ink: #1f1e1e;
  --sand: #bcb39d;
  --sky: #a9dff8;
  --sky-strong: #a9dff8;
  --dark: #1f1e1e;
  --card-border: rgba(31, 30, 30, 0.08);
  --ink-25: rgba(31, 30, 30, 0.25);
  --gray-200: #d9d9d9;
  --max-width: 1180px;
  --hero-frame: min(100vw, 1600px);
  --serif: "VC Garamond Condensed", "Iowan Old Style", "Palatino Linotype",
    "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Forma DJR Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.hero {
  position: relative;
  overflow: clip;
  min-height: 100vh;
  padding: 0 0 110px;
}

.top-nav {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: min(calc(var(--hero-frame) - 56px), 724px);
  height: 43px;
  margin: 0;
  padding: 7px 7px 5px;
  border-radius: 4px;
  background: rgba(188, 179, 157, 0.76);
  -webkit-backdrop-filter: blur(11px);
  backdrop-filter: blur(11px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  border-radius: 8px;
  background: var(--bg);
  padding: 0 14px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 30px;
  font-weight: 300;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-align: center;
}

.brand-mark {
  flex: none;
  width: 141px;
  margin-left: 4px;
}

.brand-mark img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.hero-wordmark {
  width: min(calc(var(--hero-frame) - 20px), 1580px);
  margin: 10px auto 0;
}

.hero-wordmark img,
.footer-wordmark img {
  width: 100%;
  height: auto;
}

.footer-wordmark {
  display: block;
}

.hero-copy {
  width: min(calc(100% - 40px), 1000px);
  padding-top: min(159px, 9.9375vw);
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1,
.intro h2,
.cta-block h2,
.founder-block h2,
.social-block h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 997px;
  margin: -5px auto 0;
  font-size: min(90px, 5.625vw);
  line-height: min(85px, 5.3125vw);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero-subhead,
.sand-heading,
.how-card h2,
.step-number {
  margin: 10px auto 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.05em;
  color: var(--sand);
}

.hero-subhead {
  max-width: 996px;
  margin-top: 1.5px;
  font-size: min(90px, 5.625vw);
  line-height: min(85px, 5.3125vw);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero-caption {
  margin: 79px 0 0;
  font-family: var(--sans);
  font-size: 19px;
  line-height: 27px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--sky);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.request-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.request-modal[hidden] {
  display: none;
}

.request-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(247, 247, 245, 0.82);
  backdrop-filter: blur(3px);
}

.request-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
}

.request-form {
  display: grid;
  gap: 10px;
  padding: 14px 11px 10px;
  border-radius: 4px;
  background: var(--sand);
  box-shadow: 0 24px 80px rgba(31, 30, 30, 0.18);
}

.request-form__default {
  display: grid;
  gap: 10px;
}

.request-form__default[hidden],
.request-form__success[hidden] {
  display: none !important;
}

.request-form h2 {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.request-form input,
.request-form textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: rgba(247, 247, 245, 0.97);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  padding: 5px 11px;
  outline: none;
}

.request-form input[aria-invalid="true"] {
  color: #ff5a26;
}

.request-form input[aria-invalid="true"]::placeholder {
  color: #ff5a26;
  opacity: 1;
}

.request-form__error {
  display: none;
}

.request-form textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 6px;
}

.request-form input::placeholder,
.request-form textarea::placeholder {
  color: rgba(31, 30, 30, 0.24);
}

.request-form input:focus,
.request-form textarea:focus {
  box-shadow: inset 0 0 0 2px rgba(31, 30, 30, 0.14);
}

.request-form__status {
  min-height: 22px;
  margin: 4px 0 0;
  color: rgba(31, 30, 30, 0.8);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.request-form__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.request-form__actions button {
  border: 0;
  border-radius: 12px;
  background: rgba(247, 247, 245, 0.98);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  padding: 5px 15px;
  cursor: pointer;
}

.request-form__actions .request-form__close {
  color: rgba(31, 30, 30, 0.24);
}

.request-form__submit:disabled {
  opacity: 0.64;
  cursor: wait;
}

.request-form__success {
  min-height: 460px;
  display: grid;
  align-content: space-between;
  text-align: center;
}

.request-form__success h2 {
  margin-bottom: 0;
}

.request-form__success p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.hero-cta {
  min-width: 157px;
  min-height: 38px;
  padding: 0 12px;
  margin-top: 27px;
  font-size: 19px;
  line-height: 26px;
  padding-top: 2px;
}

.section {
  padding: 120px 0;
}

.intro {
  text-align: center;
  padding-top: 190px;
  padding-bottom: 210px;
}

.intro h2 {
  max-width: 660px;
  margin: -75px auto 0;
  font-size: min(66px, 4.125vw);
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.intro p,
.examples p,
.feature-card p,
.step p,
.cta-block p,
.founder-role,
.founder-links {
  max-width: 580px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.5;
}

.sand-heading {
  max-width: 900px;
  text-align: center;
  font-size: clamp(2.3rem, 4.5vw, 4.8rem);
  line-height: 0.95;
}

.features-heading {
  max-width: 760px;
  margin-top: -115px;
  font-size: min(66px, 4.125vw);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.examples .sand-heading {
  font-size: min(66px, 4.125vw);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.intro p {
  max-width: 1120px;
  margin: 32px auto 0;
  font-size: 20px;
  line-height: 1.45;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 48px;
}

.features {
  width: min(calc(100% - 48px), 1076px);
}

.feature-card {
  grid-column: span 2;
  min-height: 115px;
  padding: 12px 12px 2px;
  border-radius: 8px;
  background: var(--sky);
  border: 1px solid rgba(31, 30, 30, 0.06);
}

.feature-card-offset {
  grid-column: 2 / span 2;
}

.feature-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.feature-header h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
}

.feature-header img {
  width: 38px;
  height: 38px;
  margin-top: -4px;
  margin-right: -4px;
  flex: none;
}

.feature-card p {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0;
}

.examples {
  text-align: center;
  padding-top: 0;
  padding-bottom: 138px;
  margin-top: 2px;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px;
  margin-top: 39px;
  text-align: left;
}

.example-grid article {
  max-width: 540px;
  margin: 0 auto;
}

.example-label {
  margin: 0 0 20px;
  color: var(--ink);
  font-weight: 500;
}

.example-marker {
  color: var(--sky);
}

.example-grid article p {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.example-grid article:first-child {
  transform: translateX(15px);
}

.example-grid article:last-child {
  transform: translateX(-84px);
}

.example-grid article:first-child .example-label {
  margin-bottom: 19px;
}

.example-grid article:last-child .example-label {
  margin-bottom: 19px;
}

.example-grid article p:last-child {
  margin: 0;
}

.dark-section {
  background: var(--dark);
  color: #f7f7f5;
}

.how-card {
  container-type: inline-size;
  width: min(calc(100% - 192px), 1408px);
  min-height: 673px;
  padding: 30px 30px 40px;
  border: 1px solid var(--ink-25);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
}

.dark-section {
  padding-top: 28px;
}

.how-card h2 {
  width: calc(100% - 20px);
  margin: 2px auto 0;
  font-size: min(319px, calc((100cqw - 20px) * 0.2298));
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--sky);
  white-space: nowrap;
  transform: translate(-19px, -28px);
}

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

.step {
  text-align: center;
}

.step:first-child {
  transform: translateX(57px);
}

.step:last-child {
  transform: translateX(-57px);
}

.step-number {
  display: block;
  margin-top: 0;
  font-size: 3.6rem;
  line-height: 1;
}

.step h3 {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
}

.step p {
  margin-top: 27px;
  font-size: 16px;
  line-height: 1.45;
}

.cta-block,
.founder-block,
.social-block {
  text-align: center;
}

.cta-block {
  position: relative;
  top: -14px;
  padding-top: 120px;
}

.cta-block h2,
.founder-block h2 {
  font-size: clamp(2.8rem, 4.6vw, 4.9rem);
  line-height: 0.95;
}

.cta-block h2 {
  margin-top: -15px;
  font-size: min(66px, 4.125vw);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.founder-block h2 {
  font-size: min(66px, 4.125vw);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--sand);
}

.cta-block p {
  margin: 39px auto 0;
  max-width: 700px;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
  color: rgba(247, 247, 245, 0.88);
}

.cta-block .button-primary {
  margin-top: 41px;
  min-width: 111px;
  min-height: 31px;
  padding: 2px 12px 0;
  font-size: 17px;
  line-height: 22px;
  background: var(--sky);
  color: var(--ink);
}

.founder-block {
  position: relative;
  top: -14px;
  padding-top: 150px;
}

.founder-avatar {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  margin: 34px auto 0;
  overflow: hidden;
}

.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: grayscale(100%) contrast(0.88) brightness(1.03);
}

.founder-name {
  margin: 26px 0 0;
  font-family: var(--sans);
  font-size: 20px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(247, 247, 245, 0.95);
}

.founder-role,
.founder-links {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}

.founder-role {
  color: var(--sand);
}

.founder-links {
  font-size: 15px;
  line-height: 21px;
  color: var(--sky);
}

.founder-links a {
  color: var(--sky);
  text-decoration: none;
}

.social-block {
  padding-top: 120px;
  padding-bottom: 120px;
}

.social-block h2 {
  font-size: min(66px, 4.125vw);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--sky);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.social-link {
  width: 36px;
  height: 36px;
}

.social-link img {
  width: 100%;
  height: 100%;
}

.site-footer {
  background: var(--dark);
  color: var(--sand);
  padding-bottom: 18px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: -8px;
  padding-bottom: 0;
  font-size: 16px;
  line-height: 22px;
  transform: translateX(-152px);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-wordmark {
  width: min(calc(var(--hero-frame) - 20px), 1580px);
  margin: 8px auto 0;
  filter: invert(1);
  opacity: 0.98;
}

@media (max-width: 980px) {
  .hero-wordmark,
  .footer-wordmark {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card-offset {
    grid-column: auto;
  }

  .how-card h2 {
    font-size: min(319px, calc((100cqw - 20px) * 0.2298));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    min-height: auto;
    padding-bottom: 80px;
  }

  .top-nav {
    position: relative;
    top: 0;
    left: auto;
    transform: none;
    width: calc(100% - 28px);
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 0 0 18px 18px;
    padding: 10px 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-links a {
    height: 31px;
    padding: 0 14px;
    font-size: 24px;
    line-height: 30px;
  }

  .brand-mark {
    width: min(170px, 56vw);
  }

  .hero-copy {
    padding-top: 44px;
  }

  .section {
    padding: 88px 0;
  }

  .intro p,
  .examples p,
  .feature-card p,
  .step p,
  .cta-block p,
  .founder-role,
  .founder-links {
    font-size: 15px;
  }

  .feature-card {
    min-height: auto;
  }

  .how-card {
    padding: 22px 18px 28px;
  }

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

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .request-modal {
    padding: 12px;
  }

  .request-form {
    padding: 16px 10px 10px;
  }

  .request-form h2 {
    margin-bottom: 14px;
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .request-form input,
  .request-form textarea,
  .request-form__actions button {
    font-size: 16px;
    line-height: 24px;
  }

  .request-form textarea {
    min-height: 132px;
  }

  .request-form__actions {
    margin-top: 16px;
  }
}
