/* The Clink: site CSS (unlayered, on top of hl-grid + hl-foundations + theme-clink). Pure CSS glow; no script needed for any visual. */
:root {
  --amber: 232 163 61;
  --glow-text: #ffe3b0;
  --cream: #f6ead3;
}

body {
  background-color: var(--hl-c-page);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgb(var(--amber) / .16), transparent 70%),
    repeating-linear-gradient(176deg, rgb(255 255 255 / .018) 0 2px, transparent 2px 9px),
    radial-gradient(ellipse at 50% 120%, #2a1a0f, var(--hl-c-page) 60%);
  background-attachment: fixed;
}

.clink {
  min-block-size: calc(100svh - 4.5rem);
  display: grid;
  place-items: center;
  padding-block: clamp(1.5rem, 6vw, 4rem) 1rem;
  overflow-x: clip;             /* the halo reaches past the sign; never a sideways scroll on phones */
}

.clink-stack {
  inline-size: 100%;            /* fill the frame, so the sign's min(100%, 26rem) has a real width to read */
  justify-items: center;
  text-align: center;
  gap: var(--hl-s-16);
}

/* ── the sign: the logo on a lit plate with a breathing halo ── */
.sign-wrap {
  position: relative;
  inline-size: min(100%, 26rem);
  isolation: isolate;
}

.sign-wrap::before {            /* the halo behind the plate */
  content: "";
  position: absolute;
  inset: -14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--amber) / .55) 0%, rgb(var(--amber) / .18) 45%, transparent 70%);
  filter: blur(8px);
  animation: halo 3.6s ease-in-out infinite;
}

.sign {
  display: block;
  inline-size: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--hl-radius);
  background: var(--cream);
  cursor: pointer;
  box-shadow:
    0 0 0 2px rgb(var(--amber) / .7),
    0 0 28px 4px rgb(var(--amber) / .45),
    0 18px 40px rgb(0 0 0 / .6);
  animation: plate 3.6s ease-in-out infinite;
  transition: transform var(--hl-dur) var(--hl-ease);
  -webkit-tap-highlight-color: transparent;
}

.sign img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: var(--hl-radius);
}

.sign:active { transform: scale(.97); }

.sign.is-clinking { animation: clink .5s var(--hl-ease), plate 3.6s ease-in-out infinite .5s; }

/* ── the words ── */
.name {
  margin: var(--hl-s-16) 0 0;
  font-family: var(--hl-f-display);
  font-size: clamp(2.5rem, 11vw, 4.25rem);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--cream);
  text-shadow: 0 0 18px rgb(var(--amber) / .35);
}

.rule {
  display: flex;
  align-items: center;
  gap: var(--hl-s-12);
  inline-size: min(100%, 18rem);
  margin: 0;
  color: var(--hl-c-accent);
  font-size: .8rem;
}

.rule span {
  flex: 1;
  block-size: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--amber) / .8), transparent);
}

.soon {
  margin: 0;
  font-family: var(--hl-f-display);
  font-size: clamp(1.35rem, 6vw, 2rem);
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--glow-text);
  animation: neon 3.6s ease-in-out infinite;
}

.hint {
  display: none;                /* shown only when the clink script is running */
  margin: 0;
  color: var(--hl-c-muted);
  font-size: var(--hl-t-small);
  letter-spacing: .04em;
}

.can-clink .hint { display: block; }

.foot {
  padding-block: var(--hl-s-16) var(--hl-s-24);
  text-align: center;
}

.foot p {
  margin: 0;
  color: var(--hl-c-muted);
  font-size: var(--hl-t-small);
  letter-spacing: .03em;
}

/* ── motion ── */
@keyframes halo {
  0%, 100% { opacity: .55; transform: scale(.94); }
  50%      { opacity: 1;   transform: scale(1.06); }
}

@keyframes plate {
  0%, 100% { box-shadow: 0 0 0 2px rgb(var(--amber) / .6), 0 0 22px 2px rgb(var(--amber) / .35), 0 18px 40px rgb(0 0 0 / .6); }
  50%      { box-shadow: 0 0 0 2px rgb(var(--amber) / .9), 0 0 54px 12px rgb(var(--amber) / .6), 0 18px 40px rgb(0 0 0 / .6); }
}

@keyframes neon {
  0%, 100% { text-shadow: 0 0 4px rgb(var(--amber) / .7), 0 0 14px rgb(var(--amber) / .45), 0 0 32px rgb(var(--amber) / .25); }
  50%      { text-shadow: 0 0 6px rgb(var(--amber) / .95), 0 0 22px rgb(var(--amber) / .75), 0 0 52px rgb(var(--amber) / .5); }
  52%      { text-shadow: 0 0 2px rgb(var(--amber) / .5), 0 0 8px rgb(var(--amber) / .3); }
  55%      { text-shadow: 0 0 6px rgb(var(--amber) / .95), 0 0 22px rgb(var(--amber) / .75), 0 0 52px rgb(var(--amber) / .5); }
}

@keyframes clink {
  0%   { transform: rotate(0) scale(1); }
  25%  { transform: rotate(-3deg) scale(1.03); }
  55%  { transform: rotate(2deg) scale(1.02); }
  100% { transform: rotate(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .sign-wrap::before, .sign, .soon, .sign.is-clinking { animation: none; }
  .soon { text-shadow: 0 0 6px rgb(var(--amber) / .8), 0 0 22px rgb(var(--amber) / .5); }
}
