/* UM, BrandsGateway tools. Brand palette and type from brandsgateway.com:
   Lora for the name, Montserrat for everything else, warm stone and olive. */

@font-face {
  font-family: 'Montserrat Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/_um/fonts/montserrat.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora Variable';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/_um/fonts/lora.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --font: 'Montserrat Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Lora Variable', Georgia, serif;
  --paper: #f3f0ea;
  --surface: #ffffff;
  --ink: #2b2a26;
  --ink-2: #5f5b52;
  --rule: #e2ddd3;
  --action: #487254;
  --action-ink: #ffffff;
  --danger: #a60d0d;
  --focus: #487254;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1b18;
    --surface: #262520;
    --ink: #f1ede6;
    --ink-2: #c4beb2;
    --rule: #3a3831;
    --action: #5f9470;
    --danger: #ff8a7a;
    --focus: #8fc29f;
  }
}

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

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

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.wordmark-um {
  font: 700 30px/1 var(--serif);
  letter-spacing: 0.02em;
}

.wordmark-by {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

/* --- Home ---------------------------------------------------------------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px;
}

.who {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  margin: 0;
  font-size: 14px;
}

.who .link {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .bar .wordmark {
    flex-direction: column;
    gap: 2px;
  }
}

.who-name {
  overflow: hidden;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link {
  padding: 6px 0;
  border: 0;
  font: inherit;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  cursor: pointer;
}

.home {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  display: grid;
  justify-items: start;
  gap: 4px;
  height: 100%;
  padding: 18px 16px 20px;
  border-radius: 10px;
  text-decoration: none;
  background: var(--surface);
  transition: transform 120ms ease;
}

a.tile:hover {
  transform: translateY(-2px);
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  border-radius: 16px;
}

.tile-icon svg {
  width: 44px;
  height: 44px;
}

.tile-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.tile-blurb {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-2);
}

.tile.is-soon {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--rule);
}

.tile.is-soon .tile-icon {
  opacity: 0.55;
}

/* --- Sign-in ------------------------------------------------------------- */

.gate {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  border-radius: 12px;
  background: var(--surface);
}

.card h1 {
  margin: 28px 0 8px;
  font: 700 26px/1.2 var(--serif);
}

.lead {
  margin: 0 0 20px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.quiet {
  font-size: 14px;
  color: var(--ink-2);
}

.stack {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
}

.field input:focus {
  border-color: var(--focus);
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 650;
  color: var(--action-ink);
  text-decoration: none;
  background: var(--action);
  cursor: pointer;
}

.error {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
}

.dev {
  padding: 10px 12px;
  border: 1.5px dashed var(--rule);
  border-radius: 6px;
  font-size: 14px;
}

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