:root {
  --bg: #ececec;
  --panel: #d6c8a7;
  --frame: #a39a89;
  --tile: #ece0c6;
  --text: #4b4b4b;
  --muted: #989898;
  --line: #d8d8d8;
  --blue: #3a67ac;
  --red: #b04136;
  --yellow: #e0b83e;
  --black: #2c2c2c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 22px;
}

.layout {
  min-height: 100vh;
  display: flex;
  gap: 34px;
  padding: 48px 0 48px 78px;
}

.sidebar {
  width: 170px;
  border-right: 1px solid var(--line);
  padding-right: 16px;
}

.name {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

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

nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.3;
}

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

.content {
  width: min(760px, calc(100vw - 320px));
  font-size: 14px;
  line-height: 1.72;
  padding-top: 2px;
}

h2 {
  margin: 0 0 8px;
  font-size: 39px;
  line-height: 1.2;
}

h3 {
  margin: 0;
  font-size: 40px;
  line-height: 1.25;
}

p {
  margin: 0 0 18px;
}

.intro {
  max-width: 620px;
}

.listing {
  margin-top: 34px;
}

.listing article {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 0 0 34px;
  margin: 0 0 34px;
  border-bottom: 1px solid var(--line);
}

.cover {
  width: 100%;
  height: 182px;
  background: #ddd;
  border: 1px solid #c7c7c7;
  display: grid;
  place-items: center;
  color: #595959;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.book-title,
.writing-title {
  color: #4f89d0;
  font-size: 24px;
  margin: 0 0 4px;
  line-height: 1.25;
  font-weight: 700;
}

.subtitle {
  margin: 0 0 10px;
  color: #545454;
}

.link-list,
.photo-grid,
.press-list {
  margin-top: 24px;
}

.link-list a,
.press-list a,
.inline-link {
  color: #4f89d0;
  text-decoration: none;
}

.link-list a:hover,
.press-list a:hover,
.inline-link:hover {
  text-decoration: underline;
}

.link-list li,
.press-list li {
  margin-bottom: 10px;
}

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

.photo-grid figure {
  margin: 0;
  background: #d8d8d8;
  aspect-ratio: 1 / 1;
  border: 1px solid #c6c6c6;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #666;
}

.home-content {
  padding-top: 6px;
}

.art-panel {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--frame);
  width: fit-content;
}

.art-tile {
  width: 168px;
  height: 168px;
  position: relative;
  background: var(--tile);
  border: 1px solid #c2b79f;
  overflow: hidden;
}

.shape {
  position: absolute;
  display: block;
}

.block {
  width: 54px;
  height: 54px;
  left: 10px;
  top: 10px;
}

.block.small {
  left: 80px;
  top: 80px;
}

.red {
  background: var(--red);
}

.black {
  background: var(--black);
}

.tri {
  width: 0;
  height: 0;
  border-top: 54px solid transparent;
  border-left: 54px solid var(--blue);
  left: 64px;
  top: 10px;
}

.tri2 {
  width: 0;
  height: 0;
  border-bottom: 54px solid transparent;
  border-right: 54px solid var(--blue);
  left: 10px;
  top: 64px;
}

.circle {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--yellow);
  left: 10px;
  top: 110px;
}

.circle.top {
  left: 96px;
  top: 28px;
}

.lines {
  left: 64px;
  top: 64px;
  width: 88px;
  height: 92px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 6px,
      #313131 6px 10px
    );
}

.lines.horizontal {
  top: 86px;
  left: 10px;
  width: 142px;
  height: 68px;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 6px,
      #313131 6px 10px
    );
}

@media (max-width: 980px) {
  .layout {
    padding: 24px;
    gap: 20px;
  }

  .sidebar {
    width: 136px;
  }

  .content {
    width: calc(100vw - 210px);
  }

  .art-panel {
    transform: scale(0.86);
    transform-origin: top left;
  }
}

@media (max-width: 760px) {
  .layout {
    display: block;
    padding: 18px;
  }

  .sidebar {
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 14px;
    margin-bottom: 18px;
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .content {
    width: auto;
  }

  .listing article {
    grid-template-columns: 1fr;
  }

  .cover {
    width: 140px;
  }

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