:root {
  --bg: #fff;
  --fg: #111;
  --muted: #aaa;
  --accent: #fff;
}
[data-theme="light"] {
  --bg: #fff;
  --fg: #111;
  --muted: #555;
  --accent: #111;
}
[data-theme="dark"] {
  --bg: #111;
  --fg: #fff;
  --muted: #aaa;
  --accent: #fff;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  height: 100%; 
  overscroll-behavior: none;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.45;
  transition: background 0.2s ease, color 0.2s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
}
.container {
  max-width: 960px;
  margin: auto;
  padding: 20px;
  text-align: left;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
  flex-wrap: nowrap;
}
header h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}
.header-right {
  flex: 0 0 auto;
  text-align: right;
}
.contact a,
.links a,
.intro-text {
  display: block;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 400;
  margin-top: 0;
}
.contact a:hover,
.links a:hover {
  text-decoration: underline;
}

.links {
  margin-top: 60px;
}

.links a {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}

.meta-top {
  position: fixed;
  top: 6px;
  left: 10px;
  font-size: 11px;
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.meta-ctrl {
  position: fixed;
  top: 6px;
  right: 10px;
  font-size: 11px;
  color: var(--muted);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: flex;
  gap: 12px;
}
body.stack-top .meta-ctrl {
  top: 28px;
}
.bracketed {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}
.bracketed::before {
  content: "⟨";
}
.bracketed::after {
  content: "⟩";
}
.token {
  cursor: pointer;
}
.token:hover {
  text-decoration: underline;
}
.current {
  color: var(--fg);
}

.icon {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 6px;
  filter: invert(1);
  transition: filter 0.2s ease;
}
[data-theme="light"] .icon {
  filter: invert(0);
}

@media (max-width: 500px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .container {
    padding-top: 48px;
  }
  .contact {
    text-align: left;
  }
}

@media (max-width: 350px) {
  .bracketed {
    gap: 4px;
  }
}
											  

@media (max-width: 768px) {
  .meta-top,
  .meta-ctrl {
    display: block;
  }
}

