/* Open-Book — base / tokens */

:root {
  --color-bg: #010101;
  --color-bg-elevated: #0a0a0a;
  --color-gold: #9f7423;
  --color-gold-light: #d4a84b;
  --color-gold-hover: #b8862a;
  --color-green: #034633;
  --color-green-hover: #044a3d;
  --color-green-dark: #022b1f;
  --color-white: #ffffff;
  --color-gray-100: #f6f6f6;
  --color-text-muted: #b0c4bc;
  --color-text-soft: #d1ddd9;
  --color-text-faint: #94aca3;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-surface-green-tint: #e8efed;
  --color-surface-green-muted: #f3f7f6;
  --color-surface-gold-tint: #f5efe6;
  --color-surface-gold-soft: #ebe0cf;
  --color-icon-green-muted: #5a7a72;
  --color-gold-quote: #a67c2e;
  --color-gold-decorative: #c4a25f;
  --font-sans: Inter, system-ui, sans-serif;
  --container-max: 80rem;
  --header-height: 6rem;
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(159, 116, 35, 0.4);
  color: var(--color-white);
}

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

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

::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background: rgba(159, 116, 35, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4, p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
