:root {
  --paper: #e5e3de;
  --paper-soft: #f7f4ef;
  --paper-warm: #eee8df;
  --ink: #1f1f1f;
  --muted: #6f6a63;
  --rule: #9a958c;
  --rule-soft: #d2cdc4;
  --taupe: #9d755e;
  --moss: #5e7010;
  --berry: #b01860;
  --blue-depth: #07516f;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(31, 31, 31, 0.12);
  --hover-shadow: 0 18px 44px rgba(31, 31, 31, 0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Avenir, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

#profile,
#work,
#photography,
#graphic-design {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 40px;
  background: rgba(229, 227, 222, 0.94);
  border-bottom: 1px solid var(--rule-soft);
  backdrop-filter: blur(14px);
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  text-decoration: none;
  transition: color 180ms var(--ease-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  text-decoration: none;
  transition: color 180ms var(--ease-soft), transform 180ms var(--ease-soft);
}

.site-nav a::after,
.text-link::after,
.site-footer a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.wordmark:hover,
.wordmark:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.site-footer a:focus-visible,
.site-footer a:hover {
  color: var(--berry);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after,
.site-footer a:hover::after,
.site-footer a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a:active,
.button:active,
.text-link:active,
.site-footer a:active {
  transform: translateY(1px);
}

body:has(#work:target) .site-nav a[href="#work"],
body:has(#photography:target) .site-nav a[href="#photography"],
body:has(#graphic-design:target) .site-nav a[href="#graphic-design"] {
  color: var(--ink);
}

body:has(#work:target) .site-nav a[href="#work"]::after,
body:has(#photography:target) .site-nav a[href="#photography"]::after,
body:has(#graphic-design:target) .site-nav a[href="#graphic-design"]::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 64px;
  min-height: 760px;
  padding: 72px 56px 56px;
  border-bottom: 1px solid var(--rule-soft);
}

.hero-copy,
.hero-art,
.profile,
.work-intro,
.portfolio-section,
.site-footer {
  width: min(1120px, 100%);
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow,
.section-label,
.work-type {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 740px;
  margin: 12px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.5rem;
  font-weight: 400;
  line-height: 0.95;
}

.hero-deck {
  max-width: 650px;
  margin: 0;
  color: #34312d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  color: var(--paper-soft);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 220ms var(--ease-soft),
    border-color 220ms var(--ease-soft),
    box-shadow 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}

.button:hover {
  background: var(--berry);
  border-color: var(--berry);
  box-shadow: 0 12px 28px rgba(176, 24, 96, 0.2);
  transform: translateY(-2px);
}

.text-link {
  position: relative;
  display: inline-flex;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms var(--ease-soft), transform 180ms var(--ease-soft);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  max-width: 680px;
  margin: 54px 0 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.hero-meta div {
  min-height: 112px;
  padding: 22px 26px 18px 0;
}

.hero-meta div + div {
  padding-left: 26px;
  border-left: 1px solid var(--rule);
}

.hero-meta dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-meta dd {
  margin: 0;
  color: #34312d;
}

.hero-art {
  align-self: center;
  justify-self: end;
  margin: 0;
}

.hero-art img {
  width: 100%;
  min-height: 420px;
  max-height: 640px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: box-shadow 420ms var(--ease-out), transform 420ms var(--ease-out);
}

.hero-art:hover img {
  box-shadow: var(--hover-shadow);
  transform: translateY(-4px);
}

.hero-art figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.band,
.work-intro,
.portfolio-section,
.site-footer {
  margin: 0 auto;
}

.profile {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 48px;
  padding: 74px 56px;
}

.profile-copy h2,
.work-intro h2,
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
}

.profile-copy h2 {
  max-width: 780px;
  font-size: 3.2rem;
}

.profile-copy p {
  max-width: 760px;
  margin: 24px 0 0;
  color: #3c3833;
  font-size: 1.08rem;
}

.palette-strip {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.palette-strip li {
  min-height: 66px;
  background: var(--swatch);
  border: 1px solid rgba(31, 31, 31, 0.16);
  border-radius: 4px;
  transition: transform 240ms var(--ease-out);
}

.palette-strip li:hover {
  transform: translateY(-4px);
}

.palette-strip span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.work-intro {
  padding: 86px 56px 30px;
  border-top: 1px solid var(--rule-soft);
}

.work-intro h2 {
  max-width: 900px;
  margin-top: 12px;
  font-size: 4.4rem;
}

.portfolio-section {
  padding: 42px 56px 96px;
}

.design-section {
  border-top: 1px solid var(--rule-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: 4rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  background: var(--paper-soft);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  overflow: hidden;
  transition:
    border-color 260ms var(--ease-soft),
    box-shadow 320ms var(--ease-out),
    transform 320ms var(--ease-out);
}

.work-card:hover {
  border-color: rgba(31, 31, 31, 0.26);
  box-shadow: var(--hover-shadow);
  transform: translateY(-6px);
}

.work-card.feature-card {
  grid-column: span 2;
}

.image-frame {
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--white);
  overflow: hidden;
}

.image-frame img {
  transition: filter 520ms var(--ease-out), transform 650ms var(--ease-out);
}

.work-card:hover .image-frame img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.025);
}

.photo .image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.graphic .image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.graphic.tall .image-frame {
  aspect-ratio: 3 / 4;
  background: var(--white);
}

.dark-art .image-frame {
  background: #000000;
}

.card-copy {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.card-copy h3 {
  margin: 10px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.12;
}

.tagline {
  margin: 0 0 16px;
  color: var(--berry);
  font-weight: 700;
}

.card-copy p:last-child {
  margin: 0;
  color: #47423d;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 56px 48px;
  color: var(--muted);
  border-top: 1px solid var(--rule-soft);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  position: relative;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms var(--ease-soft), transform 180ms var(--ease-soft);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    translate: 0 24px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes hero-settle {
  from {
    opacity: 0;
    translate: 0 16px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes target-wash {
  0% {
    background-color: rgba(176, 24, 96, 0.1);
  }

  100% {
    background-color: transparent;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-art {
    animation: hero-settle 720ms var(--ease-out) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 80ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 150ms;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 220ms;
  }

  .hero-copy > :nth-child(5),
  .hero-art {
    animation-delay: 300ms;
  }

  .profile-copy,
  .palette-strip,
  .work-intro h2,
  .section-heading,
  .work-card {
    animation: reveal-up 720ms var(--ease-out) both;
    animation-timeline: view();
    animation-range: entry 0% cover 26%;
  }

  .work-card:nth-child(2),
  .work-card:nth-child(5) {
    animation-range: entry 4% cover 28%;
  }

  .work-card:nth-child(3),
  .work-card:nth-child(6) {
    animation-range: entry 8% cover 30%;
  }

  #profile:target,
  #work:target,
  #photography:target,
  #graphic-design:target {
    animation: target-wash 1200ms var(--ease-out);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
    padding: 72px 28px 52px;
  }

  .hero h1 {
    font-size: 4.2rem;
  }

  .hero-deck {
    font-size: 1.35rem;
  }

  .hero-art {
    justify-self: stretch;
  }

  .hero-art img {
    min-height: 340px;
  }

  .profile,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile,
  .work-intro,
  .portfolio-section,
  .site-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .profile-copy h2,
  .work-intro h2,
  .section-heading h2 {
    font-size: 3rem;
  }

  .palette-strip {
    grid-column: 1;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 96px;
    padding: 18px 20px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
  }

  .hero {
    padding: 54px 20px 42px;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .hero-deck {
    font-size: 1.18rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-meta div + div {
    padding-left: 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .text-link {
    width: 100%;
    text-align: center;
  }

  .profile,
  .work-intro,
  .portfolio-section,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .profile-copy h2,
  .work-intro h2,
  .section-heading h2 {
    font-size: 2.3rem;
  }

  .palette-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .work-card.feature-card {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
