@font-face {
  font-family: "Context Signature";
  src: url("/assets/fonts/Allura-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.about-page {
  height: 100svh;
  background: var(--bg);
  color: var(--ink);
}

.about-page .nav-shell a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.about-main,
.about-screen {
  height: 100svh;
}

/* Clip page scroll here — never on body — so the fixed header dropdown is not clipped. */
.about-main {
  overflow: hidden;
}

.about-screen {
  width: 100%;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
}

.about-screen-shell {
  display: grid;
  grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
  gap: 96px;
  align-items: center;
  width: min(100%, 1600px);
  height: 100%;
  margin: 0 auto;
  padding: 104px 48px 28px;
}

.about-intro {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  justify-content: space-between;
  max-width: 32rem;
  padding: 52px 0 24px;
}

.about-intro h1,
.note-letter h2 {
  margin: 0;
  color: var(--ink);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.about-vision {
  max-width: 28rem;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.about-socials {
  display: flex;
  align-items: center;
  gap: 24px;
}

.about-socials a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
}

.about-socials a:hover,
.about-socials a:focus-visible {
  color: var(--muted);
}

.about-socials span {
  font-size: 10px;
}

.note-letter {
  width: min(100%, 768px);
  max-height: 100%;
  margin: 0;
}

.note-letter h2 {
  margin-bottom: 32px;
}

.note-letter p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.note-letter .note-salutation {
  margin-bottom: 20px;
  color: var(--ink);
}

.note-letter .note-close {
  margin-top: 20px;
  color: var(--ink);
}

.note-signature {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 15, 15, 0.08);
}

.note-signature .signature-script {
  display: inline-block;
  color: #20211f;
  font-family: "Context Signature", "Snell Roundhand", "Apple Chancery", cursive;
  font-size: clamp(36px, 3.2vw, 46px);
  font-style: normal;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.005em;
  white-space: nowrap;
  text-rendering: optimizeLegibility;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

.note-signature small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  text-align: right;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .about-screen-shell {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: 56px;
    padding-right: 32px;
    padding-left: 32px;
  }

  .about-intro h1,
  .note-letter h2 {
    font-size: 32px;
  }

  .about-intro {
    padding-top: 40px;
  }

  .note-letter h2 {
    margin-bottom: 24px;
  }

  .note-letter p {
    font-size: 13px;
    line-height: 20px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .about-screen-shell {
    padding-top: 88px;
    padding-bottom: 18px;
  }

  .about-intro {
    padding-top: 36px;
    padding-bottom: 10px;
  }

  .note-letter h2 {
    margin-bottom: 22px;
  }

  .note-letter p {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 20px;
  }

  .note-letter .note-salutation {
    margin-bottom: 16px;
  }

  .note-letter .note-close {
    margin-top: 16px;
  }

  .note-signature {
    margin-top: 18px;
    padding-top: 16px;
  }
}

@media (max-width: 900px) {
  .about-page {
    height: auto;
    min-height: 100svh;
  }

  .about-main,
  .about-screen {
    height: auto;
    min-height: 100svh;
  }

  .about-main {
    overflow: visible;
  }

  .about-screen-shell {
    grid-template-columns: 1fr;
    gap: 64px;
    height: auto;
    padding: 120px 32px 64px;
  }

  .about-intro {
    order: 2;
    gap: 48px;
    padding: 0;
  }

  .note-letter {
    order: 1;
    width: min(100%, 768px);
  }
}

@media (max-width: 640px) {
  .about-screen-shell {
    gap: 52px;
    padding: calc(100px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(44px, calc(32px + env(safe-area-inset-bottom))) max(20px, env(safe-area-inset-left));
  }

  .about-intro h1,
  .note-letter h2 {
    font-size: 30px;
  }

  .about-vision {
    margin-top: 24px;
  }

  .note-letter h2 {
    margin-bottom: 28px;
  }

  .note-signature {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .note-signature small {
    text-align: left;
  }

  .note-signature .signature-script {
    font-size: clamp(30px, 9vw, 36px);
  }

  .about-socials {
    gap: 12px;
  }

  .about-socials a {
    min-height: 44px;
    align-items: center;
    padding: 8px 0;
  }
}
