/* amin.is — minimal dark link page. One local script (the starfield), no
   external assets. */

:root {
  --bg:        #0d0f12;
  --surface:   #14181d;
  --surface-2: #1b2027;
  --border:    #262c34;
  --text:      #e8eaed;
  --muted:     #8b939c;
  --accent:    #21c2f8;  /* certomodo.io brand blue */
  --radius:    12px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Sprite holder — defines symbols without rendering anything. */
.sprite { display: none; }

/* Starfield sits behind the content but above the body background, which
   propagates to the viewport and so paints below everything. starfield.js
   sets position/size inline; this only owns the stacking. */
#starfield {
  z-index: 0;
  opacity: .85;
}

/* Translucent so the stars read through the card without washing out text. */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 30rem;
}

/* ---- Intro ---- */

.intro { text-align: center; margin-bottom: 2rem; }

.avatar {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1rem;
  display: block;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  object-fit: cover;
}

h1 {
  margin: 0 0 .35rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
}

/* ---- Links ---- */

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.link {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: inherit;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.link:hover,
.link:focus-visible {
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

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

.link:active { transform: translateY(0); }

.icon, .chev {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon { width: 1.25rem; height: 1.25rem; color: var(--accent); }

.chev {
  width: 1.125rem;
  height: 1.125rem;
  margin-left: auto;
  color: var(--muted);
  transition: transform .15s ease, color .15s ease;
}

.link:hover .chev,
.link:focus-visible .chev {
  color: var(--accent);
  transform: translateX(2px);
}

.text { display: flex; flex-direction: column; min-width: 0; }

.label { font-weight: 500; }

.sub {
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.4;
}

/* ---- Footer ---- */

.foot {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: .8125rem;
}

.foot p { margin: 0; }

/* ---- Preferences ---- */

@media (prefers-reduced-motion: reduce) {
  /* starfield.js renders a static field here; no motion to suppress in CSS. */
  * { transition: none !important; }
  .link:hover, .link:focus-visible { transform: none; }
  .link:hover .chev, .link:focus-visible .chev { transform: none; }
}

@media (max-width: 26rem) {
  body { padding: 2rem 1rem; }
  .sub { font-size: .78125rem; }
}
