@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/jost-latin-wght-normal.woff2") format("woff2-variations");
  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: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/jost-latin-ext-wght-normal.woff2") format("woff2-variations");
  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;
}

/* Colours are taken from the Bobot logo. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --ink: #6d6e71;        /* logo wordmark grey */
  --ink-strong: #4b4c4f;
  --word: #6d6e71;
  --underline: #d4d4d6;
  --accent: #ba1223;     /* logo red */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #232427;
    --ink: #b3b4b7;
    --ink-strong: #e2e2e4;
    --word: #e6e6e7;
    --underline: #55575c;
    --accent: #fdbd4d;   /* logo yellow reads better on dark */
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 72px 16px 40px;
  text-align: center;
}

.logo {
  display: block;
  width: min(440px, 76vw);
  height: auto;
  overflow: visible;
}

.logo .word {
  color: var(--word);
}

h1 {
  margin: 2.5rem 0 0;
  font-size: 1.0625rem;
  font-weight: 420;
  letter-spacing: 0.04em;
  color: var(--ink);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 24px;
  padding: 24px 32px 32px;
  font-size: 0.9375rem;
}

footer p {
  margin: 0;
}

.contact {
  color: var(--ink-strong);
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.contact:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.contact:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 560px) {
  footer {
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 28px;
    text-align: center;
  }
}

/* One quiet moment on load: the three hexagons settle into the logo. */
@media (prefers-reduced-motion: no-preference) {
  .logo .hex-left {
    animation: from-left 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .logo .hex-right {
    animation: from-right 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .logo .cube {
    animation: from-top 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 180ms both;
  }

  .logo .word,
  h1 {
    animation: fade-in 700ms ease-out 520ms both;
  }

  @keyframes from-left {
    from { opacity: 0; transform: translate(-9px, 5px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes from-right {
    from { opacity: 0; transform: translate(9px, 5px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes from-top {
    from { opacity: 0; transform: translateY(-11px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
