:root {
  color-scheme: light;
  --page: #faf9f6;
  --paper: #fffefa;
  --ink: #201b2c;
  --muted: #5f586d;
  --purple: #4830a6;
  --line: #e2dce8;
  --tracking: -.04em;
  --sans: "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
.container { width: min(100% - 6rem, 72rem); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 2;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  padding: .7rem 1rem;
  background: var(--paper);
  border-radius: .5rem;
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner,
.footer-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.wordmark-cafe { color: var(--purple); }
.site-header nav a,
.footer-link {
  display: inline-block;
  padding-block: .55rem;
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 600;
}
.site-header nav a:hover,
.footer-link:hover { color: var(--purple); text-decoration: underline; text-underline-offset: .25em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  align-items: center;
  gap: clamp(1rem, 3.5vw, 3.7rem);
  padding-block: clamp(2.5rem, 4.5vw, 4rem) clamp(2.6rem, 4.6vw, 4.1rem);
}
.hero-copy { padding-block: .5rem 1rem; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .58rem;
  margin-bottom: 1.3rem;
  color: var(--purple);
  font-size: .89rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow span {
  width: .54rem;
  height: .54rem;
  background: currentColor;
  transform: rotate(45deg);
  border-radius: .12rem;
}
.hero h1 {
  font-size: clamp(3rem, 5.8vw, 5.2rem);
  line-height: 1.17;
  font-weight: 800;
  letter-spacing: -.065em;
}
.hero h1 em { color: var(--purple); font-style: normal; }
.hero-description {
  max-width: 23rem;
  margin-top: 1.45rem;
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  color: var(--muted);
  line-height: 1.85;
}
.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 1.65rem;
  padding-inline: 1.35rem;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  border-radius: .65rem;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.primary-link:hover { background: var(--purple); border-color: var(--purple); }
.hero-poster { width: 100%; height: auto; }

.projects {
  padding-block: 2.15rem 4.8rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1.25rem;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .7rem 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.section-heading h2 { font-size: clamp(1.65rem, 3.15vw, 2.6rem); line-height: 1.3; letter-spacing: var(--tracking); }
.section-heading p { color: var(--muted); font-size: .94rem; }
.project-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.15rem; }
.project {
  display: flex;
  min-width: 0;
  flex-direction: column;
  grid-column: span 2;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.project-wide { grid-column: span 3; }
.project-link { transition: border-color .18s ease, box-shadow .18s ease; }
.project-link:hover,
.project-link:focus-within { border-color: #b0a1dc; box-shadow: 0 .5rem 1.4rem #3b267611; }
.project-art {
  width: 100%;
  height: clamp(8.2rem, 11vw, 9.65rem);
  object-fit: cover;
  object-position: center;
  border-radius: .95rem .95rem 0 0;
}
.project-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  padding: 1.15rem 1.25rem 1.17rem;
}
.project-role { margin-bottom: .3rem; color: var(--muted); font-size: .88rem; font-weight: 600; }
.project h3 { font-size: clamp(1.4rem, 2.55vw, 1.88rem); line-height: 1.21; letter-spacing: -.05em; overflow-wrap: anywhere; }
.project-description { margin-top: .5rem; margin-bottom: .8rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.project-action,
.project-status {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  margin-top: auto;
  font-size: .9rem;
  font-weight: 650;
}
.project-action {
  color: var(--purple);
  background: #f2edff;
  padding-inline: .8rem;
  border-radius: .5rem;
  text-decoration: none;
}
.project-action:hover { text-decoration: underline; text-underline-offset: .18em; background: #eae2ff; }
.project-status { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 5.15rem; }

@media (max-width: 57rem) {
  .container { width: min(100% - 3rem, 72rem); }
  .hero { gap: 1rem; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project,
  .project-wide { grid-column: auto; }
}

@media (max-width: 43rem) {
  .container { width: calc(100% - 2rem); }
  .header-inner { min-height: 4rem; }
  .hero { grid-template-columns: 1fr; gap: 1rem; padding-block: 2.4rem 2.15rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.6rem, 10.7vw, 4.35rem); }
  .hero-description { margin-top: .95rem; }
  .primary-link { margin-top: 1.2rem; }
  .hero-poster { max-width: 30rem; justify-self: center; }
  .projects { padding-block: 1.65rem 3rem; }
  .section-heading { margin-bottom: 1.1rem; }
}

@media (max-width: 33rem) {
  .project-grid { grid-template-columns: 1fr; gap: .9rem; }
  .project-art { height: 8.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
