/* NFG Ventures: holding page. The wordmark front and centre, "Backing the Bold" beneath it, the email
   as a chip, the circle motif at the edge, the legal lines along the bottom. Two palettes from the
   design system, chosen by the class on <body>:
     theme-orange  the brand's orange field: cream wordmark, rust tagline, cream chip
     theme-cream   the cream canvas: orange wordmark, rust tagline, rust chip
   Add "no-motif" to <body> to leave the circles out. Fonts are self-hosted: no requests to other sites. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
}

:root {
  --nfg-orange: #ff6d38;
  --nfg-rust: #7c2100;
  --nfg-espresso: #34170c;
  --nfg-cream: #f5f0ea;

  --font-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur-fast: 120ms;
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: light;
}

/* Palettes. Contrast: rust on orange 3.6:1 (large text only), espresso on orange 5.9:1,
   rust on cream 8.9:1; cream on orange 2.5:1, so cream never sets words on orange. */
.theme-orange {
  --bg: var(--nfg-orange);
  --logo: var(--nfg-cream);
  --tagline: var(--nfg-rust);
  --chip-bg: var(--nfg-cream);
  --chip-fg: var(--nfg-rust);
  --chip-hover-bg: var(--nfg-rust);
  --chip-hover-fg: var(--nfg-cream);
  --legal: var(--nfg-espresso);
  --descriptor: var(--nfg-espresso);
  --orbit: var(--nfg-cream);
  --dot: var(--nfg-rust);
  --focus: var(--nfg-espresso);
}

.theme-cream {
  --bg: var(--nfg-cream);
  --logo: var(--nfg-orange);
  --tagline: var(--nfg-rust);
  --chip-bg: var(--nfg-rust);
  --chip-fg: var(--nfg-cream);
  --chip-hover-bg: var(--nfg-espresso);
  --chip-hover-fg: var(--nfg-cream);
  --legal: var(--nfg-rust);
  --descriptor: var(--nfg-espresso);
  --orbit: var(--nfg-orange);
  --dot: var(--nfg-rust);
  --focus: var(--nfg-rust);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--nfg-espresso);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--nfg-rust);
  color: var(--nfg-cream);
}

.site {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* The circle motif: 1px hairlines, one dashed, cropped by the window's edges, with a filled and a
   hollow rust dot exactly where circles cross. Wide screens get the large set at the right edge;
   narrower and portrait screens a small set in the top-right corner, clear of the wordmark. */
.motif {
  position: absolute;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.motif--wide {
  inset: 0;
  width: 100%;
  height: 100%;
}

.motif--compact {
  display: none;
  inset: 0 0 auto auto;
  width: min(100%, 560px);
  height: auto;
  aspect-ratio: 400 / 240;
}

@media (max-width: 1279px), (max-aspect-ratio: 4/5) {
  .motif--wide {
    display: none;
  }

  .motif--compact {
    display: block;
  }
}

.no-motif .motif {
  display: none !important;
}

.orbit {
  fill: none;
  stroke: var(--orbit);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.orbit--dashed {
  stroke-dasharray: 5 8;
}

.dot {
  fill: var(--dot);
}

.ring {
  fill: none;
  stroke: var(--dot);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

/* The centre: wordmark, tagline, email. */
.stage {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(80px, 14vh, 144px) var(--gutter) clamp(48px, 9vh, 96px);
  text-align: center;
}

.mark {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 400;
}

.logo {
  display: block;
  width: clamp(220px, 38vw, 580px);
  height: auto;
  color: var(--logo);
}

.home {
  display: block;
  border-radius: 4px;
}

.tagline {
  display: block;
  margin-top: clamp(12px, 1.6vw, 24px); /* --space-3 to --space-6 */
  font-weight: 500; /* Medium: holds its own beside the heavy wordmark, and reads better on orange */
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.625rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--tagline);
}

/* What NFG does, in one line. Espresso: at this size rust is too faint on orange (3.6:1). */
.descriptor {
  margin: clamp(12px, 1.2vw, 16px) 0 0; /* --space-3 to --space-4 */
  max-width: 30em;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.4;
  color: var(--descriptor);
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

/* Email: a chip, as the deck's fact pills. Hover swaps to the darker fill. */
.email {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: clamp(32px, 4vw, 48px); /* --space-8 to --space-12 */
  padding: 0 26px;
  border-radius: 14px;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-weight: 500;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  text-decoration: none;
  transition:
    background-color var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard);
}

.email:hover {
  background: var(--chip-hover-bg);
  color: var(--chip-hover-fg);
}

.email:active {
  transform: scale(0.985);
}

/* Windows high contrast: the chip's fill disappears, so give it an edge. */
@media (forced-colors: active) {
  .email {
    border: 1px solid LinkText;
  }
}

.email:focus-visible,
.home:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Legal lines: along the very bottom, left-aligned, one line each on desktop screens.
   Small but never hidden. */
.legal {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) clamp(14px, 2vw, 20px);
  font-size: 10px;
  line-height: 1.5;
  color: var(--legal);
}

.legal p {
  margin: 0;
}

/* 404 */
.message {
  margin: clamp(28px, 4vw, 44px) 0 0;
  max-width: 24em;
  font-weight: 400;
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  line-height: 1.3;
  color: var(--tagline);
}
