/* Monash Automation brand guidelines v1.0:
   palette  - Automation Blue #1393FF (accent), Automation Onyx #231F20, Automation Platinum #F5F5F7
   type     - Blinker (primary, Regular/Bold, self-hosted), Source Sans Pro (when Blinker is unavailable),
              Glacial Indifference (short highlighted text and captions only; never titles or paragraphs)
   themes   - follows the visitor's system setting. Dark matches tickets.monashautomation.com,
              light matches directory.monashautomation.com. */

@font-face {
  font-family: "Blinker";
  font-weight: 400;
  font-display: swap;
  src: local("Blinker Regular"), local("Blinker-Regular"), url("/assets/fonts/Blinker-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Blinker";
  font-weight: 700;
  font-display: swap;
  src: local("Blinker Bold"), local("Blinker-Bold"), url("/assets/fonts/Blinker-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Glacial Indifference";
  font-weight: 400;
  font-display: swap;
  src: local("Glacial Indifference"), local("GlacialIndifference-Regular"),
       url("/assets/fonts/GlacialIndifference-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Glacial Indifference";
  font-weight: 700;
  font-display: swap;
  src: local("Glacial Indifference Bold"), local("GlacialIndifference-Bold"),
       url("/assets/fonts/GlacialIndifference-Bold.woff2") format("woff2");
}

:root {
  --blue: #1393ff;
  --onyx: #231f20;
  --platinum: #f5f5f7;

  /* dark (default) */
  --bg: #0a0a0c;
  --bg-raised: #131316;      /* cards */
  --bg-input: #0e0e11;       /* fields */
  --bg-hover: #1b1b1f;       /* secondary buttons, row hover */
  --line: #232327;
  --line-strong: #34343b;
  --text: #eeeef0;
  --muted: #9b9ba5;
  --accent: var(--blue);
  --link: #3da5ff;
  --danger: #ff6b70;
  --ok: #2fd9b0;
  --glow: radial-gradient(60rem 26rem at 50% -10rem, rgba(19, 147, 255, 0.14), transparent 70%);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  --shadow-page: 0 4px 24px rgba(0, 0, 0, 0.5);

  --radius: 6px;
  --radius-lg: 12px;
  --font: Blinker, "Source Sans Pro", "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-caption: "Glacial Indifference", Blinker, "Source Sans Pro", "Source Sans 3", system-ui, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f7;
    --bg-raised: #ffffff;
    --bg-input: #ffffff;
    --bg-hover: #f0f0f4;
    --line: #e2e2e8;
    --line-strong: #c9c9d2;
    --text: #231f20;
    --muted: #666670;
    --link: #0b66c2;
    --danger: #d6303a;
    --ok: #05876b;
    --glow: radial-gradient(60rem 22rem at 50% -10rem, rgba(19, 147, 255, 0.08), transparent 70%);
    --shadow: 0 8px 24px -8px rgba(35, 31, 32, 0.15);
    --shadow-page: 0 4px 24px rgba(35, 31, 32, 0.18);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--glow) no-repeat top center / 100% 32rem, var(--bg);
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}

h1, h2, h3, strong { font-weight: 700; }

a { color: var(--link); }

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

/* Short highlighted text and captions */
.caption { font-family: var(--font-caption); }
.eyebrow { font-family: var(--font-caption); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

button, .btn, input, select, textarea { font-family: var(--font); }

button, .btn {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-hover);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.45rem 0.95rem;
  min-height: 2.5rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: border-color 0.12s, background 0.12s;
}
button:hover:not(:disabled), .btn:hover { border-color: var(--accent); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
/* Onyx on Automation Blue reads at 6:1; white would only be 3.2:1. */
button.primary, .btn.primary { background: var(--blue); color: var(--onyx); border-color: var(--blue); }
button.primary:hover:not(:disabled), .btn.primary:hover { background: #3aa6ff; border-color: #3aa6ff; }
button.danger { color: var(--danger); }
button.ghost { background: transparent; border-color: transparent; font-weight: 400; }
button.ghost:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--line-strong); }

input[type=text], input[type=url], input[type=search], select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  min-height: 2.5rem;
  width: 100%;
}
input::placeholder { color: var(--muted); opacity: 0.8; }
input[type=text]:focus-visible, input[type=url]:focus-visible, input[type=search]:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-caption); font-size: 0.78rem; line-height: 1;
  padding: 0.28rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap;
}
.pill.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.pill.off { color: var(--muted); }
.pill.blue { color: var(--link); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* The team mark used as an icon: one shape follows the text colour, the other is Automation Blue
   (on a blue, highlighted button it follows the text colour too, so it never vanishes). */
svg .ma-accent { fill: var(--blue); }
.featured svg .ma-accent { fill: currentColor; }

.brand { display: inline-flex; line-height: 0; border-radius: 4px; }
.brand img { display: block; width: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
