/* The client as DSSBR (Data Science Summit Brasil) wears it, at
   dssbr.maragato.ca, with their agreement.

   Loaded after styles.css by the deploy that builds that copy of the site
   (scripts/skin/skin.mjs); the main site never loads it. Everything here is a
   recolouring of rules styles.css already has, so a page that works on one
   site works on the other: black ink, the mint and violet of their artwork,
   Unbounded for headings and Inter for the rest, served from this origin
   because the page's CSP allows fonts from nowhere else. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin-v20.woff2') format('woff2');
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/unbounded-latin-v12.woff2') format('woff2');
}

/* Their palette, under the names styles.css already uses: navy is the colour
   of headings and teal the colour of the thing to press. */
:root {
  --ink: #000000;
  --ink2: #070709;
  --card: #0b0b12;
  --mint: #00ffd4;
  --violet: #7c3aed;
  --violet-neon: #c084fc;
  --peach: #ffbc7d;

  --navy: #f4f4f8;
  --teal: var(--mint);
  --gold: var(--peach);
  --slate: #a3a3b8;
  --paper: var(--ink);
  --line: rgba(255, 255, 255, 0.14);
  --caramel: var(--ink);

  color-scheme: dark;
}

body {
  color: #e8e8f0;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* The faint grid behind their hero, without the image it is drawn from. */
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(60rem 30rem at 85% -10%, rgba(124, 58, 237, 0.28), transparent 70%),
    var(--ink);
  background-attachment: fixed;
}

h1, h2, h3, .hero h2 { font-family: 'Unbounded', 'Inter', sans-serif; letter-spacing: -0.01em; }

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

/* --- masthead: their mark first, ours after it ------------------------------ */

.masthead {
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--line);
  justify-content: flex-start;
  backdrop-filter: blur(8px);
}

/* The seal is The Gentleman Agreement's own mark; here the summit's stands in
   its place and our name follows it as the service behind the page. */
.masthead .brand-slot { display: none; }
.partner-mark { height: 56px; width: auto; flex: 0 0 auto; display: block; }

.masthead h1 {
  padding-left: 0.9rem;
  border-left: 1px solid var(--line);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tagline { color: var(--slate); font-size: 0.88rem; }

.language-choice img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.language-choice:hover { border-color: var(--mint); }
.language-choice:focus-visible { outline-color: var(--mint); }
.language-choice[aria-pressed="true"] { border-color: var(--mint); }

/* --- the menu: their uppercase, spaced bar ---------------------------------- */

.site-nav {
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--line);
  gap: 0.25rem 1.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-nav a { color: #d4d4de; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--mint); text-decoration: none; box-shadow: 0 2px 0 var(--mint); }
.site-nav .nav-cta { color: var(--mint); }

/* --- cards ----------------------------------------------------------------- */

.step, .pitch, .figure, .chart, .ops-table, .translate-entry, .logomark-choice {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)), var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* The bracket corners of their logo, as the accent on the card in front. */
.step:not([hidden]), .pitch { box-shadow: inset 0 1px 0 rgba(0, 255, 212, 0.35); }

.consent, .returning-first, .banner {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.banner.pending { background: rgba(255, 188, 125, 0.08); }
.banner.approved { background: rgba(0, 255, 212, 0.07); }
.banner.rejected { background: rgba(255, 92, 122, 0.08); color: #ff8fa3; }

.new-key { background: #000; color: var(--mint); border: 1px solid var(--line); }

/* --- buttons: the gradient they sell tickets with ---------------------------- */

button, .button-link { border-radius: 8px; font-weight: 600; letter-spacing: 0.02em; }

.primary, .button-link.primary {
  background: linear-gradient(90deg, var(--mint), var(--violet-neon));
  color: #05050a;
  border-color: transparent;
}

.primary:hover:not(:disabled), .button-link.primary:hover { filter: brightness(1.08); box-shadow: 0 0 24px rgba(0, 255, 212, 0.25); }

.secondary, .button-link.secondary, .tab, .page-menu a {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.secondary:hover:not(:disabled), .button-link.secondary:hover { border-color: #fff; }

.tab.chosen, .page-menu a[aria-current="page"] { border-color: var(--mint); color: var(--mint); }

/* --- fields ---------------------------------------------------------------- */

.field input, .field textarea, .guardian select, select, input[type="text"], input[type="email"], input[type="password"] {
  background: #050508;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.field input:focus, .field textarea:focus, select:focus {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
  border-color: transparent;
}

input[type="checkbox"] { accent-color: var(--mint); }

/* --- states ---------------------------------------------------------------- */

.status.error { color: #ff8fa3; }

.badge.signed, .badge.approved { background: rgba(0, 255, 212, 0.12); color: var(--mint); }
.badge.waiting, .badge.pending { background: rgba(255, 188, 125, 0.12); color: var(--peach); }
.badge.rejected, .badge.blocked { background: rgba(255, 92, 122, 0.12); color: #ff8fa3; }
.badge.closed { background: rgba(255, 255, 255, 0.08); color: var(--slate); }

.figure.warn, .translate-entry.stale { background: rgba(255, 188, 125, 0.06); }

.hash { color: var(--violet-neon); }

footer { color: var(--slate); }
footer a { color: #d4d4de; }

/* A phone stacks the masthead, so the rule between their mark and our name
   would divide nothing. */
@media (max-width: 30rem) {
  .partner-mark { height: 44px; }
  .masthead h1 { font-size: 0.85rem; padding-left: 0; border-left: 0; }
}
