/* Clipnity — maintenance notice.
 * Same design language as the main site: monochrome paper, Montserrat as the
 * display face, Roboto as the body face, gel surfaces for anything you press.
 * Tokens and recipes mirror astro-site/src/styles/global.css (UI_ELEMENTS.md).
 * Self-hosted fonts only, no third-party requests (DSGVO).
 */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-scaffold: #ffffff;
  --color-paper: #f4f4f2;
  --color-ink: #0a0a0b;
  --color-hint: #737376;
  --color-body: rgba(0, 0, 0, 0.87);
  --font-roboto: "Roboto", system-ui, sans-serif;
  --font-montserrat: "Montserrat", system-ui, sans-serif;

  /* Spacing, desktop column of UI_ELEMENTS.md 1.1 */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 10px;
  --space-16: 12px;
  --space-24: 16px;
  --space-32: 24px;

  /* The spacing tokens double as radii, same as sizevars */
  --radius-gel: var(--space-24);
  --radius-panel: var(--space-32);
  --radius-pill: 100px;

  /* Gel base: alphaBlend(white 0.16, primary) and its gradient stops */
  --gel-base: #292929;
  --gel-top: #505050;
  --gel-bottom: #202020;
  --gel-rim: #5f5f5f;
  --gel-rim-hover: #747474;
  --gel-glow: 41, 41, 41;

  --surface-line: rgba(0, 0, 0, 0.08);
  --ease-out: cubic-bezier(0, 0, 0.58, 1);
  --ease-brand: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 599px) {
  :root {
    --space-12: 8px;
    --space-24: 12px;
    --space-32: 16px;
  }
}

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

body {
  position: relative;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-body);
  font-family: var(--font-roboto);
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--color-ink);
  color: #fbfbfa;
}

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

/* Ground: paper with two slow halos, the same restrained field the landing
   page uses instead of a flat fill. */
.field {
  position: fixed;
  z-index: 0;
  inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(42rem circle at 18% 8%, rgba(255, 255, 255, 0.95), transparent 62%),
    radial-gradient(38rem circle at 84% 82%, rgba(10, 10, 11, 0.07), transparent 66%),
    linear-gradient(180deg, #ececef 0%, #f6f6f7 42%, #ffffff 100%);
  animation: field-drift 34s var(--ease-brand) infinite alternate;
}

@keyframes field-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2.5%, 1.5%, 0) scale(1.06);
  }
}

/* A whisper of grain so the large paper area does not band on wide gamuts. */
.grain {
  position: fixed;
  z-index: 1;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/>\
<feColorMatrix type='saturate' values='0'/></filter>\
<rect width='140' height='140' filter='url(%23n)' opacity='0.055'/></svg>");
}

.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 5vw, 4rem);
}

/* glassCard, UI_ELEMENTS.md 7 */
.glass-card {
  border-radius: var(--radius-panel);
  border: 1px solid var(--surface-line);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.03);
}

.panel {
  width: min(100%, 41rem);
  padding: clamp(2rem, 5vw, 3.4rem) clamp(1.4rem, 5vw, 3.4rem);
  text-align: center;
  animation: rise 620ms var(--ease-brand) both;
}

.panel__brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.panel__brand img {
  width: clamp(9.5rem, 22vw, 12.5rem);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.14));
}

/* The title carries the whole gap under the logo, so the mark keeps its
   breathing room without a spacer element in between. */
.panel__title {
  margin: clamp(1.9rem, 4.5vw, 2.7rem) 0 0;
  color: var(--color-ink);
  font-family: var(--font-montserrat);
  font-size: clamp(1.9rem, 5.2vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
  animation: rise 620ms var(--ease-brand) 90ms both;
}

.panel__lead {
  max-width: 30rem;
  margin: clamp(0.9rem, 2vw, 1.15rem) auto 0;
  color: var(--color-hint);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.68;
  text-wrap: pretty;
  animation: rise 620ms var(--ease-brand) 160ms both;
}

/* Indeterminate on purpose: an honest "running", never a fake percentage. */
.meter {
  position: relative;
  width: min(100%, 19rem);
  height: 3px;
  overflow: hidden;
  margin: clamp(1.9rem, 4vw, 2.5rem) auto 0;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 11, 0.09);
  animation: rise 620ms var(--ease-brand) 230ms both;
}

.meter__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gel-base) 45%,
    var(--gel-base) 55%,
    transparent 100%
  );
  animation: sweep 2.6s var(--ease-brand) infinite;
}

@keyframes sweep {
  from {
    transform: translateX(-115%);
  }
  to {
    transform: translateX(305%);
  }
}

.meter__note {
  margin: 0.7rem 0 0;
  color: var(--color-hint);
  font-family: var(--font-montserrat);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: rise 620ms var(--ease-brand) 230ms both;
}

.panel__en {
  max-width: 27rem;
  margin: clamp(1.9rem, 4vw, 2.4rem) auto 0;
  padding-top: clamp(1.2rem, 3vw, 1.6rem);
  border-top: 1px solid var(--surface-line);
  color: rgba(0, 0, 0, 0.38);
  font-size: 0.78rem;
  line-height: 1.6;
  animation: rise 620ms var(--ease-brand) 300ms both;
}

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.25rem clamp(1.5rem, 4vw, 2.5rem);
  color: rgba(0, 0, 0, 0.32);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  animation: rise 620ms var(--ease-brand) 370ms both;
}

.foot__sep {
  opacity: 0.5;
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .field,
  .meter__bar {
    animation: none;
  }

  .panel,
  .panel__title,
  .panel__lead,
  .meter,
  .meter__note,
  .panel__en,
  .foot {
    animation: none;
  }

  .meter__bar {
    width: 100%;
    background: rgba(10, 10, 11, 0.35);
  }
}
