/* ------------------------------------------------------------------ *
   Front door

   One illustration, one question, one line of reassurance. This domain hosts
   several unrelated things behind their own logins, and none of them are
   listed here — so the page's whole job is to look like somewhere you'd want
   to be let into, and then get out of the way.

   System fonts throughout: the office network blocks Google, and Google Fonts
   would be blocked with it.
 * ------------------------------------------------------------------ */

:root {
  --paper:  #f4f1e8;
  --card:   #fffdf7;
  --ink:    #23231f;
  --muted:  #6f6b62;
  --rule:   #e2ddd0;
  --mark:   #3f6b4f;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  /* A hint of sky at the top so the illustration doesn't sit on a hard edge. */
  background: radial-gradient(120% 60% at 50% 0%, #e7ece2 0%, var(--paper) 62%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
}

.page {
  width: 100%;
  max-width: 620px;
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;                 /* keeps the scene inside the corners */
  box-shadow:
    0 1px 2px rgba(60, 52, 32, 0.05),
    0 18px 44px rgba(60, 52, 32, 0.09);
}

/* Scene ---------------------------------------------------------- */

.hero { display: block; line-height: 0; }

.hero svg { display: block; width: 100%; height: auto; }

/* The windows and lantern breathe, so the place looks lived in rather than
   drawn. Slow enough not to pull the eye off the words. */
.lit { animation: lamp 5.5s ease-in-out infinite; transform-origin: center; }

@keyframes lamp {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.86; }
}

.smoke { animation: drift 9s ease-in-out infinite; }

@keyframes drift {
  0%   { opacity: 0;    transform: translateY(6px)   translateX(0); }
  25%  { opacity: 0.55; }
  100% { opacity: 0;    transform: translateY(-26px) translateX(10px); }
}

/* Words ---------------------------------------------------------- */

.words { padding: 30px 34px 34px; text-align: center; }

.mark {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  font-size: 31px;
  font-weight: 680;
  letter-spacing: -0.022em;
  line-height: 1.16;
  margin: 12px 0 10px;
}

.lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 40ch;
}

/* Directory, for when something gets listed ---------------------- */

.index { list-style: none; margin: 26px 0 0; padding: 0; text-align: left; }
.index li { border-top: 1px solid var(--rule); }
.index li:last-child { border-bottom: 1px solid var(--rule); }

.entry {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 17px 2px;
  text-decoration: none;
  color: inherit;
}

.entry:hover .name, .entry:hover .arrow { color: var(--mark); }

.name { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }

.note {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}

.arrow { color: var(--rule); font-size: 16px; }
.entry:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }
li[aria-disabled="true"] .entry { pointer-events: none; opacity: 0.45; }

/* Footer --------------------------------------------------------- */

footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Small screens -------------------------------------------------- */

@media (max-width: 460px) {
  body { padding: 16px 14px 28px; }
  .page { border-radius: 18px; }
  .words { padding: 24px 22px 28px; }
  h1 { font-size: 26px; }
  .lede { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .lit, .smoke { animation: none; }
}
