:root {
  color: #24211e;
  background: #f9f8f6;
  font: 16px/1.5 system-ui, sans-serif;
  --paper: #fff;
  --ink: #24211e;
  --muted: #625a52;
  --line: #ded8d1;
  --focus: #725732;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.container {
  width: min(100% - 48px, 1232px);
  margin-inline: auto;
}

.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-inner { display: flex; align-items: center; gap: 30px; min-height: 68px; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 23px; }
.top nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.top nav a:hover, .crumbs a:hover { text-decoration: underline; }
.brand { flex: none; font-size: 24px; font-weight: 650; letter-spacing: -.06em; text-decoration: none; }
.brand span { font-weight: 350; }

.skip-link { position: absolute; z-index: 1; background: var(--paper); padding: 8px; top: -60px; }
.skip-link:focus { top: 8px; left: 8px; }
main { padding-block: 36px 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; color: var(--muted); font-size: 14px; }
h1, h2, p { margin: 0; }
h1 { line-height: 1.07; letter-spacing: -.052em; font-size: clamp(36px, 6vw, 66px); }
h2 { font-size: clamp(24px, 4vw, 32px); line-height: 1.17; letter-spacing: -.03em; }
.intro { margin-top: 12px; color: var(--muted); }
.browse { margin-top: 35px; }

.overview, .tile-grid, .width-links { display: grid; gap: 16px; margin-top: 18px; }
.overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.width-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile, .width-links a {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
}
.tile:hover, .width-links a:hover { border-color: var(--focus); }
.tile img, .empty-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #ede8e1; }
.overview .tile img { aspect-ratio: 3 / 2; }
.tile-name, .tile-meta { display: block; overflow-wrap: anywhere; }
.tile-name { padding: 13px 15px 0; font-size: 18px; font-weight: 600; }
.tile-meta { padding: 3px 15px 14px; color: var(--muted); font-size: .9rem; }
.width-links a { min-height: 66px; padding: 10px 12px; font-weight: 600; }
.width-links .tile-meta { padding: 0; font-weight: 400; }
.back-links, .foot { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.back-links { margin-top: 25px; }
.foot { border-top: 1px solid var(--line); padding-block: 20px 34px; color: var(--muted); }

@media (max-width: 750px) {
  .container { width: calc(100% - 32px); }
  .tile-grid, .width-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-inner { gap: 15px; }
  .top nav { gap: 5px 13px; }
  main { padding-block: 27px 48px; }
}

@media (max-width: 400px) {
  .top-inner { gap: 10px; }
  .top nav { gap: 4px 10px; font-size: 13px; }
  .brand { font-size: 20px; }
  .overview, .tile-grid { gap: 10px; }
  .tile-name { padding-inline: 8px; font-size: 15px; }
  .tile-meta { padding-inline: 8px; font-size: 12px; }
}
