/* nemesisre.com – stylesheet of the link page.
   Colours, type and sizes come from tokens.css (brand repository). */

@font-face {
  font-family: Archivo;
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --nre-glow-ring: var(--nre-color-ash-400);
  --nre-glow: color-mix(in oklch, var(--nre-color-ash-700) 45%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root {
    --nre-glow-ring: var(--nre-color-ash-600);
    --nre-glow: color-mix(in oklch, var(--nre-color-ash-400) 35%, transparent);
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--nre-color-bg);
  color: var(--nre-color-text);
  font-family: var(--nre-font-family-sans);
  font-size: var(--nre-font-size-text);
  line-height: var(--nre-font-leading-text);
}

main {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 34rem;
  padding: var(--nre-space-12) var(--nre-space-4) var(--nre-space-8);
  text-align: center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("https://cdn.nemesisre.com/latest/logo/nre/svg/nre-phoenix.svg") center 60% / min(120vmin, 60rem) no-repeat;
  opacity: .07;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  body::before { background-image: url("https://cdn.nemesisre.com/latest/logo/nre/svg/nre-phoenix-dark.svg"); opacity: .09; }
}

h1 { margin: 0 0 var(--nre-space-6); font-size: 1rem; }
/* Stacked logo: mark (inline, so that it can be animated) above the wordmark.
   Sizes as in nre-lockup-stacked.svg: mark 43.4 % of the width, gap 6.8 %. */
.lockup { margin: 0 auto; width: min(18rem, 80%); }
.lockup .nre-mark { display: block; width: 43.4%; height: auto; margin: 0 auto; overflow: visible; }
.lockup__word { display: block; width: 97.3%; height: auto; margin: 6.8% auto 0; }
.nre-stem { fill: var(--nre-color-mark); }
.nre-red { fill: var(--nre-color-red); }

/* The feather glides into place once on load (as on nrecom.net, where the dot follows as well). */
@media (prefers-reduced-motion: no-preference) {
  .lockup .nre-red { animation: feather-in 700ms cubic-bezier(0.2, 0.9, 0.25, 1) 120ms both; }
  @keyframes feather-in { from { opacity: 0; transform: translate(-9px, -10px); } }
}

.bio {
  margin: 0;
  color: var(--nre-color-text);
  font-size: var(--nre-font-size-lead);
  font-weight: var(--nre-font-weight-strong);
  line-height: 1.35;
  /* Halo in the background colour, so that the phoenix does not disturb the text. */
  text-shadow: 0 0 .5em var(--nre-color-bg), 0 0 .5em var(--nre-color-bg), 0 0 1em var(--nre-color-bg);
}

.name {
  margin: var(--nre-space-4) 0 var(--nre-space-2);
  font-size: var(--nre-font-size-h3);
  font-stretch: 125%;
  font-weight: var(--nre-font-weight-title);
  text-shadow: 0 0 .5em var(--nre-color-bg), 0 0 1em var(--nre-color-bg);
}

.since {
  /* Pulled up to the name it belongs to, more room below towards the bio. */
  margin: calc(-1 * var(--nre-space-2) - .2em) 0 var(--nre-space-4);
  line-height: 1.2;
  color: var(--nre-color-muted);
  font-size: var(--nre-font-size-small);
  text-shadow: 0 0 .5em var(--nre-color-bg), 0 0 1em var(--nre-color-bg);
}

section { margin-top: var(--nre-space-6); }
h2 {
  margin: 0 0 var(--nre-space-2);
  font-size: var(--nre-font-size-small);
  font-stretch: 125%;
  font-weight: var(--nre-font-weight-title);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nre-color-muted);
  text-shadow: 0 0 .5em var(--nre-color-bg), 0 0 1em var(--nre-color-bg);
}

/* Two columns; `.wide` fills the whole row. */
ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--nre-space-3); }
li.wide { grid-column: 1 / -1; }
@media (max-width: 22rem) { ul { grid-template-columns: 1fr; } }

li a {
  position: relative;
  display: block;
  /* Text in the true centre of the button; the icon sits absolutely in front of it. */
  padding: calc(var(--nre-space-3) - 1px) 2.5rem;
  text-align: center;
  border: 1px solid transparent;
  /* Light ash glow instead of a border: the buttons keep their area and look the same size. */
  box-shadow: 0 0 0 1px var(--nre-glow-ring), 0 0 14px var(--nre-glow);
  /* Gradients (Instagram) should run to the edge, otherwise they repeat in the border. */
  background-origin: border-box;
  border-radius: var(--nre-radius-control);
  font-stretch: 112%;
  font-weight: var(--nre-font-weight-strong);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}

/* Colours, gradients and text colours per platform come from littlelink-brands.css. */
li a:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--nre-color-ash-400), 0 0 18px var(--nre-glow); }
li a:focus-visible, footer a:focus-visible { outline: 2px solid var(--nre-color-accent); outline-offset: 2px; }

li a .icon {
  position: absolute;
  left: var(--nre-space-3);
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  transform: translateY(-50%);
}

footer {
  padding: var(--nre-space-6) var(--nre-space-4) var(--nre-space-8);
  text-align: center;
  font-size: var(--nre-font-size-small);
  color: var(--nre-color-muted);
}
footer p { margin: 0; }
footer a { color: inherit; }
footer a:hover { color: var(--nre-color-accent); }

@media (prefers-reduced-motion: reduce) { li a { transition: none; } li a:hover { transform: none; } }

/* littlelink sets the X button's text black on black; made readable here. */
.button.button-x { color: #fff; }
