:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --card: #ffffff;
  --line: #d5deef;
  --text: #0b1f4d;
  --muted: #4a5d82;
  --accent: #0b1f4d;
  --accent-soft: #e7eef8;
  --ink: #ffffff;
  --code: #f4f7fb;
  --field: #f6f8fc;
  --shadow: 0 12px 32px rgba(11, 31, 77, 0.08);
  --mark-bg: #0b1f4d;
  --mark-fg: #ffffff;
  font-family: system-ui, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --card: #000000;
  --line: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --muted: #cfcfcf;
  --accent: #ffffff;
  --accent-soft: #161616;
  --ink: #000000;
  --code: #0d0d0d;
  --field: #000000;
  --shadow: none;
  --mark-bg: #ffffff;
  --mark-fg: #000000;
}

* { box-sizing: border-box; }

::selection { background: var(--accent); color: var(--ink); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1;
}

.word { color: var(--text); }
.tld { font-weight: 560; opacity: 0.72; }

.logo {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: var(--mark-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mark-fg);
  -webkit-mask: url("/mark-glyph.svg?v=3") center / contain no-repeat;
  mask: url("/mark-glyph.svg?v=3") center / contain no-repeat;
}

.theme-toggle {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle:hover { background: var(--accent-soft); }

.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-moon { fill: currentColor; }
.theme-toggle .icon-sun {
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
