:root {
  --ink: #24212b;
  --paper: #f7f1e7;
  --line: #d8c9b4;
  --blue: #2d5bff;
  --plum: #6a3d7a;
  --muted: #6f6875;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Cambria, Georgia, serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.paper-hero {
  min-height: 800px;
  padding: 30px clamp(18px, 5vw, 78px) 86px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    radial-gradient(circle at 82% 28%, rgba(45, 91, 255, 0.16), transparent 30%),
    var(--paper);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 900;
  letter-spacing: 0.16em;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
}

button {
  padding: 11px 15px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 330px;
  gap: 64px;
  align-items: center;
  padding-top: 100px;
}

.note {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero p:last-child,
.catalog p,
.room-text p,
.workbench p,
.margin-notes p,
footer p,
address span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero p:last-child {
  max-width: 780px;
  font-size: 21px;
}

.delta-mark {
  display: grid;
  place-items: center;
  min-height: 390px;
  padding: 30px;
  border: 2px solid var(--ink);
  background: white;
  box-shadow: 18px 18px 0 var(--blue);
  text-align: center;
}

.delta-mark span {
  color: var(--blue);
  font-size: 170px;
  line-height: 0.8;
}

.delta-mark p {
  font-weight: 900;
  text-transform: uppercase;
}

.index-catalog,
.reading-room,
.workshop,
.margin-notes,
footer {
  padding: 94px clamp(18px, 5vw, 78px);
}

h2 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.index-catalog {
  background: white;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.catalog article {
  min-height: 330px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.catalog span {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: white;
  background: var(--plum);
  font-size: 28px;
  font-weight: 900;
}

.catalog h3 {
  font-size: 25px;
}

.reading-room {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 46px;
  background: var(--paper);
}

.library-card {
  display: grid;
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--ink);
  background: white;
}

.library-card b {
  color: var(--blue);
  font-size: 28px;
}

.library-card span {
  padding: 18px;
  border-left: 6px solid var(--blue);
  background: #f4f6ff;
  font-weight: 900;
  text-transform: uppercase;
}

.workshop {
  color: white;
  background: var(--ink);
}

.workbench {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 18px;
  margin-top: 34px;
}

.workbench div {
  min-height: 300px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
}

.workbench h3 {
  color: #b9c7ff;
  font-size: 30px;
}

.workbench p {
  color: #d8d2de;
}

.margin-notes {
  display: grid;
  grid-template-columns: 0.9fr repeat(3, 1fr);
  gap: 20px;
  background: #efe4d5;
}

.margin-notes p {
  padding: 24px;
  border-left: 4px solid var(--plum);
  background: rgba(255, 255, 255, 0.62);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  background: white;
}

address {
  display: grid;
  gap: 12px;
  min-width: min(100%, 410px);
  padding: 30px;
  border: 1px solid var(--line);
  font-style: normal;
  background: var(--paper);
}

address a {
  color: var(--blue);
  font-size: 24px;
  font-weight: 900;
}

@media (max-width: 1000px) {
  .hero,
  .catalog,
  .reading-room,
  .workbench,
  .margin-notes,
  footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  nav {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
}
