@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Manrope:wght@300;400;500;600;700&display=swap");

:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --bg-elev: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #d6dbe6;
  --accent: #2a6df5;
  --accent-strong: #1b4fc2;
  --nav-bg: #ffffff;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --bg-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='2.5' cy='2.5' r='1.2' fill='%23dfe5f1'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --bg-elev: #151925;
    --text: #e5e7eb;
    --muted: #b4bcc9;
    --border: #2a3142;
    --accent: #6aa6ff;
    --accent-strong: #8cb7ff;
    --nav-bg: #121622;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    --bg-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='2.5' cy='2.5' r='1.2' fill='%231c2231'/%3E%3C/svg%3E");
  }
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--bg-pattern);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}

a:hover,
a:focus {
  color: var(--accent-strong);
  border-bottom-color: currentColor;
}

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

.tab {
  display: inline-block;
  margin-left: 40px;
}

article {
  max-width: 900px;
  margin: 2.5rem auto 6rem;
  padding: 0 1.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text);
}

ul,
ol {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}

li {
  margin-bottom: 0.35rem;
}

h1,
h2 {
  font-family: "DM Serif Display", "Georgia", serif;
  font-weight: 400;
  letter-spacing: 0.3px;
}

h1 {
  font-size: 2.6rem;
  margin: 0 0 1rem;
}

h2 {
  font-size: 2rem;
  margin: 2rem 0 0.85rem;
}

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

h4 {
  font-size: 1.2rem;
  margin: 1.2rem 0 0.6rem;
  color: var(--muted);
  font-weight: 600;
}

h5 {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

h6 {
  font-size: 0.9rem;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

table {
  width: min(640px, 100%);
  margin: 0 auto 1.5rem;
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: 0;
}

code,
pre {
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
  background-color: rgba(42, 109, 245, 0.08);
  border-radius: 6px;
}

code {
  padding: 0.1rem 0.3rem;
}

pre {
  padding: 1rem 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--border);
}

.container-fluid {
  max-width: 1100px;
  padding: 0 1.5rem;
  margin: 0 auto;
}

.navbar {
  border: 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--nav-bg);
  box-shadow: var(--shadow);
}

.navbar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar-inverse {
  background-color: var(--nav-bg);
}

.navbar-header,
.navbar-collapse {
  display: flex;
  align-items: center;
}

.navbar-header {
  flex: 0 0 auto;
}

.navbar-brand {
  font-family: "DM Serif Display", "Georgia", serif;
  font-size: 1.3rem;
  color: var(--text);
  padding: 1rem 0;
}

.navbar-inverse .navbar-brand {
  color: var(--text);
}

.navbar-collapse {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.navbar-nav > li > a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: background-color 150ms ease, color 150ms ease;
}

.navbar-inverse .navbar-nav > li > a {
  color: var(--muted);
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
  background-color: rgba(42, 109, 245, 0.12);
  color: var(--accent-strong);
}

.navbar-toggle {
  display: none;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  color: var(--text);
  background-color: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 109, 245, 0.25);
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.btn-default {
  color: var(--text);
  background-color: var(--bg-elev);
  border-color: var(--border);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.btn-default:hover,
.btn-default:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.column {
  flex: 1 1 280px;
  height: 100%;
  overflow: auto;
  padding: 0 2%;
}

.carousel {
  width: min(520px, 90vw);
  height: min(80svh, 640px);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.carousel > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 200ms opacity ease-in-out;
  transition-delay: 200ms;
}

.slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide[data-active] {
  opacity: 1;
  z-index: 1;
  transition-delay: 0ms;
}

.carousel-button {
  position: absolute;
  z-index: 2;
  background: rgba(17, 24, 39, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.1rem 0.7rem 0.2rem;
}

.carousel-button:hover,
.carousel-button:focus {
  background: rgba(17, 24, 39, 0.7);
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}

.side-text {
  display: block;
  align-self: flex-end;
  z-index: 0;
}

.error {
  text-align: center;
}

@media (max-width: 720px) {
  .navbar-header,
  .navbar-collapse {
    flex: 1 1 100%;
  }

  .navbar {
    padding-bottom: 0.75rem;
  }

  .navbar-collapse {
    justify-content: flex-start;
  }

  .navbar-nav {
    gap: 0.35rem;
  }

  h1 {
    font-size: 2.1rem;
  }

  h2 {
    font-size: 1.6rem;
  }
}
