* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f6f5f2;
  font-family: system-ui, -apple-system, sans-serif;
  color: #2a2a2a;
}

.logo {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 32px;
  color: #1a1a1a;
}

.site-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: #1c1c1c;
  margin: 0;
}

.site-sub {
  font-size: 13px;
  color: #8a8a86;
  margin: 8px 0 0;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 440px;
  max-width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: #fafafa;
  color: #a5a5a1;
  font-size: 13.5px;
  cursor: text;
}

.searchbar .mag {
  width: 14px;
  height: 14px;
  border: 2px solid #b5b5b1;
  border-radius: 50%;
  position: relative;
  flex: none;
}

.searchbar .mag::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  background: #b5b5b1;
  transform: rotate(45deg);
  right: -4px;
  bottom: -1px;
  border-radius: 2px;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: #2a2a2a;
  outline: none;
}

.search-input::placeholder {
  color: #a5a5a1;
}

.chip-lbl {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b0b0ac;
  margin-right: 2px;
}

.chip {
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.3px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #555;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.chip:hover {
  border-color: rgba(0, 0, 0, 0.28);
}

.chip.on {
  background: #1c1c1c;
  color: #fff;
  border-color: #1c1c1c;
}

.card {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
}

.photo {
  background: repeating-linear-gradient(
    45deg,
    #efeeec,
    #efeeec 9px,
    #e5e4e1 9px,
    #e5e4e1 18px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8a8a3;
  font: 600 10.5px ui-monospace, monospace;
  letter-spacing: 0.1em;
  flex: none;
  width: 230px;
  overflow: hidden;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cbody {
  padding: 16px 17px 17px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.ctitle {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: #1c1c1c;
}

.specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.specs li {
  font-size: 12px;
  color: #4a4a48;
  padding-left: 13px;
  position: relative;
  line-height: 1.45;
}

.specs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9c9c4;
}

.specs li b {
  color: #1c1c1c;
  font-weight: 600;
}

.tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f0efec;
  color: #6a6a66;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: #666;
  margin: 0;
}

.sublbl {
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #a8a8a3;
  font-weight: 600;
  padding-top: 24px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.lk {
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 9px;
  border: 1.4px solid rgba(0, 0, 0, 0.16);
  color: #1c1c1c;
  background: #fff;
  text-decoration: none;
}

.lk.pri {
  background: #1c1c1c;
  color: #fff;
  border-color: #1c1c1c;
}

.page {
  width: 100%;
  min-height: 100vh;
  background: #f6f5f2;
}

.hero {
  position: relative;
  background: #1a1a1a url('../assets/cover-images/cover.jpg') center / cover no-repeat;
  min-height: 360px;
  padding: 56px 24px 48px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero .logo,
.hero .site-title {
  color: #f6f5f2;
}

.hero .site-sub {
  color: rgba(255, 255, 255, 0.75);
}

.hero .searchbar {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.body {
  display: flex;
  align-items: flex-start;
}

.rail {
  width: 210px;
  flex: none;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
  overflow-y: auto;
  padding: 24px 22px;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  background: #f6f5f2;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rail .chips {
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.filt-grp-lbl {
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #a8a8a3;
  font-weight: 700;
  margin-bottom: 10px;
}

.list {
  flex: 1;
  min-width: 0;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #8a8a86;
  font-size: 14px;
}

@media (max-width: 640px) {
  .body {
    flex-direction: column;
  }

  .rail {
    width: auto;
    position: static;
    max-height: none;
    overflow-y: visible;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  }

  .card {
    flex-direction: column;
  }

  .photo {
    width: 100%;
    height: 150px;
  }
}
