:root {
  --night: #101111;
  --paper: #f4f2ec;
  --mist: #b8bfbd;
  --steel: #aebfcc;
  --line: rgb(255 255 255 / 21%);
  --blue-paper: #dce4e9;
}

body {
  background: var(--night);
  color: var(--paper);
  font-family: 'DM Sans', sans-serif;
}

body::before {
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  content: '';
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.content { max-width: 1500px; margin: auto; padding: 0 5vw; }

.topbar {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 90px;
  padding: 0 5vw;
  background: linear-gradient(var(--night), transparent);
}

.hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 780px;
  height: min(900px, 90vh);
  padding: 0 5vw;
  isolation: isolate;
}

.hero-image { position: absolute; top: 0; right: 0; width: 65%; height: 100%; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: grayscale(1) contrast(1.08) brightness(.48); }

.hero-image::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, var(--night) 0%, transparent 52%), linear-gradient(0deg, var(--night) 0%, transparent 34%);
}

.hero-copy { position: relative; z-index: 1; width: 100%; padding-top: 150px; padding-bottom: 90px; }

.hero h1 {
  margin: 27px 0 36px;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: clamp(6.5rem, 13.6vw, 14.5rem);
  font-weight: 700;
  line-height: .72;
  letter-spacing: -.09em;
}

.hero h1 em { padding-left: .18em; color: var(--steel); font-weight: 500; }
.hero-intro { max-width: 295px; color: #e3e4e3; font-size: 1.0625rem; }

.about { display: grid; grid-template-columns: 1fr 2.3fr 1fr; gap: 4vw; padding-top: 100px; padding-bottom: 100px; }
.about-main h2, .section-head h2 { font-size: clamp(2.75rem, 5vw, 5.25rem); font-weight: 500; line-height: 1.05; letter-spacing: -.065em; }
.about-main h2 em, .section-head h2 em { font-family: 'Bodoni Moda', Georgia, serif; font-weight: 500; }
.about-prose { max-width: 560px; margin-top: 32px; }
.about-prose p { margin-top: 20px; color: var(--mist); font-size: 1rem; line-height: 1.8; }
.about-prose .text-link { margin-top: 20px; }
.about-photo { align-self: end; margin: 0; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.about-photo figcaption { margin-top: 15px; color: var(--mist); font-size: .6875rem; }

.projects-section, .writing { padding-top: 75px; padding-bottom: 85px; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 3.6fr; gap: 4vw; margin-bottom: 45px; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.project-card { padding-top: 24px; border-top: 1px solid var(--line); }
.project-art { height: 300px; background: #dedfda; color: #151616; }
.project-art > span { font-size: clamp(3rem, 5.5vw, 6rem); }
.project-art img {
  max-width: 85%;
  max-height: 280px;
  filter: brightness(0);
}
.project-info { padding-top: 24px; }
.project-info > .eyebrow, .post-no, .post .eyebrow { color: var(--mist); }
.project-info h3 { margin: 10px 0 15px; font-size: 2rem; letter-spacing: -.045em; }
.project-info p { max-width: 440px; color: var(--mist); }
.project-info .text-link { margin-top: 18px; }
.project-card:hover .text-link { text-decoration: underline; text-underline-offset: 5px; }

.post { grid-template-columns: 50px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.post h3 { margin-top: 12px; font-size: clamp(1.4rem, 2.4vw, 2.25rem); letter-spacing: -.035em; }
.post:hover h3 { color: #bfd0dd; }
.all-posts { margin-top: 15px; }

.contact { padding-top: 60px; padding-bottom: 75px; background: var(--blue-paper); color: #1a2024; }

.contact h2 {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.08em;
}

.contact-note { max-width: 720px; margin: 30px 0; line-height: 1.7; }
.contact-note a { color: inherit; }
.contact-form { display: grid; max-width: 760px; gap: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 9px; font-family: 'DM Mono', monospace; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px; border: 1px solid #1a202440; border-radius: 0; background: transparent; color: inherit; font: inherit; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #1a2024; outline: 2px solid transparent; }
.contact-form button { justify-self: start; padding: 15px 21px; border: 1px solid #1a2024; background: #1a2024; color: var(--blue-paper); cursor: pointer; font: 700 .875rem 'DM Sans', sans-serif; }
.contact-form button:hover { background: transparent; color: #1a2024; }
.honeypot { display: none; }
.footer { padding-top: 28px; padding-bottom: 28px; }
.footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.social-link svg { width: 18px; height: 18px; fill: currentColor; }
.social-link svg[fill="none"] { fill: none; }

@media (max-width: 1000px) {
  .about { grid-template-columns: 1fr 2.5fr; }
  .about-photo { display: none; }
  .section-head { grid-template-columns: 1fr 2.5fr; }
}

@media (max-width: 700px) {
  .topbar { height: 76px; padding: 0 6vw; }
  .hero { min-height: 700px; height: 90svh; padding: 0 6vw; }
  .hero-image { width: 100%; }
  .hero-image img { object-position: 60% center; filter: grayscale(1) contrast(1.08) brightness(.38); }
  .hero-image::after { background: linear-gradient(0deg, var(--night) 0%, transparent 90%); }
  .hero-copy { padding-top: 140px; padding-bottom: 125px; }
  .hero h1 { margin: 22px 0 30px; font-size: clamp(4.7rem, 18vw, 7.7rem); line-height: .73; }
  .hero-intro { max-width: 220px; font-size: 1rem; }
  .content { padding: 0 6vw; }
  .about { grid-template-columns: 1fr; gap: 25px; padding-top: 50px; padding-bottom: 50px; }
  .about-main h2, .section-head h2 { font-size: 2.8rem; }
  .about-prose { margin-top: 25px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .projects-section, .writing { padding-top: 48px; padding-bottom: 52px; }
  .projects { grid-template-columns: 1fr; gap: 45px; }
  .project-art { height: 230px; }
  .project-art > span { font-size: 3.8rem; }
  .project-art img { max-height: 215px; }
  .post { grid-template-columns: 24px 1fr; gap: 12px; padding: 25px 0; }
  .post h3 { font-size: 1.4rem; }
  .post-no { font-size: .75rem; }
  .contact { padding-top: 45px; padding-bottom: 45px; }
  .contact h2 { font-size: clamp(2.9rem, 12.3vw, 5rem); }
  .field-grid { grid-template-columns: 1fr; }
  .footer { padding-top: 24px; padding-bottom: 24px; }
}
