/* life-game design round (task #2189) - the picker only.
   Deliberately its own thing: a warm dusk that lets three very different worlds
   sit next to each other without any of them borrowing its palette. */

:root {
  --night:   #17130F;
  --night-2: #1F1913;
  --cream:   #F6EEE0;
  --cream-2: rgba(246, 238, 224, .68);
  --cream-3: rgba(246, 238, 224, .44);
  --gold:    #F0B44A;
  --hair:    rgba(246, 238, 224, .13);
  --display: "Fraunces", Georgia, serif;
  --sans:    "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

body {
  background:
    radial-gradient(1200px 620px at 50% -12%, #2E2317 0%, rgba(46,35,23,0) 62%),
    linear-gradient(180deg, #17130F 0%, #14100D 46%, #100D0A 100%);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- sky ---- */

.sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.sky .glow {
  position: absolute; left: 50%; top: -320px; width: 900px; height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(240, 180, 74, .16), rgba(240, 180, 74, 0) 70%);
  filter: blur(6px);
}
.star {
  position: absolute; left: var(--x); top: var(--y);
  width: 3px; height: 3px; border-radius: 50%;
  background: #FFE9BF; opacity: .5;
  box-shadow: 0 0 8px 1px rgba(255, 233, 191, .5);
  animation: twinkle 5.5s var(--d) ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.8) } 50% { opacity: .85; transform: scale(1.15) } }

/* --------------------------------------------------------------- shell ---- */

.wrap {
  position: relative; z-index: 1;
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
  padding: clamp(46px, 9vw, 96px) 0 96px;
}

.head { max-width: 720px; }
.eyebrow {
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-3); font-weight: 500; margin-bottom: 18px;
}
h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 7.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
h1 br { display: none; }
@media (min-width: 640px) { h1 br { display: inline; } }

.lede { font-size: clamp(15.5px, 1.7vw, 18px); color: var(--cream-2); max-width: 62ch; }
.lede b { color: var(--cream); font-weight: 500; }
.lede + .lede { margin-top: 14px; }
.lede.small { font-size: 15px; color: var(--cream-3); }
.lede.small b { color: var(--cream-2); }

.rules {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 34px 0 44px;
}
.rules li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 11px;
  border: 1px solid var(--hair); border-radius: 999px;
  font-size: 13px; color: var(--cream-2);
  background: rgba(246, 238, 224, .03);
}
.rules li b { color: var(--cream); font-weight: 500; }
.rules i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none;
  box-shadow: 0 0 8px 1px rgba(240, 180, 74, .55);
}

/* ---------------------------------------------------------------- grid ---- */

.grid {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }

.card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(246, 238, 224, .045), rgba(246, 238, 224, .015));
  overflow: hidden;
  transition: transform .28s cubic-bezier(.34,.9,.3,1), border-color .28s, box-shadow .28s;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--accent); opacity: .85;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 238, 224, .26);
  box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .9);
}

.shot {
  position: relative; display: block; text-decoration: none;
  aspect-ratio: 390 / 460;
  overflow: hidden;
  background: var(--night-2);
  border-bottom: 1px solid var(--hair);
}
.shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .5s cubic-bezier(.34,.9,.3,1);
}
.card:hover .shot img { transform: scale(1.035); }
.shot::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,19,15,0) 52%, rgba(23,19,15,.86) 100%);
  pointer-events: none;
}
.shot-badge {
  position: absolute; z-index: 2; left: 14px; bottom: 13px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--accent); color: var(--card-ink);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8);
  transition: transform .2s cubic-bezier(.34,1.3,.4,1);
}
.card:hover .shot-badge { transform: translateY(-2px); }

.body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.n {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cream-3); font-weight: 500;
}
.card h2 {
  font-family: var(--display); font-weight: 600;
  font-size: 30px; letter-spacing: -0.015em; line-height: 1.1;
  margin: 6px 0 10px;
  color: var(--cream);
}
.thesis { font-size: 15px; color: var(--cream-2); }

.meta { margin: 18px 0 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.meta dt {
  font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-top: 14px;
}
.meta dd { margin: 4px 0 0; font-size: 14px; color: var(--cream-2); line-height: 1.5; }

.jump {
  margin-top: auto; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.jump a {
  font-size: 12.5px; text-decoration: none;
  padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--hair); color: var(--cream-2);
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.jump a:hover { background: rgba(246, 238, 224, .1); color: var(--cream); border-color: rgba(246,238,224,.3); }
.jump a:active { transform: scale(.97); }
.jump a.ghost { color: var(--cream-3); border-style: dashed; }

/* ---------------------------------------------------------------- foot ---- */

.foot {
  margin-top: 64px; padding-top: 34px;
  border-top: 1px solid var(--hair);
  display: grid; gap: 30px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .foot { grid-template-columns: repeat(3, 1fr); gap: 44px; } }
.foot h3 {
  font-family: var(--display); font-weight: 600; font-size: 17px;
  margin-bottom: 8px; color: var(--cream);
}
.foot p { font-size: 14.5px; color: var(--cream-3); }
.foot code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px;
  color: var(--cream-2); background: rgba(246,238,224,.07);
  padding: 1px 5px; border-radius: 5px;
}
.foot em { color: var(--cream-2); font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
