@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..700;1,9..40,400..700&family=Instrument+Serif:ital@0;1&display=swap');

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

:root {
  --ink: #252c33;
  --paper: #f4efe5;
  --deep: #252c33;
  --rose: #b45f76;
  --blush: #d8c7cc;
  --sand: #d8d0c5;
  --line: rgba(37, 44, 51, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a,
button {
  transition: opacity 160ms ease, color 160ms ease;
}

::selection {
  background: var(--rose);
  color: white;
}

svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 18px;
}

header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 72px;
  padding: 0 4vw;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 100;
}

.logo,
header nav a,
.email-link {
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.logo {
  font-weight: 600;
  letter-spacing: -0.01em;
}

header nav {
  display: flex;
  gap: 32px;
}

header nav a:hover,
.email-link:hover {
  color: var(--rose);
}

header nav a.active {
  color: var(--rose);
}

.email-link {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-self: end;
}

.menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.route-view {
  animation: page-in 320ms ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
  padding: 7vw 4vw 4vw;
}

.landing h1 {
  font-weight: 500;
  margin-top: 8vh;
}

.landing-name {
  color: var(--rose);
  display: block;
  font-size: clamp(18px, 1.8vw, 28px);
  letter-spacing: -0.025em;
  margin-bottom: clamp(18px, 2.5vw, 34px);
}

.landing-title {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(65px, 10vw, 150px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.88;
  max-width: 1300px;
}

.landing-title strong {
  color: var(--rose);
  font-style: italic;
  font-weight: inherit;
}

.landing-intro {
  font-size: 16px;
  line-height: 1.6;
  margin: 7vh 0 4vh auto;
  max-width: 500px;
  width: 45%;
}

.landing-links {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
}

.landing-links a {
  align-items: center;
  color: var(--ink);
  display: grid;
  gap: 20px;
  grid-template-columns: auto 1fr auto;
  padding: 26px 4px;
  text-decoration: none;
}

.landing-links a:first-child {
  border-right: 1px solid var(--line);
  padding-right: 32px;
}

.landing-links a:last-child {
  padding-left: 32px;
}

.landing-links a > span {
  color: var(--rose);
  font-size: 10px;
}

.landing-links strong {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.landing-links a:hover {
  color: var(--rose);
}

.landing-links a:hover svg {
  transform: translateX(5px);
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 7vw 4vw 4vw;
}

.kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(54px, 7.5vw, 116px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
  margin-top: 8vh;
  max-width: 1250px;
}

.hero h1 span {
  color: var(--rose);
}

.hero-bottom {
  align-items: end;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr auto;
  margin-left: 50%;
  margin-top: 10vh;
}

.hero-bottom > p {
  font-size: 16px;
  line-height: 1.55;
  max-width: 470px;
}

.hero-bottom a {
  align-items: center;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  display: flex;
  font-size: 13px;
  gap: 28px;
  padding: 10px 0;
  text-decoration: none;
}

.hero-bottom a:hover {
  color: var(--rose);
}

.work-section,
.about-section {
  border-top: 1px solid var(--line);
  padding: 100px 4vw 130px;
}

.page-section {
  min-height: calc(100vh - 72px);
}

.page-title {
  display: grid;
  gap: 3vw;
  grid-template-columns: 0.7fr 2fr 1fr;
  margin-bottom: 110px;
}

.page-title h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 780px;
}

.page-title > p:last-child {
  align-self: end;
  font-size: 14px;
  line-height: 1.55;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 60px;
}

.section-intro > p:last-child {
  font-size: 14px;
}

.project-list {
  display: grid;
  gap: 130px;
}

.project {
  display: grid;
  gap: 4vw;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
}

.project-visual {
  aspect-ratio: 1.5 / 1;
  overflow: hidden;
  position: relative;
}

.project-info {
  align-self: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 30px 1fr;
  padding-top: 18px;
}

.project-number {
  color: var(--rose);
  font-size: 11px;
}

.project-info h2 {
  font-size: clamp(30px, 3vw, 45px);
  font-weight: 500;
  letter-spacing: -0.045em;
  margin: 14px 0 20px;
}

.project-info div > p:last-child {
  font-size: 14px;
  line-height: 1.6;
}

.basic-book {
  display: contents;
}

.project-case-study {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-case-study .book-cover,
.project-case-study .book-spread,
.project-case-study .book-pages {
  display: block;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  order: 1;
  width: 100%;
}

.project-case-study .project-info {
  margin: 36px 0 90px auto;
  max-width: 680px;
  order: 2;
  width: 50%;
}

.project-case-study .book-spread {
  order: 3;
}

.project-case-study .book-pages {
  margin-top: 24px;
  max-height: none;
  object-fit: contain;
  order: 4;
}

.anatomical-heart {
  aspect-ratio: auto;
  background: transparent;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  overflow: visible;
}

.anatomical-heart img {
  display: block;
  height: auto;
  min-width: 0;
  width: 100%;
}

.project-anatomical {
  align-items: end;
  gap: 7vw;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
}

.project-anatomical .project-info {
  margin-bottom: 4vw;
}

.bottled-heart {
  background: var(--sand);
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  padding: 8px;
}

.bottled-heart img {
  height: 100%;
  min-width: 0;
  object-fit: cover;
  width: 100%;
}

.project-info {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 36px minmax(0, 1fr) minmax(260px, 0.8fr);
  padding-top: 20px;
}

.project-info h2 {
  margin-bottom: 0;
}

.project-info .kicker {
  font-size: 10px;
  line-height: normal;
}

.project-description {
  font-size: 14px;
  line-height: 1.65;
  max-width: 520px;
}

.work-section {
  padding-bottom: 80px;
  padding-top: clamp(42px, 5vw, 72px);
}

.work-section .page-title {
  align-items: end;
  gap: 24px 4vw;
  grid-template-columns: 0.55fr 1.8fr 1fr;
  margin-bottom: clamp(36px, 4vw, 58px);
}

.work-section .page-title h1 {
  font-size: clamp(38px, 4.2vw, 64px);
}

.works-grid {
  display: grid;
  gap: clamp(7px, 0.8vw, 14px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.work-card {
  min-width: 0;
}

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

.work-cover {
  aspect-ratio: 1595 / 2481;
  background: var(--deep);
  overflow: hidden;
  position: relative;
  border-radius: 2px;
}

.work-cover img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.work-card:hover .work-cover img {
  transform: scale(1.04);
}

.work-card > a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 6px;
}

.work-cover--anatomical-heart img,
.work-cover--letter-anatomy img,
.work-cover--hybrid-typeface img {
  object-fit: cover;
}

.work-cover--anatomical-heart img {
  object-position: center;
}

.work-card:hover .work-cover--anatomical-heart img {
  transform: scale(1.025);
}

.work-cover--letter-anatomy img {
  object-position: 52% center;
}

.work-cover--hybrid-typeface img {
  object-position: center top;
}

.work-cover-number,
.work-cover-arrow {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(37, 44, 51, 0.72);
  border: 1px solid rgba(248, 242, 237, 0.28);
  border-radius: 50%;
  color: #f8f2ed;
  display: flex;
  font-size: 10px;
  height: 30px;
  justify-content: center;
  position: absolute;
  top: 10px;
  width: 30px;
}

.work-cover-number {
  left: 10px;
}

.work-cover-arrow {
  opacity: 0;
  right: 10px;
  transform: translate(-5px, 5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.work-card:hover .work-cover-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.work-card-info {
  margin-top: 14px;
}

.work-card-info h2 {
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.work-card-info p {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-top: 8px;
  text-transform: uppercase;
  color: rgba(37, 44, 51, 0.75);
}

.project-detail {
  padding: clamp(42px, 5vw, 72px) 4vw 130px;
}

.project-detail-back {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  gap: 10px;
  text-decoration: none;
}

.project-detail-back:hover {
  color: var(--rose);
}

.project-detail-header {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6vw;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
  height: auto;
  margin: clamp(50px, 7vw, 100px) 0 clamp(40px, 5vw, 72px);
  padding: 0 0 clamp(28px, 3vw, 44px);
}

.project-detail-header h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(48px, 7vw, 108px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.94;
  margin-top: 20px;
  max-width: 1050px;
}

.project-detail-header > p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 520px;
}

.detail-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-gallery img {
  display: block;
  height: auto;
  min-width: 0;
  width: 100%;
  border-radius: 2px;
}

.detail-gallery--basic-book img:first-child,
.detail-gallery--basic-book img:nth-child(2),
.detail-gallery--bottled-heart img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-gallery--basic-book img:nth-child(3) {
  grid-column: 1 / -1;
}

.detail-gallery--anatomical-heart img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-gallery--letter-anatomy {
  grid-template-columns: 1fr;
}

.detail-gallery--letter-anatomy img {
  justify-self: center;
  max-width: 680px;
}

.detail-gallery--hybrid-typeface {
  align-items: start;
}

.detail-gallery--hybrid-typeface img:nth-child(-n + 2) {
  aspect-ratio: 1241 / 1754;
  object-fit: cover;
}

.detail-gallery--hybrid-typeface img:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 18px;
  max-width: 760px;
  width: 70%;
}

.project-pagination {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(80px, 10vw, 150px);
}

.project-pagination-link {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 24px;
  min-height: 145px;
  padding: 28px 0;
  text-decoration: none;
}

.project-pagination-prev {
  border-right: 1px solid var(--line);
  padding-right: 36px;
}

.project-pagination-prev .project-pagination-arrow svg {
  transform: rotate(180deg);
}

.project-pagination-next {
  justify-content: flex-end;
  padding-left: 36px;
  text-align: right;
}

.project-pagination-link small,
.project-pagination-link strong {
  display: block;
}

.project-pagination-link small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.project-pagination-link strong {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.project-pagination-arrow {
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.project-pagination-link:hover {
  color: var(--rose);
}

.project-pagination-prev:hover .project-pagination-arrow {
  transform: translateX(-6px);
}

.project-pagination-next:hover .project-pagination-arrow {
  transform: translateX(6px);
}

.about-section {
  display: block;
}

.about-top,
.about-body {
  display: grid;
  gap: 6vw;
  grid-template-columns: 1fr 2fr;
}

.about-body {
  align-items: start;
  margin-top: 70px;
}

.about-section h1,
.about-section h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(42px, 5.2vw, 78px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 850px;
}

.about-section h1 span {
  color: var(--rose);
  font-style: italic;
}

.about-name {
  color: var(--rose);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 22px;
}

.about-portrait {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  width: 100%;
  background: var(--sand);
  border-radius: 2px;
}

.about-portrait img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.not-found {
  min-height: calc(100vh - 72px);
  padding: 12vw 4vw;
}

.not-found h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(50px, 8vw, 110px);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 50px 0;
}

.not-found > a {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 20px;
  text-decoration: none;
}

.not-found > a:hover {
  color: var(--rose);
}

.about-copy {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6vw;
  grid-template-columns: 1fr 1fr;
  padding-top: 24px;
}

.about-copy p {
  font-size: 15px;
  line-height: 1.7;
}

footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: 100px 4vw 30px;
}

footer h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(70px, 12vw, 180px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.9;
  margin: 50px 0 70px;
}

footer > a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  font-size: clamp(18px, 2.2vw, 32px);
  justify-content: space-between;
  padding-bottom: 20px;
  text-decoration: none;
}

footer > a:hover {
  color: var(--rose);
}

.footer-meta {
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  letter-spacing: 0.1em;
  margin-top: 70px;
  text-transform: uppercase;
}

.footer-meta a {
  color: var(--ink);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--rose);
}

@media (max-width: 800px) {
  header {
    grid-template-columns: 1fr auto;
  }

  .email-link {
    display: none;
  }

  .menu {
    display: grid;
    gap: 6px;
    padding: 8px;
  }

  .menu span {
    background: var(--ink);
    height: 1px;
    width: 24px;
  }

  header nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    left: 0;
    padding: 28px 4vw;
    position: absolute;
    right: 0;
    top: 72px;
    z-index: 5;
  }

  header nav.open {
    display: flex;
  }

  .hero {
    min-height: 720px;
    padding-top: 80px;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
    margin-left: 25%;
  }

  .landing-intro {
    width: 65%;
  }

  .page-title {
    grid-template-columns: 1fr;
    margin-bottom: 80px;
  }

  .page-title > p:last-child {
    max-width: 420px;
  }

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

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

  .project-detail-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

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

  .project-info {
    grid-template-columns: 28px 1fr;
    max-width: none;
  }

  .project-description {
    grid-column: 2;
  }

  .about-top,
  .about-body {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    max-width: 420px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 49px;
    margin-top: 70px;
  }

  .landing {
    min-height: 700px;
    padding: 70px 5vw 30px;
  }

  .landing h1 {
    margin-top: 80px;
  }

  .landing-title {
    font-size: 58px;
  }

  .landing-intro {
    margin: 70px 0 40px;
    width: 100%;
  }

  .landing-links {
    grid-template-columns: 1fr;
  }

  .landing-links a:first-child {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    padding-right: 4px;
  }

  .landing-links a:last-child {
    padding-left: 4px;
  }

  .hero-bottom {
    margin-left: 0;
    margin-top: 80px;
  }

  .work-section,
  .about-section {
    padding: 75px 5vw 90px;
  }

  .section-intro {
    gap: 25px;
    grid-template-columns: 1fr;
  }

  .project-list {
    gap: 90px;
  }

  .works-grid {
    gap: 34px 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-card-info {
    display: block;
  }

  .work-card-info p {
    max-width: none;
    text-align: left;
  }

  .project-detail {
    padding: 55px 5vw 90px;
  }

  .project-detail-header {
    margin-top: 55px;
  }

  .project-detail-header h1 {
    font-size: clamp(46px, 13vw, 70px);
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-gallery--basic-book img:nth-child(3),
  .detail-gallery--hybrid-typeface img:nth-child(3) {
    grid-column: auto;
    margin-top: 0;
    width: 100%;
  }

  .project-pagination {
    grid-template-columns: 1fr;
    margin-top: 75px;
  }

  .project-pagination-link {
    min-height: 110px;
    padding: 24px 0;
  }

  .project-pagination-prev {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .project-visual {
    aspect-ratio: 1.1 / 1;
  }

  .project-info {
    grid-template-columns: 24px 1fr;
  }

  .about-portrait {
    width: min(88%, 360px);
  }

  .about-body {
    margin-top: 50px;
  }

  .about-copy {
    gap: 28px;
    grid-template-columns: 1fr;
  }

  footer {
    padding-top: 75px;
  }

  footer h2 {
    margin: 50px 0;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}
