/* Troy Lotus link page. Gold on night violet, from brands/troy-lotus/brand-brief.md. */

@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 600; font-display: swap; src: url("assets/fonts/fraunces-latin-600-italic.woff2") format("woff2"); }

:root {
  --night: #0A0819;
  --night-mid: #161230;
  --violet: #2A2154;
  --gold: #E2AE4A;
  --gold-soft: rgba(226, 174, 74, 0.55);
  --gold-faint: rgba(226, 174, 74, 0.18);
  --cream: #F4EDE0;
  --cream-dim: rgba(244, 237, 224, 0.66);
  --card: rgba(22, 18, 48, 0.62);
  --card-line: rgba(244, 237, 224, 0.10);
  --radius: 18px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --breath: 10s; /* 4 s in, 6 s out, the breath from "A Lamp in a Windless Place" */
}

* { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }

/* ---------- The sky behind everything ---------- */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky-photo {
  position: absolute; left: 50%; top: -4vh;
  width: max(100vw, 640px); height: 92vh;
  transform: translateX(-50%);
  background: url("assets/img/bg-web.webp") center top / cover no-repeat;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 38%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 38%, transparent 92%);
  will-change: transform;
}
.sky-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 42% at 50% 14%, rgba(42, 33, 84, 0.85) 0%, rgba(22, 18, 48, 0.4) 55%, transparent 100%),
    radial-gradient(120% 60% at 50% 110%, rgba(42, 33, 84, 0.55) 0%, transparent 70%);
  mix-blend-mode: screen;
}

/* ---------- Page ---------- */
.page {
  position: relative; z-index: 1;
  width: 100%; max-width: 460px;
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 18px max(32px, env(safe-area-inset-bottom));
}

/* ---------- Header ---------- */
.me { display: flex; flex-direction: column; align-items: center; text-align: center; }

.lamp { position: relative; width: 88px; height: 88px; margin-bottom: 18px; }
.lamp-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--gold-soft);
  background: radial-gradient(circle at 50% 50%, rgba(226, 174, 74, 0.22) 0%, rgba(42, 33, 84, 0.65) 46%, rgba(10, 8, 25, 0.9) 100%);
  box-shadow: 0 0 0 7px rgba(226, 174, 74, 0.06), 0 10px 40px rgba(0, 0, 0, 0.45);
}
.lamp-dot {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFE7AE 0%, var(--gold) 55%, rgba(226, 174, 74, 0) 100%);
  box-shadow: 0 0 18px 6px rgba(226, 174, 74, 0.45);
  animation: breathe var(--breath) cubic-bezier(.45, 0, .55, 1) infinite;
}
/* In for 40% of the cycle (4 s), out for 60% (6 s). */
@keyframes breathe {
  0%   { transform: scale(1);   box-shadow: 0 0 16px 4px rgba(226, 174, 74, 0.35); }
  40%  { transform: scale(2.1); box-shadow: 0 0 34px 14px rgba(226, 174, 74, 0.55); }
  100% { transform: scale(1);   box-shadow: 0 0 16px 4px rgba(226, 174, 74, 0.35); }
}

.me-name {
  margin: 0;
  font-weight: 700; font-size: 24px; letter-spacing: 0.01em;
}
.me-line {
  margin: 8px 0 0;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 19px; line-height: 1.3;
  color: var(--gold);
  text-wrap: balance;
}

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 4px; }
.social {
  position: relative;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(22, 18, 48, 0.7);
  border: 1px solid var(--card-line);
  color: var(--cream);
  transition: border-color .2s, color .2s, transform .15s, background .2s;
}
.social svg { width: 19px; height: 19px; fill: currentColor; }
.social:hover, .social:focus-visible { border-color: var(--gold-soft); color: var(--gold); }
.social:active { transform: scale(0.93); }

/* ---------- Featured ---------- */
.featured {
  display: block; position: relative;
  margin-top: 30px;
  border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(226, 174, 74, 0.35);
  background: var(--night-mid);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.3) inset;
  transition: transform .2s, border-color .2s;
}
.featured:active { transform: scale(0.985); }
.featured:hover { border-color: var(--gold); }
.featured-img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: 50% 40%;
}
.featured-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10, 8, 25, 0) 34%, rgba(10, 8, 25, 0.6) 62%, rgba(10, 8, 25, 0.96) 100%);
}
.featured-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 18px; }
.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.featured-title { margin: 6px 0 2px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 28px; line-height: 1.1; }
.featured-sub { margin: 0; color: var(--cream-dim); font-size: 14px; }
.featured-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.play {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--gold); color: var(--night);
  font-weight: 700; font-size: 14px;
}
.play svg { width: 14px; height: 14px; fill: currentColor; }
.extra {
  font-size: 13px; font-weight: 700; color: var(--cream);
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--card-line); background: rgba(10, 8, 25, 0.55);
}
.extra:hover { border-color: var(--gold-soft); }

/* ---------- Sections ---------- */
.section { margin-top: 34px; }
.section-head { display: flex; align-items: center; gap: 10px; margin: 0 4px 12px; }
.section-symbol { width: 30px; height: 30px; flex: none; }
.section-symbol svg { width: 100%; height: 100%; display: block; }
.section-title {
  margin: 0;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream);
}
.section-rule { flex: 1; height: 1px; background: linear-gradient(to right, var(--gold-faint), transparent); }
.section-note { margin: -4px 4px 12px; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 16px; color: var(--gold); }

.links { display: grid; gap: 10px; }
.link {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 12px 14px 12px 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .2s, transform .15s, background .2s;
}
.link:hover, .link:focus-visible { border-color: var(--gold-soft); background: rgba(30, 24, 64, 0.72); }
.link:active { transform: scale(0.985); }
.link-icon {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(226, 174, 74, 0.1);
  color: var(--gold);
}
.link-icon svg { width: 20px; height: 20px; }
.link-icon svg.fill { fill: currentColor; }
.link-text { flex: 1; min-width: 0; }
.link-title { display: block; font-weight: 700; font-size: 16px; }
.link-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--cream-dim); }
.link-go { flex: none; width: 18px; height: 18px; color: var(--cream-dim); transition: color .2s, transform .2s; }
.link:hover .link-go { color: var(--gold); transform: translate(2px, -2px); }
.price { flex: none; font-weight: 700; color: var(--gold); font-size: 15px; }

/* Product card: a cover on the left. */
.link.product .cover {
  flex: none; width: 54px; height: 72px; border-radius: 8px;
  background: linear-gradient(160deg, var(--violet), var(--night));
  border: 1px solid var(--gold-faint);
  display: grid; place-items: center; overflow: hidden;
}
.link.product .cover img { width: 100%; height: 100%; object-fit: cover; }
.link.product .cover .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* Draft markers, only while DRAFT is on in links.js. */
.link.placeholder { border-style: dashed; border-color: rgba(226, 174, 74, 0.35); background: rgba(22, 18, 48, 0.35); cursor: default; }
.tag {
  position: absolute; top: -8px; right: 12px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: #3a2a0c; color: var(--gold); border: 1px solid var(--gold-soft);
}
.social .tag { top: -6px; right: -10px; padding: 1px 5px; font-size: 8px; }

/* ---------- Footer ---------- */
.foot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 44px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-dim);
}
.foot-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

.plain { line-height: 2; }

/* ---------- Entrance (app.js plays it; this is only the start state) ---------- */
.js:not(.shown) .reveal { opacity: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .lamp-dot { animation: none; }
  .js .reveal { opacity: 1 !important; }
}
