/* mssgs for work — the mssgs website's own look (fancy-v2-light), carried
   across as one standalone sheet.

   The tokens, the aurora, the glass pill and glass tile, the button and the
   type scale are lifted from mssgs-website/web-static/style/fancy.css and
   fancy-home.css, trimmed to what a one-page placeholder uses. Same cream
   ground, same two typefaces, same primitives — so this page reads as the
   same product as mss.gs, not as a lookalike.

   ONE THING IS DELIBERATELY DIFFERENT: the accent. mss.gs is forest green;
   the work edition is blue, and the mark is blue with it. The scale below is
   the fancy.css green scale moved to a blue hue at the same lightness steps,
   so every tint, shadow and hairline keeps the weight it had — the page is
   the mssgs page, in the work edition's colour.

   Light theme only, exactly as the mssgs site: it commits to one look and
   paints its own background rather than following the viewer's setting. */

/* ---- Typefaces: the same two files the mssgs site self-hosts ---- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-optical-sizing: auto;
  font-display: swap;
  src: url('/web/fonts/bricolage/BricolageGrotesque-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-optical-sizing: auto;
  font-display: swap;
  src: url('/web/fonts/bricolage/BricolageGrotesque-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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/web/fonts/hanken/HankenGrotesk-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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/web/fonts/hanken/HankenGrotesk-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;
}
/* Metric-matched fallbacks, so the page does not jump when the real faces
   land. The size-adjust numbers come from the mssgs site's own font CSS. */
@font-face {
  font-family: 'Bricolage Fallback';
  src: local('Arial');
  size-adjust: 112.82%;
  ascent-override: 82.43%;
  descent-override: 23.93%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Hanken Fallback';
  src: local('Arial');
  size-adjust: 123.47%;
  ascent-override: 80.99%;
  descent-override: 24.54%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;

  /* The work edition's blue, at fancy.css's green lightness steps */
  --blue-500: #275486;
  --blue-600: #1f426b;
  --blue-700: #183658;
  /* The same colour as an rgb triple, for the tints and glows below —
     custom properties cannot be interpolated into rgba() without it. */
  --blue-rgb: 39, 84, 134;

  --brand: var(--blue-500);
  --brand-hover: var(--blue-600);
  --brand-contrast: #f7f3e8;

  /* Light-warm surface and ink tokens */
  /* fancy.css's ink is a green-black (#20301f) — beside a blue accent it
     reads as a second hue rather than as ink, which is very visible in the
     two-line h1. Same lightness, rotated cool. */
  --w-ink: #1e2732;
  --w-ink2: #33402f;
  --w-mut: #5f6b57;
  --w-mut2: #7d8672;
  --w-nav: rgba(255, 253, 244, .5);
  --w-line: rgba(50, 55, 30, .1);
  --w-cream: #ebe4d3;

  --shadow-glow: 0 4px 20px rgba(31, 66, 107, .22);
  --shadow-lg: 0 10px 30px rgba(31, 35, 33, .07);

  --font-display: 'Bricolage Grotesque', 'Bricolage Fallback', 'Hanken Grotesk', sans-serif;
  --font-sans: 'Hanken Grotesk', 'Hanken Fallback', -apple-system, 'Segoe UI', sans-serif;

  --ease-standard: cubic-bezier(.25, .1, .25, 1);
  --dur-base: 200ms;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--w-cream);
  color: var(--w-ink2);
  font: 400 16px/1.6 var(--font-sans);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-700); }
a:hover { color: var(--w-ink); }
::selection { background: rgba(var(--blue-rgb), .22); }

.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* ---- Aurora: two slow blurred washes behind everything, as on mss.gs ---- */
.aurora { position: fixed; inset: 0; z-index: -2; background: var(--w-cream); overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(100px); display: block; }
.au1 {
  width: 980px; height: 980px; left: 50%; top: -520px; margin-left: -490px;
  background: radial-gradient(circle, rgba(var(--blue-rgb), .2), transparent 62%);
  opacity: .55;
  animation: auDrift 40s var(--ease-standard) infinite alternate;
}
.au2 {
  width: 760px; height: 760px; left: -340px; top: 8%;
  background: radial-gradient(circle, rgba(176, 141, 87, .18), transparent 62%);
  opacity: .45;
}
@keyframes auDrift { to { transform: translate(40px, 60px) scale(1.05); } }
/* A blurred blob drifting for ever is decoration; hold it still for anyone
   who asked the system not to animate. */
@media (prefers-reduced-motion: reduce) {
  .au1 { animation: none; }
  * { transition: none !important; }
}

/* ---- Glass primitives (fancy.css) ---- */
.glass-pill {
  position: relative;
  background: var(--w-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 980px;
  isolation: isolate;
  box-shadow: rgba(31, 35, 33, .08) 0 4px 20px;
}
.glass-tile {
  position: relative;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 28px;
  isolation: isolate;
  text-align: left;
  box-shadow: var(--shadow-lg);
}
/* The hairline is a conic gradient masked to the border box: it catches the
   light on the top-left and bottom-right corners the way the app's panels do,
   which a flat 1px border cannot. */
.glass-pill::before, .glass-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 135deg at 50% 50%,
    rgba(0, 0, 0, .14) 0deg, rgba(0, 0, 0, .05) 60deg, rgba(0, 0, 0, .02) 120deg,
    rgba(0, 0, 0, .02) 240deg, rgba(0, 0, 0, .05) 300deg, rgba(0, 0, 0, .14) 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

/* ---- The brand pill, standing in for the site's nav ---- */
.topbar { padding: 28px 0 0; }
.topbar .container { display: flex; justify-content: center; }
.brandpill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px 9px 14px;
}
.brandpill .mark { width: 22px; height: 28px; display: block; }
.brandname {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
  color: var(--w-ink);
}
.brandname b { font-weight: 700; color: var(--brand); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 980px;
  background: rgba(var(--blue-rgb), .12);
  box-shadow: inset 0 0 0 1px rgba(var(--blue-rgb), .35);
  color: var(--w-ink);
  font-size: 13px;
  font-weight: 600;
}
.chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .18);
}

/* ---- Hero ---- */
main { flex: 1; }
.hero { padding: 96px 24px 8px; text-align: center; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  font-size: clamp(48px, 8vw, 88px);
  font-stretch: 96%;
  margin: 0 0 20px;
  color: var(--w-ink);
}
.hero h1 span { display: block; }
.hero h1 .brandline { color: var(--brand); }
.lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--w-mut);
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero .mark-lg {
  width: 54px; height: 69px;
  display: block;
  margin: 0 auto 26px;
}

/* ---- The three tiles ---- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 48px 24px 0;
}
.tiles h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--w-ink);
}
.tiles p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--w-mut); }
.tiles .tile-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(var(--blue-rgb), .12);
  color: var(--blue-600);
}
.tiles .tile-mark svg { width: 18px; height: 18px; display: block; }
@media (max-width: 820px) {
  .tiles { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
}

/* ---- The closing line ---- */
.closing { padding: 56px 24px 0; text-align: center; }
.closing p { margin: 0 auto; max-width: 620px; color: var(--w-mut); font-size: 16px; }
.closing .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 26px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--brand-contrast);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard);
}
.closing .btn:hover { background: var(--brand-hover); box-shadow: var(--shadow-glow); color: var(--brand-contrast); }

/* ---- Footer ---- */
footer {
  margin-top: 72px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--w-line);
  color: var(--w-mut2);
  font-size: 13.5px;
  text-align: center;
}
footer p { margin: 0; }
footer .names { margin-top: 6px; color: var(--w-mut2); }
