/* ============================================================
   Kiera Vane — link in bio
   Single stylesheet. No build step, no imports, no web fonts.

   BADGE TOGGLE lives in index.html: <html data-badge="on"> / "off".
   ACCENT COLOR: change --accent (and --accent-soft) below. One warm
   colour, used sparingly: primary button, badge, focus ring.
   ============================================================ */

:root {
  --bg:          #0a0a0b;
  --bg-glow:     #15100c;   /* faint warm bloom behind the avatar */
  --surface:     #141416;   /* secondary button face */
  --surface-hi:  #1b1b1e;   /* secondary button, hover */
  --border:      #29292e;

  --accent:      #ff8a4c;   /* the one warm accent */
  --accent-soft: #ffb27f;
  --on-accent:   #16110d;   /* text sitting on the accent */

  --text:        #f5f3f0;
  --text-dim:    #a9a5a0;   /* 6.7:1 on --bg — passes AA */
  --text-faint:  #918d88;   /* footer only */

  --radius:      16px;
  --btn-h:       64px;      /* tap target, never below 56px */
  --maxw:        420px;

  --ease:        cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));

  background: var(--bg);
  /* Warm bloom, top-centre. Pure CSS, costs nothing. */
  background-image: radial-gradient(90% 55% at 50% -8%, var(--bg-glow) 0%, transparent 70%);
  background-repeat: no-repeat;

  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: var(--maxw);
  text-align: center;
}

/* ---------- identity ---------- */

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
  background: var(--surface);
  border: 2px solid rgba(255, 138, 76, .28);
  box-shadow: 0 0 0 6px rgba(255, 138, 76, .05);
}

.name {
  margin: 0;
  font-size: 1.4rem;      /* 22.4px */
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
}

.handle {
  margin: 3px 0 0;
  font-size: .875rem;
  font-weight: 500;
  color: var(--accent-soft);
  letter-spacing: .01em;
}

.tagline {
  margin: 10px auto 22px;
  max-width: 30ch;
  font-size: .9375rem;
  color: var(--text-dim);
  text-wrap: balance;
}

/* ---------- buttons ---------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  padding: 10px 16px;

  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;

  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s var(--ease),
              border-color .18s var(--ease),
              transform .12s var(--ease),
              box-shadow .18s var(--ease);
}

.btn-text { display: block; }

.btn-label {
  display: block;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.btn-sub {
  display: block;
  margin-top: 2px;
  font-size: .8125rem;
  font-weight: 450;
  color: var(--text-dim);
  line-height: 1.25;
}

/* --- first button: the one the eye should land on --- */
.btn-primary {
  background: linear-gradient(160deg, var(--accent-soft) 0%, var(--accent) 62%);
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 6px 22px -8px rgba(255, 138, 76, .55);
}

.btn-primary .btn-label { font-weight: 750; }

.btn-primary .btn-sub {
  color: var(--on-accent);
  opacity: .72;
  font-weight: 500;
}

/* --- states --- */
.btn:hover {
  background-color: var(--surface-hi);
  border-color: #38383f;
}

.btn-primary:hover {
  background-color: transparent;      /* gradient stays; nudge the glow instead */
  border-color: transparent;
  box-shadow: 0 8px 26px -8px rgba(255, 138, 76, .7);
}

.btn:active {
  transform: scale(.978);              /* soft press */
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary:focus-visible { outline-color: var(--text); }

/* ---------- badge ---------- */

.badge {
  position: absolute;
  top: -9px;
  right: 12px;

  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 76, .35);
  background: #16110d;

  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent-soft);
  white-space: nowrap;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1;  transform: scale(1);   }
  50%      { opacity: .45; transform: scale(.82); }
}

/* The single switch: <html data-badge="off"> hides it everywhere. */
html[data-badge="off"] .badge { display: none; }

/* ---------- footer ---------- */

.foot {
  margin-top: 22px;
  font-size: .75rem;
  color: var(--text-faint);
}

.foot p { margin: 0; }

/* ---------- a touch more room on bigger screens ---------- */

@media (min-height: 720px) {
  .avatar     { width: 104px; height: 104px; }
  .name       { font-size: 1.5rem; }
  .tagline    { margin-bottom: 26px; }
  :root       { --btn-h: 68px; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .btn        { transition: none; }
  .btn:active { transform: none; }
  .badge .dot { animation: none; }
}
