

:root {
  /* Colors */
  --page-bg: #F2F4F2;
  --dark: #2D3432;
  --muted: #5A605E;
  --border: #E5E9E6;
  --white: #FFFFFF;
  --yellow-50: #FEFCE8;
  --yellow-200: #FEF08A;

  /* Typography */
  --font-inter: 'Inter', sans-serif;
  --font-newsreader: 'Newsreader', serif;
  --font-architects: 'Architects Daughter', cursive;

  /* Layout */
  --max-content: 720px;
}

/* ─── Base Reset ────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--page-bg);
  color: var(--dark);
  font-family: var(--font-inter), sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

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

/* ─── Layout Utilities ────────────────────────────────────────────────── */
.container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: var(--max-content);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.hidden { display: none; }
.md-block { display: none; }
@media (min-width: 768px) {
  .md-block { display: block; }
}

.relative { position: relative; }
.absolute { position: absolute; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.text-center { text-align: center; }
.overflow-hidden { overflow: hidden; }

/* ─── GSAP Initial State ────────────────────────────────────────────── */
.gsap-hidden {
  opacity: 0;
  visibility: hidden;
}

/* ─── Loading Overlay ───────────────────────────────────────────────── */
#loading-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--page-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Sections ──────────────────────────────────────────────────────── */
.section-py {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .section-py {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* ─── Hero ──────────────────────────────────────────────────────────── */
#hero {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  #hero {
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
}

.hero-photo-wrapper {
  width: 7rem;
  height: 7rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .hero-photo-wrapper {
    width: 8rem;
    height: 8rem;
  }
}

.hero-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: grayscale(100%);
}

.hero-caption {
  bottom: -0.25rem;
  right: -1.5rem;
  font-family: var(--font-architects);
  font-size: 0.75rem;
  color: var(--muted);
  user-select: none;
}

.hero-name {
  font-family: var(--font-architects);
  font-size: 3.5rem; /* Increased from 3rem */
  font-weight: 500; /* Lowered from default bold (700) */
  line-height: 1;
  color: var(--dark);
  margin-bottom: 1.5rem; /* Increased gap */
}

@media (min-width: 768px) {
  .hero-name {
    font-size: 4.5rem; /* Increased from 3.75rem */
    margin-bottom: 2rem; /* Even more gap on desktop */
  }
}

.hero-title {
  font-family: var(--font-architects);
  font-size: 1.125rem;
  color: #727A77; /* Slightly lighter muted color to match mockup */
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 1.25rem; /* Increased from 1.125rem */
  }
}

.hero-bio {
  font-family: var(--font-inter);
  font-size: 0.9375rem;
  color: #727A77; /* Matching light muted color from mockup */
  line-height: 1.7; /* Increased for airy feel */
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .hero-bio {
    font-size: 1.0625rem; /* Approx 17px */
  }
}

.hero-bio p + p {
  margin-top: 0.125rem;
}

.connect-container {
  margin-top: 2.5rem;
}

.connect-link {
  font-family: var(--font-architects);
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.connect-link:hover {
  color: var(--dark);
}

.connect-tooltip {
  position: absolute;
  top: -1.75rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
  font-size: 0.75rem;
  color: var(--dark);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .connect-link:hover .connect-tooltip {
    opacity: 1;
    visibility: visible;
  }
}

/* ─── Downloadables ─────────────────────────────────────────────────── */
.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-newsreader);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--muted);
  font-weight: 400;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
}

.divider {
  height: 1px;
  background-color: var(--border);
  flex: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10rem;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-family: var(--font-inter);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--dark);
  color: var(--white);
}

.btn-primary:hover {
  opacity: 0.8;
}

.btn-outline {
  background-color: transparent;
  color: var(--dark);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background-color: var(--border);
}

/* ─── Works ─────────────────────────────────────────────────────────── */
.works-list {
  display: flex;
  flex-direction: column;
}

.work-item {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.work-item:first-child {
  padding-top: 0;
}

.work-item:last-child {
  border-bottom: none;
}

.work-header {
  margin-bottom: 0.5rem;
}

.work-title {
  font-family: var(--font-newsreader);
  font-size: 1.1875rem; /* Increased size to match serif weight */
  font-weight: 400;
  font-style: normal; /* Explicitly normal style */
  color: var(--dark);
}

@media (min-width: 768px) {
  .work-title {
    font-size: 1.3125rem;
  }
}

.work-link {
  color: var(--muted);
  margin-top: 0.125rem;
  transition: opacity 0.2s;
}

.work-link:hover {
  opacity: 0.8;
}

.work-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.625;
}

@media (min-width: 768px) {
  .work-desc {
    font-size: 1rem;
  }
}

/* ─── Social ────────────────────────────────────────────────────────── */
#social {
  padding-top: 3rem;
  padding-bottom: 3rem;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  #social {
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 2.5rem;
  }
}

.social-link {
  font-family: var(--font-inter);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.15em; /* Increased tracking */
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .social-link {
    font-size: 0.8125rem;
    letter-spacing: 0.2em; /* Even wider on desktop */
  }
}

.social-link:hover {
  color: var(--dark);
}

.social-link svg {
  opacity: 0.6;
  transition: transform 0.2s;
}

.social-link:hover svg {
  transform: translate(0.125rem, -0.125rem);
}

/* ─── Workspace Footer ──────────────────────────────────────────────── */
#workspace {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: var(--page-bg);
}

@media (min-width: 768px) {
  #workspace {
    padding-top: 3rem;
    background-color: rgba(229, 233, 230, 0.4); /* md:bg-border/40 */
  }
}

.workspace-label {
  font-family: var(--font-architects);
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.025em;
}

.workspace-img-container {
  position: relative;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--max-content);
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .workspace-img-container {
    padding-left: 0;
    padding-right: 0;
  }
}

.sticky-note {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  background-color: var(--yellow-50);
  border: 1px solid var(--yellow-200);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  width: 9rem;
  transform: rotate(1deg);
}

@media (min-width: 768px) {
  .sticky-note {
    top: 1.5rem;
    left: 1.5rem;
    width: 11rem;
  }
}

.sticky-text {
  font-family: var(--font-architects);
  font-size: 0.75rem;
  color: var(--dark);
  line-height: 1.375;
}

.workspace-img-wrapper {
  border-radius: 0.75rem;
  overflow: hidden;
}

.workspace-img-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#end-text-container {
  justify-content: center;
  align-items: center;
  height: 6rem;
  width: 100%;
  margin-top: 0;
}

@media (min-width: 768px) {
  #end-text-container {
    margin-top: 2rem;
  }
}

#footer-end-text-inner {
  font-family: var(--font-architects);
  font-size: 1.125rem;
  color: #9ca3af; /* gray-400 */
  text-align: center;
  letter-spacing: 0.05em;
  opacity: 1;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
