/*
  The holding page for eventframeos.com, until the marketing site replaces it.

  Colours are the app's tokens from web/src/styles/tokens.css, light and dark, so the page
  and the app read as one product. The fonts are served from this site rather than Google
  Fonts, so a visit sends nothing to a third party. IBM Plex is under the SIL Open Font
  License, in fonts/OFL.txt.
*/

@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --bg: #f7f5ef;
  --ink: #1c2b22;
  --ink-muted: #3e463c;
  --ink-faint: #7c766b;
  --label: #6e675c;
  --border: #d0cabc;
  --accent: #25382c;
  --accent-hover: #16241b;
  --on-accent: #f7f5ef;
  --watch: #c4571f;

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #282624;
    --ink: #e4e2e0;
    --ink-muted: #dcdad7;
    --ink-faint: #b4b0ab;
    --label: #cdcbc7;
    --border: #69655e;
    --accent: #e1dfdd;
    --accent-hover: #e6e4e2;
    --on-accent: #282624;
    --watch: #e7804b;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  flex-shrink: 0;
  border-radius: 8px;
}

.mark-ground {
  fill: var(--ink);
}

.mark-frame path {
  fill: none;
  stroke: var(--bg);
  stroke-width: 40;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark-check {
  fill: none;
  stroke: var(--watch);
  stroke-width: 44;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0;
}

.label {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: 17px;
  color: var(--ink-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 36px;
}

.button {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
}

.link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.link:hover {
  text-decoration-color: currentColor;
}

.button:focus-visible,
.link:focus-visible {
  outline: 2px solid var(--watch);
  outline-offset: 3px;
}

.footer {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-faint);
}

.footer p {
  margin: 0;
}
