@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #efede8;
  --ink: #1b1b19;
  --mute: #6b6963;
  --line: #d3d0c9;
  --accent: #c03c0a;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151513;
    --ink: #eceae4;
    --mute: #94918a;
    --line: #2f2e2b;
    --accent: #f26a21;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151513;
  --ink: #eceae4;
  --mute: #94918a;
  --line: #2f2e2b;
  --accent: #f26a21;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 520px;
  min-height: 100svh;
  margin: 0 auto;
  padding:
    env(safe-area-inset-top)
    max(var(--gutter), env(safe-area-inset-right))
    env(safe-area-inset-bottom)
    max(var(--gutter), env(safe-area-inset-left));
  color: var(--ink);
  background: var(--bg);
  font: 400 17px/1.35 "Inter Tight", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

/* Laid out like the timer: the name sits where the time does, and Sign in sits
   where Start does. */
main {
  display: flex;
  flex-direction: column;
  min-height: min(82svh, 640px);
  padding-top: calc(56px + 5svh);
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: currentColor;
}

.lead {
  margin-top: 24px;
}

.note {
  margin-top: 4px;
  color: var(--mute);
}

.signin {
  display: grid;
  flex: none;
  place-items: center;
  width: 116px;
  height: 116px;
  margin: auto 8px 36px auto;
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 7px var(--bg), 0 0 0 8px var(--line);
  transition: transform 80ms ease-out;
  -webkit-tap-highlight-color: transparent;
}

.signin:active {
  transform: scale(0.97);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .signin {
    transition: none;
  }
}
