@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Newsreader;
  src: url("/fonts/newsreader-regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  background: #ece9e1;
  color: #10283e;
  --paper: #faf7ef;
  --navy: #10283e;
  --dim: #555d62;
  --serif: Newsreader, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid #906723; outline-offset: 4px; }
h1, h2, p { margin-top: 0; }

.sign-in-screen {
  width: min(100% - 48px, 1100px);
  margin: clamp(20px, 4.2vw, 56px) auto 0;
  overflow: hidden;
  border: 1px solid #fdfaf3;
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 20px 40px #17253521, 0 4px 12px #17253514;
}

.masthead {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 28px;
  border-bottom: 1px solid #e4ddd0;
  font-size: .875rem;
}

.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.06rem; font-weight: 700; text-decoration: none; }
.brand img, .nib { display: block; }
.login { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1fr); min-height: 580px; }
.login picture { position: relative; display: block; background: #060e1d; }
.nib { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account { width: 100%; max-width: 350px; min-width: 0; margin: auto; padding-block: 30px; }
.credentials h1, #clerk .cl-headerTitle {
  color: var(--navy);
  font: 400 49px/.98 var(--serif);
  letter-spacing: -.048em;
  margin: 0;
}
.credentials p, #clerk .cl-headerSubtitle { margin: 8px 0 12px; color: var(--dim); }
#clerk .cl-headerSubtitle { text-align: start; }
#clerk .cl-footerAction { border-top: 0; }
#clerk .cl-footerActionLink { text-decoration: underline; text-underline-offset: .22em; }
#account-portal .portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--navy);
  color: #fffaf0;
  font-weight: 700;
  text-decoration: none;
}

.downloads {
  margin-top: 11px;
  padding: 12px 14px 8px;
  border-left: 2px solid #b7792a;
  border-radius: 0 6px 6px 0;
  background: #f1e9db;
}

.downloads h2 { margin-bottom: 5px; font-size: .82rem; line-height: 1.4; }
.downloads p { font-size: .82rem; margin-bottom: 4px; }
.store-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.store-links a { display: grid; place-items: center; min-height: 44px; }
.store-links img { display: block; max-width: 100%; width: auto; height: 34px; }
.store-links .play-badge { height: 49px; }
footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 18px 16px; font-size: .85rem; }

@media (max-width: 850px) {
  :root { background: var(--paper); }
  .sign-in-screen { width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .masthead { min-height: 57px; padding-inline: 17px; }
  .login { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .login picture { aspect-ratio: 3; margin: 0 auto; width: min(100%, 620px); }
  .account { width: min(100% - 38px, 350px); padding-block: 24px 12px; }
  .credentials h1, #clerk .cl-headerTitle { font-size: 42px; }
}
