:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Source Code Pro",
    Menlo, Consolas, monospace;

  --foreground: 236, 236, 236;
  --background: 29, 27, 44;
  --surface: 32, 31, 50;
  --border: 51, 49, 78;
  --muted: 148, 163, 184;
  --accent: 200, 125, 255;
  --success: 34, 197, 94;
  --danger: 239, 68, 68;

  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 16px;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
html {
  margin: 0px;
  padding: 0px;
  overflow: hidden;
  height: 100vh;
}

body {
  background-color: rgb(var(--background));
  font-family: var(--font-sans);
  color: rgb(var(--foreground));
  font-size: 15px;
  line-height: 1.6;
}

main {
  max-width: 880px;
  padding: 2rem;
  margin: 0 auto;
  overflow: auto;
  width: 100%;
  min-height: 100vh;
}

.contents_wrap {
  width: 100%;
  overflow: auto;
}

h1 {
  font-weight: 600;
  font-size: 2rem;
  margin: 0 0 1rem 0;
}

h2 {
  font-weight: 600;
  font-size: 1.5rem;
  margin: 2rem 0 1rem 0;
}

h3 {
  font-weight: 600;
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem 0;
}

a {
  text-decoration: none;
  color: rgb(var(--accent));
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: rgb(var(--accent));
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:not(.no-newtab-arrow)[target*="blank"]::after {
  content: "↗";
  position: relative;
  margin-right: 0.2em;
  top: -0.2em;
  left: 0.2em;
  font-size: 0.9em;
  font-weight: 400;
  transition: color 0.2s;
  text-decoration-color: rgb(var(--background)) !important;
  text-decoration: underline;
}

a:not(.no-newtab-arrow)[target*="blank"]:hover::after {
  color: rgba(var(--foreground));
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: rgb(var(--background));
}

::-webkit-scrollbar-thumb {
  background: rgb(var(--foreground), 0.3);
  border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(var(--foreground), 0.6);
}
