/* Header written on the sheet: pages, theme toggle, and the blue language post-it. */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  padding-bottom: .7em;
  border-bottom: 2px solid var(--paper-ink);
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 1.5em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--f-ui);
  font-size: .82em;
  font-weight: 700;
}

.site-header nav a { text-decoration: none; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--pen);
  text-decoration-thickness: .15em;
  text-underline-offset: .35em;
}

/* The icon follows <html data-theme>, so it is right before any JavaScript runs. */
.theme-toggle {
  margin-left: auto;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--paper-muted);
  font: 1em/1 var(--f-ui);
  cursor: pointer;
}
.theme-toggle::before { content: "◐"; }
:root[data-theme="light"] .theme-toggle::before { content: "☀\FE0E"; }
:root[data-theme="dark"] .theme-toggle::before { content: "☾\FE0E"; }
.theme-toggle:hover { color: var(--paper-ink); }

.language-switch {
  position: absolute;
  top: -12px;
  right: 34px;
  z-index: 2;
  padding: 8px 12px 10px;
  rotate: 3deg;
  background: var(--postit-blue);
  color: var(--postit-blue-ink);
  box-shadow: 0 8px 8px -6px rgba(0, 0, 0, .4);
  font-size: .9rem;
  line-height: 1.2;
  text-decoration: none;
}
.language-switch__short { display: none; }

@media (max-width: 640px) {
  .language-switch { top: -10px; right: 14px; padding: 6px 10px 8px; font-size: .8rem; }
  .language-switch__label { display: none; }
  .language-switch__short { display: inline; }
}
