:root {
  --bg: #f3efe8;
  --ink: #2a2420;
  --muted: #6d645c;
  --line: #ddd4c8;
  --serif: "Noto Serif", "Times New Roman", serif;
  --sans: "Noto Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}

.page {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.mast {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.mast p {
  margin: 0;
}

h1 {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.visit {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 28px;
}

figure {
  margin: 0;
}

img {
  display: block;
  width: 300px;
  height: 360px;
  object-fit: cover;
  object-position: 58% 16%;
}

.copy {
  min-width: 0;
}

.lead {
  margin: 0;
  font-size: 18px;
}

.book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 20px;
  padding: 0 18px;
  background: #3a332c;
  color: #f7f3ec;
  text-decoration: none;
  font-size: 15px;
}

.book:hover {
  background: #241f1b;
}

.book:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

h2 {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
}

.copy p {
  margin: 10px 0 0;
}

.quiet {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 1024px) {
  .page {
    width: min(1180px, calc(100% - 64px));
  }

  .visit {
    gap: 32px;
  }
}

@media (max-width: 800px) {
  .page {
    width: calc(100% - 40px);
    padding-top: 20px;
  }

  h1 {
    font-size: 34px;
    margin-top: 20px;
  }

  .visit {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  img {
    width: 200px;
    height: 248px;
  }

  .lead {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .page {
    width: calc(100% - 32px);
    padding-bottom: 40px;
  }

  h1 {
    font-size: 30px;
  }

  .visit {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  img {
    width: 100%;
    height: 280px;
    object-position: center 22%;
  }

  .book {
    width: 100%;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 26px;
  }

  .mast {
    font-size: 14px;
  }
}
