@font-face {
  font-family: "Geist Sans";
  src: url("../assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --font-sans: "Geist Sans", system-ui, -apple-system, sans-serif;
  --content-width: 48rem;
  --page-padding: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--stone-900);
  background: var(--stone-50);
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--stone-400);
  outline-offset: 2px;
}

.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;
}

.site {
  min-height: 100dvh;
  background: var(--stone-50);
}

.content-column {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3.5rem var(--page-padding) 5rem;
}

.site-header {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.site-name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--stone-900);
}

.page-main {
  padding-top: 0;
}

.hero {
  padding: 0.5rem 0 3rem;
}

.eyebrow,
.section-kicker {
  margin-bottom: 1.25rem;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-500);
}

.hero h1 {
  max-width: 40rem;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--stone-900);
}

.hero-copy {
  max-width: 39rem;
  margin-top: 1.75rem;
  color: var(--stone-600);
}

.hero-copy p + p {
  margin-top: 1rem;
}

.hero-copy a,
.contact-section a {
  color: var(--stone-900);
  text-decoration: underline;
  text-decoration-color: var(--stone-300);
  text-underline-offset: 3px;
}

.hero-copy a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.contact-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.hero-copy a:hover .contact-arrow,
.hero-copy a:focus-visible .contact-arrow {
  transform: translateX(0.25rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .contact-arrow,
  .external-mark {
    transition: none;
  }
}

.home-section {
  padding: 2.15rem 0;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service-item {
  padding: 1.35rem;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
}

.service-item h3,
.experience-heading h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--stone-900);
}

.service-item h3 {
  margin-bottom: 0.4rem;
}

.service-item p,
.experience-item p,
.personal-note p,
.contact-section p {
  color: var(--stone-600);
}

.experience-list {
  border-top: 1px solid var(--stone-200);
}

.experience-item {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--stone-200);
}

.experience-heading {
  margin-bottom: 0.55rem;
}

.experience-heading h3 a {
  text-decoration: underline;
  text-decoration-color: var(--stone-300);
  text-underline-offset: 3px;
}

.experience-heading h3 a:hover {
  color: var(--stone-600);
  text-decoration-color: var(--stone-400);
}

.external-mark {
  display: inline-block;
  margin-left: 0.1rem;
  font-size: 0.78em;
  color: var(--stone-400);
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease;
}

.experience-heading h3 a:hover .external-mark,
.experience-heading h3 a:focus-visible .external-mark,
.contact-link:hover .external-mark,
.contact-link:focus-visible .external-mark {
  color: var(--stone-600);
  transform: translate(0.12rem, -0.12rem);
}

.experience-item p {
  max-width: 42rem;
}

.experience-item p + p {
  margin-top: 0.55rem;
}

.contact-section {
  margin-top: 2.15rem;
  scroll-margin-top: 1.5rem;
  padding: 2rem;
  border-radius: 10px;
  background: var(--stone-100);
}

.contact-section .section-kicker {
  margin-bottom: 0.9rem;
}

.contact-section h2 {
  margin-bottom: 0.45rem;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--stone-900);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.9rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  color: var(--stone-900);
  background: none;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--stone-300);
  text-underline-offset: 3px;
  cursor: pointer;
}

.contact-link:hover {
  color: var(--stone-600);
  text-decoration-color: var(--stone-400);
}

.contact-link img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 3px;
}

@media (max-width: 639px) {
  .hero {
    padding-bottom: 3rem;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 1.5rem;
  }
}

@media (min-width: 640px) {
  :root {
    --page-padding: 2rem;
  }

  .site-header {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .content-column {
    padding-bottom: 7rem;
  }
}

/* About page — matches noahzender.com/about */
.about-header {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .about-header {
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
  }
}

.brand-inline-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  vertical-align: baseline;
  text-underline-offset: 2px;
}

.brand-inline-link strong {
  font-weight: 600;
  color: var(--stone-900);
}

.brand-inline-link img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transform: translateY(-1px);
}

.brand-inline-link img.brand-icon--app {
  border-radius: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .brand-inline-link:hover {
    text-decoration: underline;
    text-decoration-color: rgba(168, 162, 158, 0.8);
  }

  .brand-inline-link:hover .icon-shift {
    color: var(--stone-500);
  }
}

.prose-site h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.875rem;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--stone-900);
}

.prose-site strong {
  font-weight: 600;
  color: var(--stone-900);
}

.icon-shift {
  font-size: 12px;
  line-height: 1;
  color: var(--stone-300);
}

/* Notes list */
.notes-section {
  padding-top: 1rem;
}

.section-label {
  padding-top: 2rem;
  padding-bottom: 0.75rem;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--stone-500);
  line-height: 1.625;
}

@media (min-width: 640px) {
  .section-label {
    padding-top: 2.5rem;
    padding-bottom: 1rem;
  }
}

.notes-list {
  list-style: none;
}

.notes-empty {
  font-size: 16px;
  line-height: 1.625;
  color: var(--stone-400);
}

.entry-title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--stone-900);
}

.entry-meta {
  display: block;
  font-size: 16px;
  color: var(--stone-500);
  line-height: 1.625;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
}

/* Note detail */
.page-view[hidden],
#page-home[hidden] {
  display: none !important;
}

.note-header {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.entry-date {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 16px;
  color: var(--stone-500);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.page-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--stone-900);
}

.prose-site {
  color: var(--stone-800);
  font-size: 16px;
  line-height: 1.625;
}

.prose-site p {
  margin-bottom: 1.5rem;
}

.about-page .prose-site {
  color: var(--stone-600);
}

.about-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-intro p {
  margin-bottom: 0;
}

.about-page .prose-site p:last-child {
  margin-bottom: 0;
}

.prose-site a:not(.brand-inline-link):not(.proof-link) {
  color: var(--stone-900);
  text-underline-offset: 3px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.prose-site a:not(.brand-inline-link):not(.proof-link):hover {
  color: var(--stone-600);
}

.proof-link {
  color: var(--stone-700);
  text-decoration: underline;
  text-decoration-color: rgba(168, 162, 158, 0.7);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.proof-link .icon-shift {
  margin-left: 0.15rem;
  text-decoration: none;
  display: inline-block;
}

@media (hover: hover) and (pointer: fine) {
  .proof-link:hover {
    color: var(--stone-900);
    text-decoration-color: var(--stone-500);
  }

  .proof-link:hover .icon-shift {
    color: var(--stone-500);
  }
}

.inline-nav-link {
  color: var(--stone-900);
  text-underline-offset: 3px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.inline-nav-link:hover {
  color: var(--stone-600);
}

.page-intro-header {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

.page-intro {
  margin-bottom: 1rem;
}

.page-intro p:last-child {
  margin-bottom: 0;
}

.back-link-wrap {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--stone-200);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 16px;
  color: var(--stone-500);
}

.back-link:hover {
  color: var(--stone-700);
}

.back-link:hover .icon-shift {
  color: var(--stone-500);
}
