/* ==========================================================================
   RAYSCAPE BRAND FONTS
   Self-hosted Faktum (the rayscape.ai typeface). WOFF2, served from
   /wwwroot/fonts. "Faktum" is the text face; "Faktum Wide" is the display face
   used for the headline, echoing the wide RAYSCAPE wordmark.
   ========================================================================== */
@font-face {
  font-family: "Faktum";
  src: url("/fonts/faktum_regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Faktum";
  src: url("/fonts/faktum_bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Faktum Wide";
  src: url("/fonts/faktum_wide_thin.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Faktum Wide";
  src: url("/fonts/faktum_wide_medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   RAYSCAPE BRAND TOKENS
   Sampled from rayscape.ai and the Web Demo. This block is the whole rebrand
   surface — nothing below hardcodes a colour.
   ========================================================================== */
:root {
  --ground:   #3d4a53;   /* demo app background — slate */
  --ground-2: #333f48;   /* page base — the official slate from rayscape.svg */
  --surface:  #4a5862;   /* raised cards, as per demo tiles */
  --rule:     rgba(255,255,255,0.13);

  --text:     #dee4e7;   /* body on dark */
  --muted:    #96a4ac;   /* secondary */
  --steel:    #6e8ca0;   /* section labels, from the site */
  --accent:   #ff911a;   /* Rayscape orange */

  --ok:       #6fc39a;
  --warn:     #f5a02a;
  --stop:     #e2726a;

  --measure: 42rem;
  --step: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ground-2);
  /* the faint sweeping contour lines from the demo background */
  background-image:
    radial-gradient(120% 80% at 20% -10%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(90% 60% at 90% 0%, rgba(110,140,160,0.10) 0%, rgba(255,255,255,0) 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Faktum", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Masthead ---------------------------------------------------------- */
.masthead { border-bottom: 1px solid var(--rule); padding: 1.25rem 1.5rem; }
.masthead__inner {
  position: relative;
  max-width: var(--measure); margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.logo img { height: 22px; width: auto; display: block; }
/* The wordmark is inlined (see _Logo.cshtml) with fill="currentColor", so it
   takes its colour from .logo. An <img> could not do this — it would stay
   #333F48 and vanish into the background. */
.logo__mark { height: 20px; width: auto; display: block; }
.masthead__user {
  position: absolute; right: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem; color: var(--muted);
}

.shell { max-width: var(--measure); margin: 0 auto; padding: 3rem 1.5rem 5rem; }

/* ---- The page ---------------------------------------------------------
   Logo, one line, one button. Centred, vertically settled. Nothing else.
   ---------------------------------------------------------------------- */
.stage {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.75rem;
}

h1 {
  font-family: "Faktum Wide", "Faktum", ui-sans-serif, system-ui, sans-serif;
  font-weight: 200;
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
  color: #fff;
  max-width: 24ch;
}

.msg {
  margin: -0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 40ch;
  line-height: 1.6;
}

form { margin: 0; }

.btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 24px;
  white-space: nowrap;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.4em;
  text-align: right;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #333f48;
  background: var(--accent);
  border: 1px solid var(--accent); border-radius: 0 8px;
  padding: 0.9rem 2.5rem; cursor: pointer; text-decoration: none;
  transition: 0.4s;
}
.btn:hover { color: #fff; }
.btn[disabled] { opacity: 0.45; cursor: progress; }

/* The brand's slash device, as used on every CTA on rayscape.ai */
.btn::before { content: "\\\\"; opacity: 0.55; }

.btn--quiet {
  background: transparent; color: var(--accent); border-color: var(--rule);
}
.btn--quiet:hover { border-color: var(--accent); opacity: 1; }

.trace {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem; color: var(--muted);
  margin: 0; word-break: break-all;
}

@media (max-width: 34rem) {
  .shell { padding-top: 2rem; }
  .stage { min-height: 46vh; gap: 1.5rem; }
  .masthead__user { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
