/* The page a visitor outside the office network is redirected to by the Vercel WAF rule
   "Alleen kantoor". It copies the access screens of bellance-platform (access.css and the
   tokens in globals.css, 13 October 2026); keep the values in step when those change.
   No JavaScript and no outside requests: the fonts are served from this project.

   Fonts: Instrument Sans and Bricolage Grotesque, both under the SIL Open Font License
   1.1, latin subset as built by next/font in bellance-platform. */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --color-ink: #0E3B45;
  --color-accent: #FF7A5C;
  --color-surface: #F7F3EE;
  --color-muted: #5C7378;
  --color-warning: #7A5410;
  --color-warning-bg: #FBEFD9;
  --mark-accent-opacity: 0.55;
  --radius-pill: 999px;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
}

/* Dark mode 'Grafiet', as in the app. The app keeps the choice per browser on its own
   domain, which this page cannot read, so it follows the system setting. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-ink: #ECEDEE;
    --color-surface: #111315;
    --color-muted: #9AA3A8;
    --color-warning: #F2C46D;
    --color-warning-bg: rgba(242, 196, 109, 0.14);
    --mark-accent-opacity: 0.3;
  }
}

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

html,
body {
  margin: 0;
  background: var(--color-surface);
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.access {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 13px;
  line-height: 1.4;
}

/* Logomark: three bars, the top one in accent. */
.logomark {
  position: relative;
  display: block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.logomark-bar {
  position: absolute;
  left: 0.12em;
  top: 0.39em;
  width: 0.76em;
  height: 0.22em;
  border-radius: 0.06em;
  background: currentColor;
}

.logomark-bar--accent {
  left: 0.42em;
  top: 0.1em;
  width: 0.46em;
  background: var(--color-accent);
}

.logomark-bar--short {
  top: 0.68em;
  width: 0.5em;
}

/* The mark large and faint in the bottom right. */
.access-background {
  position: absolute;
  left: max(calc(50% + 240px), calc(100% - 680px));
  bottom: -140px;
  font-size: 620px;
  color: var(--color-ink);
  pointer-events: none;
}

.access-background .logomark-bar {
  opacity: 0.08;
}

.access-background .logomark-bar--accent {
  opacity: var(--mark-accent-opacity);
}

.access-head {
  position: relative;
  display: flex;
  align-items: center;
  padding: 32px 40px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.brand .logomark {
  font-size: 26px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.access-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 64px;
}

.access-block {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.access-status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--color-warning-bg);
  color: var(--color-warning);
  font-size: 12.5px;
  font-weight: 600;
}

.access-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-warning);
}

.access-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.access-title-head {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.access-title-sub {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .access-background {
    display: none;
  }
}

@media (max-width: 480px) {
  .access-head {
    padding: 24px 16px 0;
  }

  .access-main {
    padding: 32px 16px 48px;
  }
}
