/* src/style.css */
.hero {
  padding: 40px 0 44px;
  text-align: center;
}
.hero h1 {
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -.055em;
  line-height: 1.03;
  margin: 0;
}
.filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 40px;
  padding: 5px;
  background: var(--ds-raised);
  border-radius: 28px;
  width: fit-content;
}
.filters button {
  border: 0;
  background: transparent;
  color: var(--ds-ink);
  padding: 10px 14px;
  min-height: 44px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s;
}
.filters button[aria-pressed=true] {
  background: var(--ds-ink);
  color: var(--ds-page);
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 64px;
  align-items: start;
}
.project {
  min-width: 0;
  border-radius: 28px;
  background: var(--ds-page);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ds-ink) 9%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--ds-ink) 7%, transparent), 0 20px 36px color-mix(in srgb, var(--ds-ink) 4%, transparent);
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 1.12;
  overflow: hidden;
  background: var(--ds-raised);
  text-decoration: none;
  transition: filter .3s;
}
.tile:hover {
  filter: brightness(1.08);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-content {
  padding: 22px 22px 8px;
}
.card-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.card-heading h2 {
  margin: 0;
  font-family: inherit;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  flex: 1 1 160px;
  overflow-wrap: anywhere;
}
.flag {
  font-size: 11px;
  font-weight: 600;
  line-height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  background: var(--ds-raised);
  white-space: nowrap;
}
.flag.public {
  color: var(--ds-teal);
}
.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ds-ink-2);
  margin: 14px 0;
}
.project details {
  border-top: 1px solid var(--ds-hairline);
  margin-top: 16px;
}
.project summary {
  list-style: none;
  cursor: pointer;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.project summary::-webkit-details-marker {
  display: none;
}
.project summary span {
  font-size: 24px;
  font-weight: 350;
  transition: transform .2s;
}
.project details[open] summary span {
  transform: rotate(45deg);
}
.history {
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  padding-bottom: 18px;
}
.desc {
  font-weight: 600;
  margin: 4px 0 18px;
}
.version {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.version-date,
.version small {
  font-size: 12px;
  color: var(--ds-ink-2);
}
.version a {
  font-size: 14px;
  line-height: 1.5;
}
.history ul {
  padding-left: 18px;
  color: var(--ds-ink-2);
  font-size: 13px;
}
.note {
  color: var(--ds-ink-2);
  margin: 16px 0 0;
}
.about {
  font-size: 13px;
  color: var(--ds-ink-2);
  line-height: 1.7;
  margin: 0 0 12px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ds-teal);
  outline-offset: 4px;
}
@media (min-width: 700px) {
  .hero {
    padding: 64px 0 56px;
  }
  .filters {
    margin-bottom: 56px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 28px;
  }
  .card-content {
    padding: 28px 28px 10px;
  }
  .card-heading h2 {
    font-size: 30px;
  }
  .tile {
    aspect-ratio: 1.08;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tile,
  .project summary span,
  .filters button {
    transition: none;
  }
}
@media (max-width: 360px) {
  .filters {
    gap: 0;
  }
  .filters button {
    padding: 10px 10px;
    font-size: 12px;
  }
  .hero {
    padding: 30px 0 32px;
  }
}
@media (max-width: 699px) {
  .card-heading {
    display: block;
  }
  .card-heading .flag {
    display: inline-block;
    margin-top: 12px;
  }
  .card-heading h2 {
    font-size: 26px;
    overflow-wrap: normal;
    hyphens: auto;
  }
}
.project {
  position: relative;
}
.heart {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 0;
  background: color-mix(in srgb, var(--ds-page) 88%, transparent);
  backdrop-filter: blur(10px);
  color: var(--ds-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  transition: transform .15s;
}
.heart:active {
  transform: scale(.88);
}
.heart.on {
  color: #e0245e;
}
.tabbar {
  position: relative;
  width: fit-content;
  margin: 28px auto 8px;
  z-index: 5;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 32px;
  background: color-mix(in srgb, var(--ds-page) 82%, transparent);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid color-mix(in srgb, var(--ds-ink) 10%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.tabbar button {
  border: 0;
  background: transparent;
  font: inherit;
  min-height: 52px;
  min-width: 120px;
  padding: 6px 18px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ds-ink-2);
  cursor: pointer;
}
.tabbar button span {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  gap: 6px;
  align-items: center;
}
.tabbar button b {
  background: #e0245e;
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  min-width: 18px;
  line-height: 18px;
  text-align: center;
}
.tabbar button[aria-pressed=true] {
  background: var(--ds-ink);
  color: var(--ds-page);
}
.favs {
  min-height: 50vh;
  margin-bottom: 24px;
}
.empty {
  text-align: center;
  color: var(--ds-ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 280px;
  margin: 60px auto;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 12px;
}
.mini {
  position: relative;
  min-width: 0;
}
.mini-tile {
  display: block;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.mini-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mini .heart {
  width: 32px;
  height: 32px;
  top: 6px;
  right: 6px;
}
.mini .heart svg {
  width: 16px;
  height: 16px;
}
.mini h3 {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  margin: 8px 2px 0;
  line-height: 1.25;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
@media (min-width: 700px) {
  .mini-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .mini h3 {
    font-size: 13px;
  }
}
.tabs-top {
  margin: -8px 0 28px;
}
.tabs-top .tabbar {
  margin: 0 auto;
}
.date-section {
  margin: 0 0 48px;
}
.date-heading {
  font-family: inherit;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.2;
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ds-hairline);
  overflow-wrap: normal;
}
.date-section .grid {
  margin-bottom: 0;
}
.date-groups {
  margin-bottom: 64px;
}
