/* ============================================================================
   Wikipedia "office hours" drop-in page. Standalone page that coordinates with
   lawrenceevalyn.com and the ACH poster: same topbar, palette tokens, and
   typefaces (Playfair Display + Roboto), but with the door sign's pastel
   sky-to-lilac gradient and rounded "you can come in!!" card.
   ============================================================================ */

:root {
  --bg:           #f1f1f9;  /* page background (matches site)      */
  --dark:         #262536;  /* topbar indigo (matches site)         */
  --accent:       #4c4a6c;  /* links + active state (matches site)  */
  --accent-hover: #393751;  /* hover (matches site)                 */
  --light:        #d3d3da;  /* light text on dark (matches site)    */
  --ink:          #2b2a38;  /* body text on light background        */
  --muted:        #5e5c74;  /* secondary text (a touch darker than the
                               poster's, for contrast on the gradient) */

  /* event-specific, from the door sign */
  --sky:        #c8eef6;
  --lilac:      #e2d8fb;
  --card:       rgba(255, 255, 255, 0.68);
  --card-edge:  rgba(255, 255, 255, 0.9);
  --globe-blue: #2f74d0;   /* the baby globe's little blue hands */

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Roboto", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  background-color: var(--lilac);
  background-image: linear-gradient(160deg, var(--sky) 0%, #d9e2fa 55%, var(--lilac) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* --- Topbar (copied from poster-styles.css) ------------------------------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  box-shadow: 0 2px 8px rgba(38, 37, 54, 0.25);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar .brand .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--light);
  text-decoration: none;
  white-space: nowrap;
}

.topbar .links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.topbar .links a {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--light);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 3px;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}


.topbar a:hover { background-color: var(--accent-hover); color: var(--light); }
.topbar .brand .name:hover { color: #ffffff; background: none; }

/* --- Page body ------------------------------------------------------------ */

main.wiki {
  max-width: 780px;
  margin: 0 auto;
  padding: 112px 28px 56px;   /* top padding clears the fixed topbar */
}

/* --- Hero ----------------------------------------------------------------- */

.hero { text-align: center; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.9rem;
  line-height: 1.15;
  color: #111018;
  margin: 0 0 20px;
}
.hero h1 .nowrap { white-space: nowrap; }

.hero .lede {
  font-size: 1.45rem;
  line-height: 1.45;
  max-width: 620px;
  margin: 0 auto 32px;
}

/* --- "you can come in!!" card -------------------------------------------- */

.when-where {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(76, 74, 108, 0.12);
  padding: 12px 8px;
  text-align: center;
}

.facts {
  display: flex;
  justify-content: center;
  margin: 0;
}

.fact {
  flex: 1 1 0;
  padding: 2px 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--dark);
  white-space: nowrap;
}
.fact + .fact { border-left: 1px solid rgba(76, 74, 108, 0.22); }


/* --- What happens (promise + globe) ------------------------------------- */

.what {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.what-text {
  flex: 1 1 auto;
  order: 1;
}

.promise {
  font-size: 1.12rem;
  line-height: 1.5;
  text-align: center;
  margin: 0 0 18px;
}
.promise:last-child { margin-bottom: 0; }
.promise .andor {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  white-space: nowrap;
}

.globe {
  flex: 0 0 240px;
  order: 2;
  margin: 0;
}
.globe img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Divider (the site's "* * *" motif) ----------------------------------- */

.divider {
  font-family: var(--serif);
  text-align: center;
  color: var(--accent);
  letter-spacing: 0.6em;
  font-size: 1.1rem;
  margin: 40px 0 8px;
  user-select: none;
}

/* --- Resources ------------------------------------------------------------ */

.resources h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--dark);
  margin: 20px 0 14px;
}

.resources ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.resources li {
  position: relative;
  font-size: 1.12rem;
  padding-left: 30px;
  margin-bottom: 12px;
}
.resources li::before {
  content: "✱";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--globe-blue);
}

main.wiki a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(76, 74, 108, 0.3);
}
main.wiki a:hover {
  color: var(--globe-blue);
  border-bottom-color: currentColor;
}

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

footer.wiki-foot {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 28px 48px;
  border-top: 1px solid rgba(76, 74, 108, 0.2);
  font-size: 0.98rem;
  color: var(--muted);
}
footer.wiki-foot p { margin: 0 0 6px; }
footer.wiki-foot .credit { font-size: 0.85rem; font-style: italic; }
footer.wiki-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
footer.wiki-foot a:hover { text-decoration: underline; }

/* --- Responsive ----------------------------------------------------------- */

@media screen and (max-width: 700px) {
  /* On small screens the bar scrolls away with the page instead of staying fixed,
     so its wrapped height never covers the content. */
  .topbar {
    position: static;
    flex-direction: column;
    padding: 10px 16px;
    gap: 6px;
  }
  .topbar .brand { flex-direction: column; gap: 6px; }
  .topbar .links { justify-content: center; }
  .topbar .links a { font-size: 0.95rem; padding: 6px 10px; }
  main.wiki { padding: 32px 16px 40px; }
  footer.wiki-foot { padding: 20px 16px 40px; }

  .hero h1 { font-size: 2.1rem; }
  .hero .lede { font-size: 1.25rem; }

  .when-where { padding: 10px 4px; border-radius: 14px; }
  .fact { padding: 2px 6px; }
  .fact { font-size: 1.12rem; }

  .what { flex-direction: column; gap: 8px; }
  .promise { font-size: 1.05rem; }
  .globe { flex-basis: auto; width: 200px; order: 2; }
}
