:root {
  color-scheme: light;
  --ink: #342d32;
  --muted: #796f76;
  --plum: #914567;
  --cream: #f8f5ef;
  --line: #e9dfe4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    sans-serif;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  color: var(--ink);
  padding: 11px 22px;
}
button:hover {
  border-color: var(--plum);
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #bb78a0;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--plum);
}
.top {
  max-width: 1240px;
  margin: auto;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
  font-size: 20px;
}
.brand:first-letter {
  color: var(--plum);
}
.private,
.hint,
footer {
  font-size: 13px;
  color: var(--muted);
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 0 32px;
}
.hero {
  text-align: center;
  padding: 58px 12px 44px;
  position: relative;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--plum);
  font-weight: 700;
}
h1 {
  font:
    clamp(38px, 5.5vw, 66px) / 1.15 Georgia,
    serif;
  letter-spacing: -2px;
  margin: 18px 0;
}
h2 {
  font:
    28px/1.2 Georgia,
    serif;
  margin: 12px 0;
}
h3 {
  font-size: 19px;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.hero > p:not(.eyebrow) {
  color: var(--muted);
}
#connection {
  font-size: 12px;
  color: var(--muted);
}
#connection:before {
  content: "● ";
  color: #72896a;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 28px;
}
button.active,
.primary {
  background: var(--plum);
  border-color: var(--plum);
  color: white;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.reserved-group {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.reserved-group summary {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 48px;
  cursor: pointer;
  color: var(--plum);
  font-size: 14px;
  font-weight: 650;
  list-style: none;
}
.reserved-group summary::-webkit-details-marker {
  display: none;
}
.reserved-group summary::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.reserved-group[open] summary::before {
  transform: rotate(45deg);
}
.reserved-group summary:hover {
  text-decoration: underline;
}
.reserved-group summary:focus-visible {
  outline: 3px solid #bb78a0;
  outline-offset: 3px;
  border-radius: 4px;
}
.reserved-group[open] .grid {
  margin-top: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f0ebe8;
}
.photo-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}
.reserved-card {
  border-color: #6d9270;
}
.reserved-photo .photo {
  filter: grayscale(1) brightness(0.75);
}
.reserved-mark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.reserved-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid #6d9270;
  border-radius: 50%;
  background: #e1efde;
  color: #36573b;
  font-size: 44px;
  line-height: 1;
}
.reserved-label {
  padding: 4px 14px;
  border-radius: 20px;
  background: #17251acc;
  color: #f0f7ed;
  font-size: 14px;
  font-weight: 700;
}
.reserved-check svg {
  width: 44px;
  height: 44px;
}
/* A programmatically focused reading heading is not an interactive control. */
#gift-title:focus {
  outline: none;
}
.body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.body p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tag {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  border-radius: 20px;
  padding: 4px 10px;
  overflow-wrap: anywhere;
}
.person {
  color: #5c4854;
  background: #f0e8ed;
}
.price {
  font-size: 23px;
  font-weight: 750;
}
.status {
  background: #e7edf5;
  color: #47617c;
}
.status.contributing {
  background: #f4e4eb;
  color: var(--plum);
}
.status.reserved,
.status.funded {
  background: #e3eddc;
  color: #36573b;
}
.gift-link {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  text-align: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  margin-top: 12px;
}
.gift-link:hover {
  border-color: var(--plum);
  background: #f8f1f5;
}
.body .bottom {
  margin-top: auto;
  padding-top: 12px;
}
progress {
  display: block;
  width: 100%;
  height: 7px;
  accent-color: var(--plum);
  margin: 12px 0 5px;
}
.amounts {
  font-size: 12px;
  color: var(--muted);
}
footer {
  text-align: center;
  padding: 60px 0 30px;
}
#notice:not(:empty) {
  background: #eee4ec;
  border-radius: 14px;
  padding: 14px 20px;
  margin: 0 0 24px;
}
.connection-row {
  text-align: right;
  min-height: 28px;
}
.detail-navigation {
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 28px;
  gap: 16px;
}
.detail-navigation a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 650;
}
#list-name {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.gift-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}
#gift-content,
.participation-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  min-width: 0;
}
#gift-content {
  overflow: hidden;
}
#gift-content .photo-wrap {
  aspect-ratio: 4 / 3;
}
.gift-summary {
  padding: 28px;
}
.gift-summary h1 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -1px;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.full-description {
  color: var(--muted);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.participation-panel {
  padding: 28px;
  position: sticky;
  top: 24px;
}
.participation-panel .eyebrow {
  letter-spacing: 1.5px;
}
#gift-state-note:not(:empty) {
  background: #edf2e9;
  color: #36573b;
  border-radius: 12px;
  padding: 16px;
}
fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}
legend {
  font-size: 14px;
  font-weight: 650;
  margin: 20px 0 10px;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.choices button {
  flex: 1 1 120px;
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  min-height: 48px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0;
}
input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #c9bac4;
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--ink);
  background: #fff;
}
.primary {
  width: 100%;
  border-radius: 12px;
  min-height: 48px;
}
.presence {
  font-size: 12px;
  color: var(--plum);
  background: #f5edf3;
  padding: 10px 12px;
  border-radius: 10px;
}
#form-error {
  color: #a53649;
  font-size: 14px;
}
.shop {
  display: inline-block;
  margin: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
#empty {
  padding: 40px;
  text-align: center;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .private {
    display: none;
  }
  .gift-layout {
    grid-template-columns: 1fr;
  }
  .participation-panel {
    position: static;
  }
}
@media (max-width: 560px) {
  .top {
    padding: 22px;
  }
  .brand {
    font-size: 18px;
  }
  main {
    padding: 0 18px;
  }
  .hero {
    padding: 24px 0;
  }
  .hero p {
    font-size: 14px;
  }
  h1 {
    letter-spacing: -1px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  nav {
    gap: 8px;
  }
  nav button {
    padding: 8px 16px;
  }
  .gift-summary,
  .participation-panel {
    padding: 20px;
  }
  .gift-layout {
    gap: 20px;
  }
  .detail-navigation {
    margin: 12px 0 20px;
  }
  footer {
    padding-top: 35px;
  }
}

#connection:empty {
  display: none;
}

body {
  font-family: system-ui, sans-serif;
  font-size: 15px;
}
.photo {
  background: transparent;
}
.compact-bar,
main {
  max-width: 1360px;
  margin: auto;
  padding-left: 32px;
  padding-right: 32px;
}
.compact-bar {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.compact-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #263c35;
  text-decoration: none;
  line-height: 1;
}
.cabs-c {
  width: 40px;
  height: 40px;
}
.cabs-word {
  font-size: 35px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-left: -3px;
}
.gift-mark {
  width: 23px;
  height: 23px;
  margin-left: 12px;
  color: var(--plum);
}
.list-heading {
  flex: 1;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.list-heading h1 {
  font:
    30px/1.1 Georgia,
    serif;
  letter-spacing: -0.8px;
  margin: 0;
  color: var(--ink);
}
.list-heading p {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  margin: 4px 0 0;
}
.compact-filters {
  margin: 0;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
.compact-filters button {
  font-size: 14px;
  line-height: 20px;
  min-height: 44px;
  padding: 10px 16px;
}
.mobile-label {
  display: none;
}
main {
  padding-top: 6px;
}
.photo-wrap {
  aspect-ratio: 16/10;
}
.body h3 {
  font-size: 18px;
  font-weight: 650;
  margin: 12px 0 0;
}
.body .description {
  min-height: 44px;
}
.tag {
  font-size: 12px;
}
.gift-link {
  background: white;
}
.body .bottom {
  padding-top: 12px;
}
.reserved-group {
  margin-top: 20px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  padding: 28px 0;
  font-size: 12px;
}
footer p {
  margin: 0;
  line-height: 1.6;
}
.live-state {
  white-space: nowrap;
}
.live-state::before {
  content: "● ";
  color: #72896a;
}
.demo-detail {
  max-width: 800px;
  margin: auto;
}
.demo-detail .photo-wrap {
  aspect-ratio: 16/8;
}
.demo-detail .gift-summary h1 {
  margin-top: 16px;
}
.demo-detail .back {
  display: inline-block;
  margin: 8px 0 20px;
  min-height: 44px;
}
@media (max-width: 1100px) {
  .compact-bar {
    gap: 18px;
  }
  .compact-logo .gift-mark {
    margin-left: 8px;
  }
  .list-heading {
    padding-left: 18px;
  }
  .list-heading h1 {
    font-size: 27px;
  }
  .compact-filters button {
    padding: 10px 12px;
  }
  .compact-filters {
    gap: 6px;
  }
}
@media (max-width: 900px) {
  .compact-bar {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .list-heading {
    flex: 1;
  }
  .compact-filters {
    flex-basis: 100%;
    margin: 0;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .compact-bar,
  main {
    padding-left: 18px;
    padding-right: 18px;
  }
  .compact-bar {
    padding-top: 14px;
    padding-bottom: 12px;
    gap: 12px;
  }
  .cabs-c {
    width: 32px;
    height: 32px;
  }
  .cabs-word {
    font-size: 28px;
  }
  .gift-mark {
    width: 18px;
    height: 18px;
    margin-left: 7px !important;
  }
  .list-heading {
    padding-left: 12px;
  }
  .list-heading h1 {
    font-size: 25px;
  }
  .list-heading p {
    font-size: 12px;
    line-height: 17px;
    margin-top: 3px;
  }
  .compact-filters {
    gap: 7px;
  }
  .compact-filters button {
    flex: 1;
    font-size: 13px;
    padding: 9px 10px;
  }
  .desktop-label {
    display: none;
  }
  .mobile-label {
    display: inline;
  }
  main {
    padding-top: 4px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .photo-wrap {
    aspect-ratio: 16/9;
  }
  footer {
    flex-direction: column;
    gap: 12px;
  }
}

.compact-bar {
  padding-left: 0;
  padding-right: 0;
}
main {
  padding-top: 0;
}
#detail {
  padding-top: 16px;
}
#connection {
  white-space: nowrap;
}
