:root {
  --ink: #1a1c1a;
  --paper: #eceae3;
  --fog: #c4c8c5;
  --moss: #4a5d4e;
  --amber: #b8763a;
  --line: #9ba09a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  font-size: 18px;
}

.wrap { max-width: 940px; margin: 0 auto; padding: 0 28px; }

/* header */
.masthead {
  border-bottom: 1px solid var(--line);
  padding: 34px 0 26px;
  margin-bottom: 56px;
}
.brand {
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: normal;
  color: var(--moss);
}
.brand a { color: inherit; text-decoration: none; }
nav { margin-top: 18px; }
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 26px;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
nav a:hover, nav a:focus { border-bottom-color: var(--amber); }

/* hero */
.hero { margin-bottom: 64px; }
.hero .kicker {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 46px;
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-bottom: 24px;
}
.hero p {
  font-size: 20px;
  max-width: 54ch;
  color: #33362f;
}

/* frames grid */
.frames {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 3px;
  margin-bottom: 64px;
  border: 1px solid var(--line);
  background: var(--line);
}
.frame {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background: var(--fog);
}
.frame svg { width: 100%; height: 100%; display: block; }
.frame .cap {
  position: absolute;
  left: 0; bottom: 0; right: 0;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(to top, rgba(26,28,26,0.82), rgba(26,28,26,0));
}

/* text sections */
.col { max-width: 62ch; }
h2 {
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: normal;
  margin: 0 0 22px;
}
.col p { margin-bottom: 22px; }
.col p + h2 { margin-top: 48px; }

.lede { font-size: 22px; line-height: 1.5; color: #2a2d27; }

/* footer */
footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  padding: 30px 0 60px;
  font-size: 14px;
  color: #55584f;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
footer a { color: var(--moss); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* 404 */
.void { text-align: center; padding: 90px 0; }
.void .big {
  font-size: 92px;
  color: var(--moss);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 34px; }
  .masthead { margin-bottom: 40px; }
  nav a { margin-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}

.void .back { margin-top: 18px; }
