/* The Afterlast – presentation page */

@font-face {
  font-family: "IM Fell English";
  src: url("fonts/im-fell-english.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IM Fell English";
  src: url("fonts/im-fell-english-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Narrow";
  src: url("fonts/archivo-narrow-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* farby z coveru: nocna obloha, mesacne striebro, starozlate vlajky */
  --night: #06080f;
  --nave: #0d1424;
  --moon: #dce1e9;
  --ash: #8d96a6;
  --gold: #c9a23a;
  --royal: #3557b7;

  --serif: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --narrow: "Archivo Narrow", "Arial Narrow", system-ui, sans-serif;

  --gutter: clamp(1rem, 5vw, 4.5rem);
  --measure: 68rem;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--moon);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

/* ---------- hero: cover art + kovove logo ---------- */

.hero {
  position: relative;
  min-height: max(34rem, 100svh);
  overflow: hidden;
  isolation: isolate;
}

.hero__art,
.hero__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__art img {
  object-fit: cover;
  object-position: 50% 58%;
}

/* dolny prechod do pozadia stranky */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  background: linear-gradient(to bottom, rgb(6 8 15 / 0), var(--night));
  z-index: 1;
}

.hero__logo {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 4svh;
  translate: -50% 0;
  margin: 0;
  width: min(80vw, 46svh);
  filter: drop-shadow(0 0 2.5rem rgb(6 8 15 / 0.9));
}
.hero__logo img { width: 100%; }

/* veta medzi logom a hlavou postavy; zacina tesne pod logom (vyska loga = 0.887 * sirka) */
.hero__claim {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(4svh + min(80vw, 46svh) * 0.887 + 2.5svh);
  translate: -50% 0;
  width: min(92vw, 60rem);
  margin: 0;
  text-align: center;
  font-size: clamp(1.4rem, 4.4svh, 2.8rem);
  line-height: 1.15;
  color: var(--moon);
  filter: drop-shadow(0 0 0.9rem rgb(6 8 15 / 0.95)) drop-shadow(0 0 0.2rem rgb(6 8 15 / 0.9));
}
.hero__claim span {
  display: block;
  text-wrap: balance;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__claim span {
    /* kovovy prechod po riadkoch ako logo */
    background: linear-gradient(180deg, #ffffff 0%, #dde2ea 34%, #8e97a6 52%, #f4f6f9 60%, #b9c1cd 100%) 0 0 / 100% 1.15em repeat-y;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* jedno zablysnutie mesacneho svetla cez logo pri nacitani */
.hero__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 38%, rgb(255 255 255 / 0.85) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 130% 0;
  -webkit-mask: url("img/logo-white.svg") center / contain no-repeat;
  mask: url("img/logo-white.svg") center / contain no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__logo img {
    animation: emerge 1.8s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero__sheen {
    animation: sheen 2.4s cubic-bezier(.4, 0, .2, 1) 1.1s 1 both;
  }
  .hero__claim {
    animation: claim-in 1.6s ease 1.6s both;
  }
}
@keyframes claim-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes emerge {
  from { opacity: 0; filter: blur(6px) brightness(.4); }
  to   { opacity: 1; filter: none; }
}
@keyframes sheen {
  0%   { opacity: 1; background-position: 130% 0; }
  85%  { opacity: 1; }
  100% { opacity: 0; background-position: -30% 0; }
}

/* ---------- obsah ---------- */

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.statement {
  padding: clamp(3rem, 9vw, 7rem) 0 clamp(4rem, 10vw, 8rem);
}
.statement p {
  margin: 0;
  font-size: clamp(2.5rem, 7.2vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--ash);
}

/* zoznam platforiem: velke mena, adresa vpravo */
.follow { padding-bottom: clamp(4rem, 10vw, 8rem); }

.follow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgb(220 225 233 / 0.14);
}
.follow__list li { border-top: 1px solid rgb(220 225 233 / 0.14); }

.follow__list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: clamp(0.9rem, 2vw, 1.4rem) 0;
  text-decoration: none;
}
.follow__name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  transition: color .25s ease;
}
/* znacka platformy pred menom, velkost podla verzaliek mena */
.follow__icon {
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.38em;
  vertical-align: 0;
  fill: currentColor;
  color: var(--ash);
  transition: color .25s ease;
}
.follow__list a:hover .follow__icon,
.follow__list a:focus-visible .follow__icon { color: var(--gold); }
.follow__handle {
  font-family: var(--narrow);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ash);
  transition: color .25s ease;
}
.follow__list a:hover .follow__name,
.follow__list a:focus-visible .follow__name { color: var(--gold); }
.follow__list a:hover .follow__handle,
.follow__list a:focus-visible .follow__handle { color: var(--moon); }

.about {
  max-width: 36em;
  padding-bottom: clamp(4rem, 10vw, 7rem);
}
.about p { margin: 0 0 1.1em; }
.about__news {
  padding-left: 1rem;
  border-left: 2px solid var(--royal);
  color: var(--ash);
}

.footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  font-family: var(--narrow);
  font-size: 0.9rem;
  color: var(--ash);
}
.footer p { margin: 0; }

@media (max-width: 40rem) {
  body { font-size: 1.15rem; }
  .hero__art img { object-position: 50% 60%; }
}

@media (max-width: 40rem) {
  .follow__list a {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- liska so suhlasom a odkaz v paticke ---------- */

.footer__link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ash);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer__link:hover { color: var(--moon); }
.footer p + p { margin-top: 0.5rem; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.consent a {
  color: var(--moon);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.consent a:hover { color: var(--gold); }

/* ---------- podstranka (privacy) ---------- */

.page-head { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.page-head__home {
  display: block;
  width: clamp(7rem, 14vw, 9.5rem);
}

.legal {
  max-width: 38em;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  font-size: 1.1rem;
  line-height: 1.65;
}
.legal h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
}
.legal__updated {
  margin: 0.75rem 0 2.5rem;
  font-family: var(--narrow);
  font-size: 0.95rem;
  color: var(--ash);
}
.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
}
.legal p { margin: 0 0 1em; }
.legal a { text-underline-offset: 3px; }
.legal a:hover { color: var(--gold); }
.legal code {
  font-family: var(--narrow);
  font-size: 0.95em;
  color: var(--moon);
}
.legal__inline {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.legal__inline:hover { color: var(--gold); }

.consent {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 1rem;
  width: min(34rem, calc(100% - 2rem));
  transform: translateX(-50%);
  padding: 1.1rem 1.25rem;
  background: var(--nave);
  border: 1px solid rgb(220 225 233 / 0.16);
  font-family: var(--narrow);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--moon);
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 0.5);
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 0.9rem; }
.consent__actions { display: flex; gap: 0.75rem; }
.consent button {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--moon);
  background: transparent;
  color: var(--moon);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.consent button:hover { border-color: var(--gold); color: var(--gold); }


