:root {
  --bg: #f8f7f5;
  --band: #f0efed;
  --ink: #11110f;
  --muted: #6f6d68;
  --line: #1d1c19;
  --content-width: 856px;
  --hero-width: 876px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0;
}

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

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

.wrap {
  width: min(var(--content-width), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.logo {
  font-size: 20px;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 39px;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
}

.side-credit {
  position: fixed;
  left: 25px;
  top: 339px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
}

.side-credit span,
.location::after {
  display: block;
  width: 1px;
  height: 29px;
  background: var(--line);
  content: "";
}

.hero {
  display: grid;
  grid-template-columns: 300px minmax(430px, 568px);
  gap: 8px;
  align-items: center;
  width: min(var(--hero-width), calc(100% - 48px));
  margin: 0 auto 64px;
}

.hero-copy {
  padding-top: 51px;
}

.hero h1 {
  margin: 0 0 29px;
  font-family: "Times New Roman", Georgia, serif;
  font-size: 43px;
  font-weight: 400;
  line-height: 1.1;
}

.hero em {
  font-style: italic;
}

.hero p {
  margin: 0 0 39px;
  font-size: 12px;
  line-height: 2.05;
}

.hero-image {
  width: 100%;
  height: 357px;
  overflow: hidden;
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  line-height: 1;
}

.text-link span,
.work-meta a {
  position: relative;
  display: inline-block;
  width: 57px;
  height: 1px;
  background: var(--line);
}

.text-link span::after,
.work-meta a::after {
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  content: "";
  transform: rotate(45deg);
}

.works {
  padding: 0 0 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

h2 {
  margin: 0;
  font-size: 31px;
  font-weight: 400;
  line-height: 1;
}

.filters {
  display: flex;
  gap: 30px;
  align-items: center;
  padding-bottom: 2px;
  font-size: 11px;
}

.filters a {
  padding-bottom: 3px;
}

.filters .active {
  border-bottom: 1px solid var(--line);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 29px 7px;
}

.work-card > img {
  width: 100%;
  aspect-ratio: 207 / 164;
  object-fit: cover;
}

.work-meta {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 12px;
}

.work-meta > div {
  flex: 0 1 auto;
  min-width: 0;
}

.work-card h3 {
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.15;
}

.work-card p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
}

.work-meta a {
  flex: 0 0 14px;
  width: 14px;
  margin-top: 15px;
  margin-left: 2px;
}

.work-meta a::after {
  top: -2px;
  width: 4px;
  height: 4px;
}

.center-link {
  display: flex;
  justify-content: center;
  margin-top: 45px;
}

.center-link .text-link {
  gap: 19px;
}

.about {
  background: var(--band);
  padding: 28px 0 27px;
}

.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: 360px 299px;
  gap: 31px;
  align-items: start;
  width: min(750px, calc(100% - 48px));
  margin-inline: auto;
}

.about-copy h2 {
  margin-bottom: 24px;
}

.about-copy p {
  margin: 0;
  font-size: 11px;
  line-height: 1.75;
}

.about-copy .lead {
  margin-bottom: 19px;
  font-size: 13px;
  line-height: 1.6;
}

.about-copy .text-link {
  margin-top: 28px;
}

.underlined {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.portrait {
  width: 299px;
  height: 205px;
  object-fit: cover;
}

.location {
  position: absolute;
  right: 7px;
  top: 73px;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  writing-mode: vertical-rl;
  font-size: 11px;
  line-height: 1;
}

.footer {
  background: var(--band);
  padding-top: 25px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 270px 120px 170px;
  justify-content: space-between;
  width: min(750px, calc(100% - 48px));
  margin-inline: auto;
  padding-bottom: 24px;
}

.footer-contact h2 {
  margin-bottom: 18px;
  font-size: 22px;
  line-height: 1.05;
}

.footer-contact p {
  margin: 0 0 20px;
  font-size: 12px;
  line-height: 1.8;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
}

.footer-list h3 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(814px, calc(100% - 48px));
  height: 39px;
  margin-inline: auto;
  padding-inline: 27px;
  background: #faf9f7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom span {
  display: inline-block;
  width: 1px;
  height: 10px;
  background: var(--line);
}

@media (max-width: 860px) {
  .site-header {
    height: 70px;
  }

  .nav {
    gap: 18px;
  }

  .side-credit,
  .location {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    width: min(856px, calc(100% - 48px));
    margin: 12px auto 56px;
  }

  .hero-copy {
    max-width: 420px;
    padding-top: 0;
  }

  .hero-image {
    height: auto;
    aspect-ratio: 568 / 357;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .filters {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 12px;
  }

  .about-inner,
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 299 / 205;
  }
}

@media (max-width: 560px) {
  .wrap,
  .hero,
  .about-inner,
  .footer-inner,
  .footer-bottom {
    width: calc(100% - 32px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    height: auto;
    padding-block: 22px;
  }

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

  .hero h1 {
    font-size: 38px;
  }

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

  .footer-bottom {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }
}
