/* Colours and type from the app (my_alma_mater_app/docs/04_design_system.md). Fonts are served from
   this site, not Google Fonts, so visitors' browsers don't contact Google. */

@font-face {
  font-family: "Gabarito";
  src: url("/assets/fonts/Gabarito-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #1a1814;
  --ink-muted: #66645e;
  --on-ink: #fcfcfc;
  --paper: #faf8f3;
  --border: #e5e2db;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 24px;
  -webkit-text-size-adjust: 100%;
}

main {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 48px 16px 32px;
}

.logo {
  display: block;
  width: 196px;
  height: auto;
}

h1 {
  margin: 56px 0 12px;
  font-family: "Gabarito", "Figtree", sans-serif;
  font-weight: 900;
  font-size: 34px;
  line-height: 40px;
  letter-spacing: -0.6px;
}

p {
  margin: 0 0 16px;
}

.muted {
  color: var(--ink-muted);
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.button {
  display: block;
  margin: 8px 0 24px;
  padding: 15px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  text-decoration: none;
}

.button[hidden] {
  display: none;
}

/* At least 48px between the content and the footer; more when the page is short. */
main > :nth-last-child(2) {
  margin-bottom: 48px;
}

footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 22px;
}
