:root {
  --bg: #ffffff;
  --ink: #191919;
  --muted: #848484;
  --line: #dddddd;
  --accent: #d36b95;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

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

a {
  color: inherit;
}

.site-shell {
  width: min(var(--max), calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.topbar-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.menu {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.menu a,
.contact a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 140ms ease, border-color 140ms ease;
}

.menu a:hover,
.menu a:focus-visible,
.menu a[aria-current="page"],
.contact a:hover,
.contact a:focus-visible {
  color: var(--ink);
  border-bottom-color: currentColor;
}

.contact {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

.page-header {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-title,
.home-copy h1,
.about-copy h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.page-lead,
.page-summary,
.about-copy p,
.home-copy p,
.work-card p {
  font-size: 0.98rem;
  line-height: 1.72;
  color: #353535;
}

.page-summary {
  color: #4a4a4a;
}

.home-hero {
  position: relative;
  min-height: 980px;
  overflow: hidden;
}

#wordParticle {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#canv,
#wordCanv {
  display: block;
  width: 100%;
  height: 100%;
}

#picontop {
  position: absolute;
  top: 68px;
  right: 0;
  width: min(500px, 44vw);
  z-index: 1;
}

#picontop img + img {
  width: 84%;
  margin-top: -10px;
}

.home-copy {
  position: absolute;
  left: 0;
  bottom: 34px;
  z-index: 2;
  max-width: 390px;
}

.about-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.myPic {
  width: 100%;
  height: auto;
}

.about-copy p {
  margin: 0 0 16px;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 26px;
}

.about-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  grid-column: span 4;
}

.work-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.work-card figure {
  margin: 0 0 10px;
  overflow: hidden;
  background: #f2f2f2;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.work-card a:hover img,
.work-card a:focus-visible img {
  transform: scale(1.02);
  filter: brightness(0.97);
}

.work-card-meta {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-card h2 {
  margin: 0 0 6px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.work-card p {
  margin: 0;
  max-width: 34ch;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.page-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 980px) {
  .page-header,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .work-card,
  .span-6,
  .span-8 {
    grid-column: span 6;
  }

  #picontop {
    width: min(430px, 48vw);
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(var(--max), calc(100vw - 18px));
  }

  .topbar {
    flex-direction: column;
  }

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

  .home-hero {
    min-height: 860px;
  }

  #picontop {
    position: absolute;
    left: 0;
    right: 0;
    width: auto;
  }

  .home-copy {
    right: 0;
    max-width: none;
  }

  .work-card,
  .span-6,
  .span-8 {
    grid-column: span 12;
  }
}

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

  .menu a,
  .contact a,
  .work-card img {
    transition: none;
  }
}
