/* The landing page and privacy notice share a single type scale and layout. */
:root {
  color-scheme: light;
  --paper: #f8f8f3;
  --ink: #191917;
  --muted: #555550;
  --serif: "STIX Two Text", Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
.shell {
  width: min(1072px, 88%);
  margin-inline: auto;
}
.masthead {
  padding-block: 18px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 22px/1.2 var(--serif);
  letter-spacing: -0.035em;
}
.book {
  display: inline-block;
  width: 1em;
  height: 0.75em;
  flex: none;
}
.entry,
.notice {
  width: min(688px, 88%);
  margin-inline: auto;
  padding-block: 82px 78px;
}
h1 {
  margin: 0;
  font: normal clamp(24px, 2vw, 28px) / 1.22 var(--serif);
  letter-spacing: -0.035em;
}
.lead {
  max-width: 570px;
  margin: 16px 0 42px;
  color: var(--muted);
  font: normal 21px/1.35 var(--serif);
  letter-spacing: -0.025em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.remaining {
  visibility: hidden;
}
.typing {
  position: relative;
}
.typing::after {
  content: "";
  position: absolute;
  height: 0.95em;
  width: 1px;
  background: currentColor;
  margin-top: 0.2em;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 13px;
  background: #eaeae4;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}
.button.primary {
  background: var(--ink);
  color: var(--paper);
}
.button img {
  flex: none;
}
.button:hover {
  background: #ddddd6;
}
.button.primary:hover {
  background: #393934;
}
.photograph {
  width: min(1136px, 94%);
  aspect-ratio: 2.49;
  position: relative;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 4px;
  background: #33332f;
}
.photograph .campus {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56%;
  filter: grayscale(1) brightness(0.65);
}
.photograph .book {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: invert(1);
  font-size: clamp(54px, 7vw, 100px);
}
code {
  font: inherit;
  font-family: "IBM Plex Mono", Consolas, monospace;
  overflow-wrap: anywhere;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: auto;
  padding-block: 28px;
  color: var(--muted);
  font-size: 12px;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid #30558b;
  outline-offset: 4px;
}
.wordmark {
  color: var(--ink);
  text-decoration: none;
}
.notice {
  flex: 1;
  max-width: 620px;
}
.notice p {
  max-width: 560px;
  color: var(--muted);
  font: normal 20px/1.5 var(--serif);
}
.entry.setup {
  padding-block: clamp(40px, 5vw, 64px) 40px;
}
.setup .button {
  min-inline-size: 132px;
  margin-block-start: 22px;
  justify-content: center;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.setup .button[hidden] {
  display: none;
}
.setup-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}
#copy-fallback {
  width: 100%;
  max-width: 460px;
  margin-block-start: 12px;
  padding: 8px;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
#copy-fallback:not([hidden]) {
  display: block;
}
.notice small {
  color: var(--muted);
  font-size: 12px;
}
footer nav {
  display: flex;
  gap: 16px;
}

.connection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.connection-domain,
.connection-legal {
  color: var(--muted);
  font-size: 12px;
}
.connection .lead {
  max-width: 500px;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}
.connection-context {
  max-width: 460px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.connection-error {
  color: #8e3125;
  font-size: 13px;
}
.connection-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.live-sign-in {
  width: min(900px, 92%);
  padding-block: clamp(28px, 5vh, 52px) 38px;
}
.live-sign-in .connection-context {
  max-width: none;
  margin: 10px 0 18px;
}
.yale-browser {
  display: block;
  width: 100%;
  height: clamp(460px, 66vh, 690px);
  border: 1px solid #ddddd6;
  border-radius: 4px;
  background: #fff;
}
.yale-browser[hidden],
.connection-actions [hidden],
.connection-status:empty {
  display: none;
}
.connection-status,
.connection-browser-link {
  color: var(--muted);
  font-size: 13px;
}
.live-sign-in .connection-actions {
  margin-block-start: 10px;
}
.connection .button,
.connection-cancel {
  min-height: 44px;
  padding-inline: 17px;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.connection-cancel {
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding-inline: 9px;
}
.connection-cancel:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.connection-legal {
  margin: 14px 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .entry,
  .notice {
    animation: arrive 420ms ease-out both;
  }
  .photograph .campus {
    animation: settle 850ms cubic-bezier(0.2, 0.65, 0.3, 1) both;
  }
  .button {
    transition:
      background-color 140ms,
      transform 140ms;
  }
  .button:active {
    transform: translateY(1px);
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes settle {
  from {
    opacity: 0.65;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .masthead {
    padding-block: 20px;
  }
  .entry {
    padding-block: 62px 46px;
  }
  .lead {
    margin-bottom: 28px;
  }
  .button {
    min-height: 44px;
  }
  .photograph {
    width: 88%;
    aspect-ratio: 1.45;
  }
  .connection-header .wordmark {
    font-size: 19px;
  }
  .live-sign-in {
    padding-block-start: 28px;
  }
}
