:root {
  --bg: #ffffff;
  --text: #080808;
  --muted: #6f6f6f;
  --soft: #f6f6f3;
  --max: 1680px;
  --work-width: min(42vw, 720px);
  --caption-size: 11px;
  --caption-line: 1.65;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: clamp(26px, 4.8vw, 82px);
  background: transparent;
}

.logo {
  display: grid;
  gap: 7px;
  line-height: 1;
}

.logo span {
  font-size: 14px;
  font-weight: 300;
}

.logo small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 300;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.site-nav {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: clamp(26px, 3.7vw, 68px);
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.home-main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(150px, 16vw, 250px) clamp(26px, 4.8vw, 82px)
    clamp(110px, 12vw, 190px);
}

.home-visual {
  width: min(62vw, 960px);
  margin: 0;
}

.home-visual img {
  max-height: 64vh;
  object-fit: contain;
}

.page-main {
  max-width: var(--max);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(170px, 18vw, 290px) clamp(26px, 4.8vw, 82px)
    clamp(80px, 10vw, 170px);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(64px, 9vw, 150px);
  row-gap: clamp(86px, 11vw, 172px);
  align-items: start;
}

.work-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--work-width);
  margin: 0;
}

.work-item:nth-child(odd) {
  justify-self: start;
}

.work-item:nth-child(even) {
  justify-self: end;
  padding-top: clamp(62px, 8vw, 148px);
}

.work-thumb {
  width: 100%;
  background: var(--soft);
}

.work-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.work-image-link {
  display: block;
  width: 100%;
  cursor: pointer;
}

.work-image-link img {
  transition: filter 250ms ease;
}

.work-image-link:hover img,
.work-image-link:focus-visible img {
  filter: brightness(72%);
}

.work-title {
  margin: 14px 0 0;
  color: var(--text);
  font-size: var(--caption-size);
  font-weight: 300;
  line-height: 1.6;
}

.text-page {
  display: grid;
  grid-template-columns: minmax(90px, 0.22fr) minmax(260px, 0.78fr);
  gap: clamp(58px, 10vw, 180px);
  align-items: start;
  max-width: 1040px;
}

.text-page h1 {
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
}

.contact-content {
  max-width: 680px;
}

.profile-main {
  padding-top: clamp(190px, 18vw, 300px);
}

.profile-page {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.profile-page h1 {
  margin: 0 0 clamp(58px, 7.8vw, 104px);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 300;
  line-height: 1.2;
}

.profile-initial {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: var(--caption-size);
  font-weight: 300;
  line-height: var(--caption-line);
}

.profile-name {
  margin: 0 0 clamp(42px, 4.8vw, 68px);
  font-size: clamp(22px, 2.35vw, 34px);
  font-weight: 300;
  line-height: 1.2;
}

.profile-portrait {
  width: min(44vw, 360px);
  margin: 0 auto clamp(40px, 5vw, 70px);
}

.profile-text {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.profile-text p {
  margin: 0 0 28px;
  font-size: clamp(13px, 1.25vw, 18px);
  font-weight: 300;
  line-height: 1.95;
}

.profile-text .profile-english {
  color: var(--muted);
  font-size: clamp(11px, 0.95vw, 13px);
  line-height: 1.85;
}

.contact-link {
  display: block;
  margin: 0 0 18px;
  font-size: clamp(15px, 2vw, 30px);
  font-weight: 300;
  line-height: 1.35;
}

.contact-link-small {
  color: var(--muted);
  font-size: clamp(13px, 1.25vw, 17px);
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--muted);
}

.detail-main {
  padding-top: clamp(160px, 16vw, 260px);
}

.work-detail {
  max-width: 100%;
}

.detail-title {
  max-width: min(78vw, 1180px);
  margin: 0 auto clamp(70px, 9vw, 130px);
  font-size: var(--caption-size);
  font-weight: 300;
  line-height: var(--caption-line);
}

.detail-images {
  display: grid;
  gap: clamp(70px, 9vw, 140px);
  justify-items: center;
}

.detail-image {
  width: min(78vw, 1180px);
  margin: 0;
}

.detail-image img {
  width: 100%;
  height: auto;
}

.back-link {
  display: block;
  width: fit-content;
  margin: clamp(80px, 10vw, 150px) auto 0;
  color: var(--muted);
  font-size: var(--caption-size);
  line-height: var(--caption-line);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
}

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

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: flex-end;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav {
    top: 58px;
    right: 20px;
    gap: 14px;
  }

  .home-main {
    padding: 120px 20px 86px;
  }

  .home-visual {
    width: 88%;
  }

  .home-visual img {
    max-height: 60vh;
  }

  .page-main {
    padding: 132px 20px 96px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    row-gap: 62px;
  }

  .work-item:nth-child(even) {
    justify-self: stretch;
    padding-top: 0;
  }

  .work-item:nth-child(odd) {
    justify-self: stretch;
  }

  .work-item {
    max-width: none;
  }

  .text-page {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .profile-main {
    padding-top: 142px;
  }

  .profile-page h1 {
    margin-bottom: 58px;
    font-size: 24px;
  }

  .profile-name {
    margin-bottom: 36px;
    font-size: 25px;
  }

  .profile-portrait {
    width: min(72vw, 320px);
    margin-bottom: 44px;
  }

  .profile-text p {
    font-size: 13px;
  }

  .profile-text .profile-english {
    font-size: 11px;
  }

  .contact-link {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .detail-main {
    padding-top: 132px;
  }

  .detail-title,
  .detail-image {
    width: 100%;
    max-width: none;
  }

  .detail-images {
    gap: 62px;
  }
}
