/* vfxr.cz. No inline styles anywhere: the CSP allows only this file (style-src 'self'). */

@font-face {
  font-family: Archivo;
  src: url("/assets/archivo-v1.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  --bg: #0a0717;
  --fg: #ffffff;
  --muted: #c4bfd6;
  --cyan: #62fff9;
  --violet: #5337ff;
  --pad: clamp(1.25rem, 4vw, 3rem);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  font: 400 100%/1.5 Archivo, "Helvetica Neue", Arial, sans-serif;
  font-stretch: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Header / headline block (takes the free space, sits at its bottom) / footer.
   The photo and the overlays are absolutely positioned, so they take no grid cell. */
body {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: var(--pad);
}

.stage,
.stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage {
  z-index: -2;
}

.stage img {
  object-fit: cover;
  object-position: center 40%;
}

/* Legibility overlays (spec section 3). The bottom gradient carries the headline
   and footer, the top one the header. */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgb(10 7 23 / 0.7) 0, transparent 8rem),
    linear-gradient(to top, var(--bg) 0%, rgb(10 7 23 / 0.85) 30%, transparent 65%);
}

/* Short viewports (a phone in landscape): the page scrolls and the text rises above
   the bottom gradient's reach, so an even layer darkens the whole photo. */
@media (max-height: 500px) {
  body::before {
    background:
      linear-gradient(to bottom, rgb(10 7 23 / 0.7) 0, transparent 8rem),
      linear-gradient(to top, var(--bg) 0%, rgb(10 7 23 / 0.85) 30%, transparent 65%),
      linear-gradient(rgb(10 7 23 / 0.55), rgb(10 7 23 / 0.55));
  }
}

a {
  color: var(--fg);
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: var(--violet);
}

a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: block;
}

.studio,
.back,
.foot {
  font-size: 0.875rem;
  font-stretch: 100%;
  font-weight: 400;
}

/* Headline block */

.hero {
  align-self: end;
  padding-block: 2rem clamp(1.5rem, 4vw, 3rem);
}

.label {
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-size: 0.8rem;
  font-stretch: 125%;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.back {
  display: inline-block;
  margin-top: 1.5rem;
}

/* Footer: one line from 600 px up, one item per line below. */

.foot {
  padding-top: 1rem;
  border-top: 1px solid var(--violet);
  color: var(--muted);
}

address {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  font-style: normal;
}

@media (max-width: 599.98px) {
  address {
    display: block;
  }

  .addr > span {
    display: block;
  }

  .addr > .sep {
    display: none;
  }

  address a {
    display: inline-block;
  }
}
