:root {
  color-scheme: dark;
  --bg: #131414;
  --text: #faf7f2;
  --soft: #b7b5b1;
  --line: #383938;
  --accent: #ffa15f;
  font:
    16px/1.5 system-ui,
    "Noto Sans Devanagari",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button,
.lang,
.saveDetail {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}
button:hover,
a:hover {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex: none;
}
header {
  border-bottom: 1px solid var(--line);
}
main,
.bar {
  max-width: 1440px;
  margin: auto;
  padding: 0 clamp(16px, 4.5vw, 72px);
}
.bar,
nav,
.brand,
.saved,
.heading,
.controls,
.search,
.tabs,
.caption,
.filter,
.primary,
.saveDetail,
.pager {
  display: flex;
  align-items: center;
}
.bar {
  justify-content: space-between;
  min-height: 76px;
}
.brand {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1.6px;
  gap: 12px;
}
.brandmark {
  display: inline-block;
  position: relative;
  width: 30px;
  height: 34px;
  color: transparent;
  transform: rotate(12deg);
}
.brandmark:before,
.brandmark:after {
  content: "";
  position: absolute;
  width: 17px;
  height: 25px;
  top: 4px;
  border: 2px solid var(--accent);
  border-radius: 5px;
}
.brandmark:before {
  left: 1px;
  transform: rotate(-24deg);
}
.brandmark:after {
  left: 8px;
  background: var(--bg);
}
nav {
  gap: 24px;
  font-size: 14px;
}
.saved,
.filter,
.primary,
.saveDetail {
  gap: 8px;
}
.lang {
  padding: 6px 16px;
}
.heading {
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0 24px;
}
h1,
h2 {
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.04em;
  margin: 0;
}
h1 {
  font-size: clamp(32px, 4vw, 48px);
}
html[lang="hi"] h1,
html[lang="hi"] h2 {
  letter-spacing: normal;
  line-height: 1.4;
}
.search {
  width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  gap: 10px;
  color: var(--soft);
}
.search input {
  width: 100%;
  outline: none;
  background: transparent;
  border: 0;
  font-size: 16px;
}
.search:focus-within {
  border-color: var(--accent);
}
.controls {
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.tabs {
  gap: 8px;
  overflow: auto;
  scrollbar-width: none;
}
.tabs button,
.filter {
  white-space: nowrap;
  font-size: 14px;
  min-height: 40px;
}
.tabs [aria-pressed="true"],
.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
#filters {
  padding: 12px 0;
  display: flex;
  gap: 24px;
  align-items: center;
}
select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
}
input {
  accent-color: var(--accent);
}
#count,
small,
.credit,
.back {
  font-size: 13px;
  color: var(--soft);
}
#count {
  margin: 16px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  margin-bottom: 48px;
}
.art {
  display: block;
  aspect-ratio: 9/16;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}
.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.caption {
  justify-content: space-between;
  gap: 4px;
  padding-top: 8px;
}
.caption small,
.caption a {
  display: block;
}
.caption a {
  font-weight: 600;
}
.heart {
  border: 0;
  padding: 10px;
  color: var(--soft);
}
[aria-pressed="true"].heart svg,
[aria-pressed="true"].saveDetail svg {
  fill: var(--accent);
  color: var(--accent);
}
h2 {
  font-size: 32px;
  margin: 32px 0 16px;
}
.detail {
  display: grid;
  grid-template-columns: minmax(240px, 400px) minmax(240px, 480px);
  justify-content: center;
  gap: clamp(24px, 6vw, 80px);
  align-items: center;
}
.preview {
  position: relative;
}
.preview img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}
.clock {
  position: absolute;
  top: 8%;
  text-align: center;
  width: 100%;
  font-size: 48px;
  font-weight: 650;
  color: white;
  text-shadow: 0 1px 6px black;
}
.clock small {
  display: block;
  color: white;
}
.back {
  display: inline-block;
  margin: 20px 0;
}
.tag {
  color: var(--accent);
}
.info h1 {
  margin: 12px 0;
}
.info label {
  display: block;
  margin: 24px 0;
}
.primary,
.saveDetail {
  justify-content: center;
  width: 100%;
  border-radius: 12px;
  padding: 12px;
  font-weight: 650;
  margin: 8px 0;
}
.primary:hover {
  color: var(--bg);
  filter: brightness(1.08);
}
.pager {
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  font-size: 14px;
}
.credit {
  margin-top: 16px;
}
@media (max-width: 780px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .heading {
    align-items: stretch;
    flex-direction: column;
    margin: 20px 0 16px;
  }
  .search {
    width: 100%;
  }
  .bar {
    min-height: 60px;
  }
  nav {
    gap: 12px;
  }
  .brand {
    font-size: 22px;
  }
  .filter {
    font-size: 0;
    padding: 8px;
    gap: 0;
  }
  .filter svg {
    width: 20px;
  }
  .controls {
    gap: 4px;
  }
  .tabs button {
    padding: 7px 12px;
  }
  .detail {
    grid-template-columns: 1fr;
  }
  .preview img {
    max-height: 64vh;
  }
  .caption a {
    font-size: 14px;
  }
  .heart {
    padding: 8px;
  }
  .detail {
    gap: 20px;
  }
  .info h1 {
    font-size: 32px;
  }
}
.season {
  grid-column: 1/-1;
  padding: 16px;
  border-block: 1px solid var(--line);
  color: var(--accent);
  font-weight: 650;
}
