/* Fuleli — intentionally minimal. */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --rule: #000000;
}

/* Auto: follow the OS when the user hasn't chosen. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --fg: #ededed;
    --rule: #ededed;
  }
}

/* Explicit user choice always wins. */
:root[data-theme="light"] {
  --bg: #ffffff;
  --fg: #000000;
  --rule: #000000;
}

:root[data-theme="dark"] {
  --bg: #0b0b0b;
  --fg: #ededed;
  --rule: #ededed;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

h1 {
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 40px;
}

p {
  margin: 0 0 1em;
}

em {
  font-style: italic;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.email {
  margin-top: 2em;
}

.footline {
  margin-top: 4em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  font-size: 13px;
}

.footline .addr {
  text-align: right;
}

@media (max-width: 520px) {
  .footline {
    flex-direction: column;
    align-items: flex-start;
  }
  .footline .addr {
    text-align: left;
  }
}

/* Theme toggle — a quiet text link in the top-right corner. */
#theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 16px;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#theme-toggle:hover {
  opacity: 0.7;
}

#theme-toggle:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}
