/* Larry Chan portfolio — design tokens from Framer archive */
:root {
  --bg: #f9f8f5;
  --bg-alt: #f5f4ef;
  --text: rgba(0, 0, 0, 0.75);
  --text-muted: rgba(0, 0, 0, 0.5);
  --link: #09f;
  --accent: #d1eafa;
  --chip: #3f6c88;
  --hairline: rgba(0, 0, 0, 0.15);
  --peach-glow: #fae5d1;
  --max: 1080px;
  --pad: 32px;
  --font-serif: "Lustria", Georgia, serif;
  --font-sans: "Satoshi", "Hanken Grotesk", system-ui, sans-serif;
  --font-display: "Hanken Grotesk", "Satoshi", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

ul,
ol {
  color: var(--text-muted);
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

strong {
  color: var(--text);
  font-weight: 500;
}

blockquote {
  margin: 1em 0;
  padding: 0.75em 1em;
  border-left: 3px solid var(--chip);
  background: rgba(209, 234, 250, 0.35);
  color: var(--text-muted);
  font-style: italic;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Nav */
.site-nav {
  max-width: calc(var(--max) + 8px);
  margin: 0 auto;
  padding: 28px var(--pad) 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text-muted);
  opacity: 1;
}

/* Home hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0 48px;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1016px, 100%);
  height: 280px;
  background: radial-gradient(ellipse at center, var(--peach-glow) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 28px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 23%;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.32px;
  line-height: 1.2;
  margin: 0 0 16px;
  background: radial-gradient(77% 206.25% at 20.8% 36.5%, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.51) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero h1 span {
  display: block;
}

.hero-tagline {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0;
  font-size: 20px;
  color: var(--text-muted);
  letter-spacing: -0.5px;
  line-height: 1.4;
}

/* Sections */
.section {
  padding: 40px 0 24px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 24px;
}

.section-intro {
  margin-bottom: 28px;
  max-width: 900px;
}

/* Project rows */
.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-row {
  border-top: 1px solid var(--hairline);
}

.project-row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.project-row a {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  color: var(--text-muted);
  text-decoration: none;
}

.project-row a:hover {
  opacity: 1;
  color: var(--text);
}

.project-thumb {
  flex-shrink: 0;
  width: 192px;
  height: 82px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8e6e0;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.7px;
  line-height: 1.2;
  margin: 0;
}

/* Methods grid */
.methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.method-card {
  position: relative;
  background: var(--accent);
  border-radius: 20px;
  padding: 28px 28px 48px;
  overflow: hidden;
  min-height: 220px;
}

.method-card h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.7px;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 12px;
}

.method-card p {
  margin: 0;
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.method-num {
  position: absolute;
  bottom: -8px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 128px;
  font-weight: 200;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--chip);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

/* Skills */
.skills-well {
  background: var(--accent);
  border-radius: 20px;
  padding: 48px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-chip {
  display: inline-block;
  background: var(--chip);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Experience */
.experience-list {
  list-style: none;
  margin: 0;
  padding: 0 0 64px;
}

.experience-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}

.experience-row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.exp-role {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.7px;
  line-height: 1.3;
  color: var(--text-muted);
  margin: 0;
}

.exp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.exp-company {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.exp-dates {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: -0.3px;
}

/* Case study pages */
.case-header {
  padding: 24px 0 32px;
}

.case-header h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.32px;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 28px;
  max-width: 920px;
}

.case-hero {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 8px;
}

.case-hero img,
.case-hero video {
  width: 100%;
  border-radius: 16px;
}

.case-section {
  padding: 40px 0 16px;
  border-top: 1px solid var(--hairline);
}

.case-section:first-of-type {
  border-top: none;
}

.case-num {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chip);
  margin-bottom: 8px;
}

.case-section h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.4px;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 20px;
}

.case-section h3 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.3;
  color: var(--text);
  margin: 28px 0 12px;
}

.case-section h4 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--text);
  margin: 20px 0 8px;
}

.figure {
  margin: 24px 0;
}

.figure img,
.figure video {
  width: 100%;
  border-radius: 12px;
}

.figure-pair {
  display: grid;
  grid-template-columns: minmax(120px, 240px) 1fr;
  gap: 16px;
  align-items: start;
  margin: 24px 0;
}

.figure-pair img {
  width: 100%;
  border-radius: 8px;
}

.tldr {
  background: var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--text);
  font-weight: 500;
}

.accent-well {
  background: var(--accent);
  border-radius: 20px;
  padding: 24px;
  margin: 24px 0;
}

.persona-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 24px 0;
}

.persona-stack img {
  width: 100%;
  border-radius: 12px;
}

.whiteboard-grid {
  margin: 24px 0;
}

.case-bottom {
  padding-bottom: 80px;
}

/* Responsive */
@media (max-width: 809px) {
  body {
    font-size: 18px;
  }

  .site-nav {
    gap: 18px;
    padding: 20px 20px 8px;
  }

  .wrap {
    padding: 0 20px;
  }

  .hero h1,
  .case-header h1 {
    font-size: 36px;
  }

  .hero-photo {
    width: 120px;
    height: 120px;
  }

  .section-title {
    font-size: 26px;
  }

  .project-row a {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .project-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 192 / 82;
  }

  .project-title {
    font-size: 20px;
  }

  .methods-grid {
    grid-template-columns: 1fr;
  }

  .method-num {
    font-size: 96px;
  }

  .skills-well {
    padding: 28px 20px;
  }

  .skill-chip {
    font-size: 16px;
  }

  .experience-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .exp-meta {
    align-items: flex-start;
    text-align: left;
  }

  .exp-role {
    font-size: 24px;
  }

  .case-section h2 {
    font-size: 26px;
  }

  .figure-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .hero h1,
  .case-header h1 {
    font-size: 30px;
  }
}
