@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --bg: #101014;
  --text: #f7f3ee;
  --muted: #a8a2ad;
  --gold: #e7d2a7;
  --line: rgba(255,255,255,.12);
  --card-1: #27203b;
  --card-2: #183c3a;
  --card-3: #4a2c43;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(86,62,106,.18), transparent 48%),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.ambient {
  position: fixed; z-index: 0; width: 32rem; height: 32rem;
  border-radius: 50%; filter: blur(100px); opacity: .14; pointer-events: none;
  animation: float 16s ease-in-out infinite alternate;
}
.ambient-one { background: #9b65bf; top: -18rem; left: -12rem; }
.ambient-two { background: #2d9d91; right: -17rem; top: 30%; animation-delay: -5s; }
.ambient-three { background: #ba7e52; bottom: -24rem; left: 25%; animation-delay: -9s; }
.page-shell { position: relative; z-index: 1; width: min(100% - 40px, 1080px); margin: 0 auto; }
.site-header {
  min-height: 88px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.clover { color: var(--gold); font-size: 25px; line-height: 1; transform: rotate(-12deg); }
.brand-name { font-size: 11px; font-weight: 700; letter-spacing: .22em; }
.store-link { color: #d4ced8; font-size: 12px; transition: color .2s ease; }
.store-link span, .text-link span { color: var(--gold); margin-left: 5px; }
.store-link:hover, .text-link:hover { color: var(--gold); }
.hero { text-align: center; padding: 74px 0 38px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px;
  color: var(--gold); font-size: 10px; letter-spacing: .2em; font-weight: 600;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px rgba(231,210,167,.75); }
h1 { max-width: 740px; margin: 0 auto; font-size: clamp(35px, 6vw, 64px); line-height: 1.08; letter-spacing: -.055em; font-weight: 500; }
h1 span { display: block; color: #c6b5d8; font-family: "Playfair Display", Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -.035em; }
.intro { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 22px 0 0; }
.thought-wrap { max-width: 760px; margin: 0 auto; }
.thought-card {
  position: relative; overflow: hidden; min-height: 350px; padding: 25px 29px 23px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(255,255,255,.17); border-radius: 24px;
  background: linear-gradient(125deg, var(--card-1), var(--card-2), var(--card-3), var(--card-1));
  background-size: 280% 280%;
  box-shadow: 0 28px 90px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
  animation: gradientShift 15s ease infinite;
  transition: transform .35s ease, border-color .35s ease;
}
.thought-card::before {
  content: ""; position: absolute; width: 270px; height: 270px; top: -150px; right: -65px;
  border: 1px solid rgba(255,255,255,.13); border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(255,255,255,.025), 0 0 0 55px rgba(255,255,255,.02);
  pointer-events: none;
}
.thought-card::after {
  content: "✳"; position: absolute; right: 30px; bottom: 54px;
  font-size: 70px; color: rgba(255,255,255,.055); transform: rotate(-15deg); pointer-events: none;
}
.card-topline, .card-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.thought-label, .thought-number, .card-signature { font-size: 9px; letter-spacing: .17em; font-weight: 600; }
.thought-label { color: #f1dfbd; }
.sparkle { margin-right: 6px; font-size: 13px; }
.thought-number, .card-signature { color: rgba(255,255,255,.55); }
.card-content { position: relative; z-index: 1; padding: 32px 3px 36px; }
.category { margin: 0 0 17px; color: #e8d6b5; font-size: 10px; letter-spacing: .2em; font-weight: 700; }
blockquote {
  max-width: 630px; margin: 0; font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(29px, 4.8vw, 46px); line-height: 1.2; letter-spacing: -.035em; font-weight: 400;
  text-wrap: balance;
}
.thought-note { margin: 19px 0 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.7; }
.card-mark { color: var(--gold); font-size: 18px; }
.controls { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; }
.primary-button, .icon-button {
  min-height: 48px; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 23px; background: var(--gold); color: #201a20; font-size: 12px; font-weight: 700; }
.primary-button:hover { background: #f5e7c9; transform: translateY(-2px); }
.button-icon { font-size: 18px; }
.icon-button { width: 48px; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.12); color: #f5f0e9; font-size: 20px; }
.icon-button:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.status-message { min-height: 18px; margin: 12px 0 0; text-align: center; color: var(--gold); font-size: 12px; }
.refresh-hint { margin: 12px 0 0; text-align: center; color: #77727f; font-size: 9px; letter-spacing: .16em; }
.closing-note { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 53px 0 36px; }
.closing-line { display: block; width: 35px; height: 1px; margin-bottom: 18px; background: rgba(231,210,167,.65); }
.closing-note p { margin: 0 0 14px; font-family: "Playfair Display", Georgia, serif; font-size: 20px; }
.closing-note p span { color: #c6b5d8; font-style: italic; }
.text-link { color: #aaa3b1; font-size: 11px; transition: color .2s ease; }
.site-footer { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 22px 0 27px; border-top: 1px solid rgba(255,255,255,.08); color: #716c78; font-size: 8px; letter-spacing: .16em; }
.footer-dot { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.thought-card.is-changing .card-content { animation: reveal .42s ease both; }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes float { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(30px,25px,0) scale(1.1); } }
@keyframes reveal { from { opacity: .25; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (max-width: 600px) {
  .page-shell { width: min(100% - 28px, 1080px); }
  .site-header { min-height: 72px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 9px; letter-spacing: .15em; }
  .clover { font-size: 21px; }
  .store-link { font-size: 11px; }
  .hero { padding: 56px 0 29px; }
  .eyebrow { font-size: 8px; letter-spacing: .14em; }
  .intro { font-size: 13px; }
  .thought-card { min-height: 340px; padding: 21px 19px; border-radius: 20px; }
  .thought-number { font-size: 8px; }
  .card-content { padding: 35px 0; }
  blockquote { font-size: clamp(30px, 8vw, 40px); }
  .thought-note { font-size: 12px; }
  .controls { gap: 8px; }
  .primary-button { flex: 1; padding: 0 13px; font-size: 11px; }
  .icon-button { flex: 0 0 44px; width: 44px; min-height: 44px; }
  .refresh-hint { font-size: 8px; letter-spacing: .1em; }
  .closing-note { padding-top: 42px; }
  .site-footer { flex-wrap: wrap; font-size: 7px; gap: 8px; }
}
