/* Public multipage layout. Admin styles remain isolated from this file. */
.public-site {
  min-width: 320px;
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}

.public-site .public-topbar {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 0;
}

.public-site .page-kicker {
  color: #b9b9b5;
  font-size: 13px;
}

.bottom-nav {
  position: fixed;
  z-index: 90;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(620px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 6px;
  border: 1px solid #40403e;
  border-radius: 18px;
  background: #181818;
  box-shadow: 0 12px 32px rgb(0 0 0 / .34);
}

.bottom-nav a {
  min-width: 0;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 11px;
  color: #bdbdb9;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color .16s ease, color .16s ease;
}

.bottom-nav a:hover {
  color: #fff;
  background: #282826;
}

.bottom-nav a.active {
  color: #111;
  background: #f1f1ed;
}

.bottom-nav a:focus-visible {
  outline-color: #fff;
  outline-offset: 3px;
}

.bottom-nav a.active:focus-visible {
  outline-color: #111;
}

.nav-icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.page-shell {
  min-height: 0;
}

.page-shell > .content-page {
  min-height: 0;
  padding-top: clamp(22px, 2.2vw, 32px);
  padding-bottom: clamp(34px, 4vw, 58px);
}

.content-page .section-label,
.page-contact .section-label {
  font-size: 13px;
}

.content-page .section-label > span:first-child,
.content-page .section-label > span:last-child,
.page-contact .section-label > span:first-child,
.page-contact .section-label > span:last-child {
  font-size: inherit;
}

.content-page h1,
.page-contact h2 {
  overflow-wrap: anywhere;
}

.typing-title {
  position: relative;
}

.typing-title .type-reserve {
  display: block;
  visibility: hidden;
}

.typing-title .type-output {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.typing-title .type-word {
  display: inline-block;
  white-space: nowrap;
}

.hero .typing-title .type-reserve > span:not(.type-char):not(.typing-cursor),
.hero .typing-title .type-output > span:not(.type-char):not(.typing-cursor) {
  display: block;
  overflow-wrap: anywhere;
}

.typing-title .type-char {
  display: none;
}

.typing-title .type-char.is-visible {
  display: inline;
}

.typing-title .type-space.is-visible {
  white-space: pre-wrap;
}

.typing-cursor {
  display: inline-block;
  position: relative;
  width: 0;
  height: .82em;
  vertical-align: -.06em;
}

.typing-cursor::after {
  content: '';
  position: absolute;
  left: .045em;
  bottom: 0;
  width: .055em;
  height: .82em;
  background: #f1f1ed;
  animation: typing-cursor-blink 720ms steps(1, end) infinite;
}

@keyframes typing-cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

.about-heading h1,
.education-layout > h1,
.work-layout h1,
.archive-heading h1 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.05em;
}

.content-page .about-layout {
  align-items: start;
}

.public-site .prose {
  font-size: 16px;
  line-height: 1.85;
}

.public-site .small-label,
.public-site .school-period,
.public-site .school-row p,
.public-site .achievement-meta,
.public-site .achievement-copy .achievement-issuer,
.public-site .achievement-copy > p,
.public-site .archive-heading > p,
.public-site .archive-empty p,
.public-site .archive-empty-label,
.public-site .document-cover > small,
.public-site .work-layout > div > p,
.public-site .work-row p,
.public-site .work-empty p,
.public-site .skill-tags,
.public-site .detail-eyebrow,
.public-site .contact-empty,
.public-site .contact-signoff,
.public-site .site-footer {
  font-size: 13px;
}

.public-site .hero-index,
.public-site .hero-caption,
.public-site .hero-bottom,
.public-site .visual-top,
.public-site .visual-bottom small,
.public-site .hero-photo-placeholder small {
  font-size: 12px;
}

.public-site .hero-intro {
  font-size: 16px;
  line-height: 1.75;
}

.public-site .button,
.public-site .text-link {
  font-size: 14px;
}

.public-site .interest-list {
  font-size: 15px;
}

.content-page .interest-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.content-page .interest-list span {
  min-width: 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.education-layout {
  align-items: start;
}

.school-row h2 {
  margin: 10px 0;
  color: #eee;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 550;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.work-row h2,
.achievement-copy h2,
.archive-empty h2 {
  color: #eee;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 550;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.work-row h2 {
  margin: 10px 0 13px;
}

.achievement-copy h2 {
  margin-bottom: 12px;
}

.archive-empty h2 {
  margin-bottom: 12px;
}

.home-page .hero {
  min-height: 0;
  display: block;
  padding-top: 0;
}

.home-page .hero-layout {
  width: 100%;
  padding-top: 14px;
}

@media (max-width: 850px) {
  .public-site .public-topbar {
    margin-inline: 5%;
  }

  .page-shell > .content-page {
    min-height: auto;
  }

  .about-heading h1,
  .education-layout > h1,
  .work-layout h1,
  .archive-heading h1 {
    font-size: clamp(38px, 8vw, 56px);
  }

  .content-page .archive-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin: 24px 0;
  }

  .content-page .archive-heading > p {
    max-width: 540px;
  }

  .content-page .archive-heading > h1 {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .public-site {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .public-site .public-topbar {
    margin: 0 20px;
    padding: 17px 0;
  }

  .public-topbar .brand {
    font-size: 18px;
  }

  .public-site .page-kicker {
    font-size: 12px;
  }

  .bottom-nav {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    gap: 2px;
    padding: 5px;
    border-radius: 15px;
  }

  .bottom-nav a {
    min-height: 60px;
    gap: 4px;
    padding: 5px 1px;
    border-radius: 10px;
    font-size: 12px;
  }

  .nav-icon {
    width: 21px;
    height: 21px;
  }

  .page-shell {
    min-height: auto;
  }

  .page-shell > .content-page {
    min-height: auto !important;
    display: block !important;
    padding-top: 18px !important;
    padding-bottom: 32px !important;
  }

  .content-page .section-label,
  .page-contact .section-label {
    font-size: 12px;
    gap: 20px;
  }

  .content-page .archive-heading {
    gap: 12px;
    margin: 22px 0;
  }

  .content-page .archive-heading > p {
    width: 100%;
  }

  .about-heading h1,
  .education-layout > h1,
  .work-layout h1,
  .archive-heading h1 {
    font-size: clamp(37px, 11vw, 48px);
  }

  .public-site .prose {
    font-size: 15px;
  }

  .public-site .hero-intro {
    font-size: 15px;
  }

  .home-page .hero h1 {
    font-size: clamp(62px, 18vw, 92px);
  }

  .home-page .hero-layout {
    padding-top: 4px;
  }

}

@media (max-width: 370px) {
  .bottom-nav a {
    font-size: 12px;
  }

  .nav-icon {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bottom-nav a {
    transition: none;
  }

  .typing-title .type-char {
    display: inline;
  }

  .typing-cursor {
    display: none;
  }
}
