/* The collection page. Deliberately self-contained rather than reusing the
   game's stylesheet: when a second project arrives this page becomes its own
   deployment, and it should be able to leave without taking anything. */

:root {
  --bg: #fbf6f0;
  --ink: #2a1720;
  --muted: #6d5360;
  --faint: #9b8590;
  --rose: #d1456b;
  --rose-deep: #8e2f4c;
  --line: rgba(42, 23, 32, .13);
  --line-strong: rgba(42, 23, 32, .26);
  --shadow: rgba(104, 58, 80, .16);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 30'%3E%3Cpath d='M16 29S1 19.5 1 10.2A8.2 8.2 0 0 1 16 5.6 8.2 8.2 0 0 1 31 10.2C31 19.5 16 29 16 29z' fill='%23000'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
}

body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% -10%, #fbe3e9 0%, rgba(251,227,233,0) 62%),
    radial-gradient(90% 60% at 12% 102%, #f8e7d6 0%, rgba(248,231,214,0) 58%),
    radial-gradient(80% 55% at 92% 88%, #f6e2ea 0%, rgba(246,226,234,0) 60%),
    var(--bg);
}

.wrap { max-width: 620px; margin: 0 auto; padding: 0 20px; }

/* ---------- Masthead ---------- */

.top { padding: 76px 0 8px; text-align: center; }
.mark {
  width: 34px; height: 32px; margin: 0 auto 22px;
  background: var(--rose);
  -webkit-mask: var(--heart) center/contain no-repeat;
          mask: var(--heart) center/contain no-repeat;
}
h1 {
  margin: 0 0 16px;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(44px, 11vw, 68px); line-height: 1;
}
.tagline {
  margin: 0 auto; max-width: 22em;
  font-family: var(--serif); font-size: clamp(20px, 4.4vw, 25px);
  line-height: 1.45; color: var(--muted);
}

/* ---------- The collection ---------- */

.shelf { margin: 58px 0 0; display: grid; gap: 16px; }

.item {
  display: block; padding: 26px 24px;
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255, 255, 255, .62);
  color: inherit; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.item:hover, .item:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 28px var(--shadow);
  outline: none;
}
.item:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.item h2 {
  margin: 0 0 8px;
  font-family: var(--serif); font-weight: 600; font-size: 27px;
}
.item p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.go {
  display: inline-block; margin-top: 16px;
  font-size: 14px; font-weight: 600; color: var(--rose-deep);
}
.item:hover .go { color: var(--rose); }

/* The placeholder is a card that is honest about being empty. */
.soon {
  padding: 30px 24px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: 16px;
  background: transparent;
}
.soon p {
  margin: 0;
  font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--faint);
}
.dots { display: inline-flex; gap: 5px; margin-left: 3px; vertical-align: middle; }
.dots i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--faint);
  animation: breathe 1.8s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: .25s; }
.dots i:nth-child(3) { animation-delay: .5s; }
@keyframes breathe { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- Footer ---------- */

.foot {
  margin-top: 72px; padding: 26px 0 48px;
  border-top: 1px solid var(--line);
  text-align: center; font-size: 13px; color: var(--faint);
}
.foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--ink); }
.foot .sep { margin: 0 8px; opacity: .6; }
.foot .made { display: block; margin-top: 12px; }

/* ---------- Legal pages ---------- */

.legal { padding: 56px 0 0; }
.legal h1 {
  font-size: clamp(32px, 7vw, 44px); font-style: normal; text-align: left; margin-bottom: 24px;
}
.legal h2 {
  margin: 34px 0 10px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--rose-deep); }
.back { display: inline-block; margin-bottom: 30px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }

.todo {
  margin: 0 0 28px; padding: 16px 18px;
  border: 1px solid var(--rose); border-radius: 12px; background: rgba(209, 69, 107, .09);
  font-size: 14.5px; line-height: 1.6;
}
.todo strong { display: block; margin-bottom: 4px; }

@media (max-width: 520px) {
  .top { padding: 52px 0 4px; }
  .shelf { margin-top: 44px; }
}
