/* ---------- Theme tokens ---------- */
:root {
  --font: 'Sofia Pro', 'Mulish', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  /* light (default) */
  --bg: #ffffff;
  --text: #000000;
  --tagline: #1d1d1f;
  --card-bg: #f5f5f7;
  --row-hover: #ececef;
  --divider: #000000;
  --arrow: rgba(0, 0, 0, 0.5);
  --hero-base: #0f0f0f;
}

/* Follows the visitor's OS appearance setting automatically. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #ffffff;
    --tagline: #d6d6d6;
    --card-bg: #161617;
    --row-hover: #232325;
    --divider: #ffffff;
    --arrow: rgba(255, 255, 255, 0.5);
    --hero-base: #0f0f0f;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ---------- Hero / header ---------- */
.hero {
  position: relative;
  height: 250px;
  background: var(--hero-base);
  overflow: hidden;
}

.hero__sky {
  position: absolute;
  inset: 0;
  background: #57b6e4 url(assets/banner.png?v=3) center/cover no-repeat;
}

/* ---------- Page column ---------- */
.page {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- Logo badge ---------- */
.logo {
  width: 176px;
  height: 176px;
  margin-top: -88px;           /* overlap the hero */
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: background 0.3s ease;
}
.logo__inner {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(210deg, #272d31 0%, #14181a 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.logo__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Title + tagline ---------- */
.title {
  margin: 28px 0 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.tagline {
  margin: 16px 0 0;
  max-width: 380px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--tagline);
}
.accent {
  background: linear-gradient(90deg, #ff9100 0%, #ffba00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Links card ---------- */
.links {
  width: 100%;
  margin-top: 36px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background 0.3s ease;
}

.link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 8px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.18s ease;
}
.link:hover { background: var(--row-hover); }
.link:focus-visible {
  outline: 2px solid #48b1df;
  outline-offset: 2px;
}

.link__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.link__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.link__icon img,
.link__icon svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.link__label {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link__arrow {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--arrow);
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .hero { height: 200px; }
  .logo { width: 140px; height: 140px; margin-top: -70px; }
  .logo__inner { width: 118px; height: 118px; }
  .title { font-size: 26px; }
  .links { border-radius: 28px; }
}
