/* ————————————————————————————————————————
   LUCK.IRISH — emerald velvet & gold
   ———————————————————————————————————————— */

:root {
  --bg: #06231A;
  --bg-2: #0A3226;
  --line: #1C4A3A;
  --text: #F3EDDC;
  --muted: #9DBBA9;
  --gold: #D9B451;
  --gold-bright: #F0CE6E;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Outfit", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(120% 90% at 50% -10%, var(--bg-2), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--bg); }

a { color: var(--gold-bright); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* floating clovers */

.clover-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floater {
  position: absolute;
  bottom: -8vh;
  font-size: 22px;
  color: #2E6B4F;
  opacity: 0;
  animation: floatUp linear infinite;
}

.f1 { left: 8%;  animation-duration: 21s; }
.f2 { left: 24%; animation-duration: 27s; animation-delay: -9s;  font-size: 15px; }
.f3 { left: 47%; animation-duration: 24s; animation-delay: -16s; font-size: 26px; }
.f4 { left: 63%; animation-duration: 30s; animation-delay: -4s;  font-size: 14px; }
.f5 { left: 79%; animation-duration: 22s; animation-delay: -13s; }
.f6 { left: 91%; animation-duration: 28s; animation-delay: -20s; font-size: 18px; }

@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.7; }
  92%  { opacity: 0.5; }
  100% { transform: translateY(-112vh) rotate(340deg); opacity: 0; }
}

/* header */

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(16px, 5vw, 56px);
}

.wordmark {
  font-family: var(--body);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
}

.wordmark .dot { color: var(--muted); font-weight: 500; }

.header-note {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
}

/* stage */

main { position: relative; z-index: 1; }

.stage {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 90px) clamp(16px, 5vw, 40px) clamp(46px, 8vh, 90px);
  text-align: center;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(150vw, 980px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  color: var(--gold);
  opacity: 0.16;
  pointer-events: none;
}

.ring svg { width: 100%; height: 100%; }

.knots {
  transform-origin: 100px 100px;
  animation: spin 90s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}

.blessing p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(28px, 5.4vw, 52px);
  line-height: 1.22;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.today {
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* luck meter */

.luck-meter {
  max-width: 460px;
  margin: 42px auto 0;
  background: color-mix(in srgb, var(--bg-2) 78%, transparent);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.luck-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.luck-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.luck-value {
  font-family: var(--body);
  font-weight: 700;
  font-size: 26px;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.luck-bar {
  height: 10px;
  border-radius: 999px;
  background: #0B2A20;
  border: 1px solid var(--line);
  overflow: hidden;
}

.luck-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7FB069, var(--gold-bright));
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.luck-title {
  margin-top: 12px;
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  color: var(--text);
}

/* actions */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  cursor: pointer;
  font-family: var(--body);
  font-size: 15.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 15px 28px;
  transition: transform 0.15s, filter 0.2s, background 0.2s, color 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-gold {
  border: none;
  color: #201700;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  box-shadow: 0 8px 26px rgba(217, 180, 81, 0.28);
}

.btn-gold:hover { filter: brightness(1.08); transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
}

/* fortune */

.fortune-wrap {
  min-height: 84px;
  margin-top: 30px;
  display: grid;
  place-items: center;
}

.fortune {
  display: none;
  max-width: 46ch;
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 26px);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 26px;
}

.fortune.show {
  display: block;
  animation: flipIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes flipIn {
  from { opacity: 0; transform: rotateX(70deg) translateY(10px); }
  to   { opacity: 1; transform: rotateX(0) translateY(0); }
}

/* burst particles */

.burst {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  font-size: 18px;
  animation: burst 0.9s ease-out forwards;
}

@keyframes burst {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to   { transform: translate(var(--dx), var(--dy)) scale(0.6) rotate(160deg); opacity: 0; }
}

/* about */

.about {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 70px) clamp(16px, 5vw, 40px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.about h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 34px);
  margin-bottom: 14px;
}

.about p { color: var(--muted); }

.about .family { margin-top: 18px; }

/* footer */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 26px clamp(16px, 5vw, 56px) 42px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .floater, .knots { animation: none; }
  .floater { opacity: 0; }
  .luck-fill { transition: none; }
  .fortune.show { animation: none; }
  .btn-gold:hover, .btn-ghost:hover { transform: none; }
  .burst { display: none; }
}

@media (max-width: 560px) {
  .actions { flex-direction: column; align-items: stretch; }
  .header-note { display: none; }
}
