/* uurman.io. Colours are the design tokens of frontend/packages/tokens/tokens/color.json. */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/barlow-latin-400-normal.woff2) format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2");
}

:root {
  --ink: #22262a;
  --graphite: #5b6167;
  --page: #ffffff;
  --brand: #23608a;
  --mark: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9ebed;
    --graphite: #9ea4aa;
    --page: #181a1c;
    --brand: #73b4e2;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  font-family: "Barlow", ui-sans-serif, system-ui, sans-serif;
  font-size: 19px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 34rem;
  margin: 0 0 6vh clamp(24px, 14vw, 200px);
  padding: 48px 24px 48px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: calc(var(--mark) * 0.3);
  margin: 0 0 40px;
  font-family: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  /* The name's x-height sits at about 0.6 of the mark, as on the logo sheet. */
  font-size: calc(var(--mark) * 1.15);
  line-height: 1;
  letter-spacing: 0;
}

.mark {
  flex: none;
  width: calc(var(--mark) * 70 / 64);
  height: var(--mark);
}

.mark .ink {
  stroke: var(--ink);
}

.mark .dial {
  stroke: var(--brand);
}

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

.mark .pin {
  fill: var(--brand);
}

p {
  margin: 0;
  max-width: 26em;
}

.contact {
  margin-top: 16px;
  color: var(--graphite);
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (max-width: 600px) {
  :root {
    --mark: 44px;
  }

  body {
    font-size: 17px;
    line-height: 25px;
  }

  main {
    margin: 0 0 8vh;
    padding: 40px 16px;
  }

  .logo {
    margin-bottom: 28px;
  }
}
