/*
 *= require_tree .
 *= require_self
 */

:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --border-color: #e5e7eb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --neutral-100: #f5f5f5;
  --red-500: #ef4444;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-color-light: rgba(0, 0, 0, 0.06);
  --shadow-color-lighter: rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #212830;
    --text-color: #e5e7eb;
    --border-color: #374151;
    --gray-50: #1f2937;
    --gray-100: #374151;
    --gray-200: #4b5563;
    --gray-500: #9ca3af;
    --gray-600: #d1d5db;
    --gray-700: #e5e7eb;
    --gray-800: #f3f4f6;
    --gray-900: #ffffff;
    --neutral-100: #1f2937;
    --red-500: #f87171;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-color-light: rgba(0, 0, 0, 0.2);
    --shadow-color-lighter: rgba(0, 0, 0, 0.15);
  }
}

* { box-sizing: border-box; }
html { font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; margin: 0; padding: 0; color: var(--text-color); background-color: var(--bg-color); }

header { position: relative; display: flex; flex-direction: row; align-items: center; padding: 0.75rem 1rem; width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
@media (min-width: 640px) {
  header { padding: 1rem; }
}
header svg { width: 1rem; height: 1rem; }
header ul { margin: 0; padding: 0; }
header ul li { padding: 0; display: inline-block; margin: 0 0.25rem; }
@media (min-width: 640px) {
  header ul li { margin: 0 0.5rem; }
}
nav { display: flex; align-items: center; justify-content: space-between; }

h1 { font-size: 1.5rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }
@media (min-width: 640px) {
  h1 { line-height: 2rem; }
  h2 { line-height: 1.75rem; }
  h3 { line-height: 1.5rem; }
  h4 { line-height: 1.5rem; }
  h5 { line-height: 1.25rem; }
  h6 { line-height: 1.25rem; }
}
@media (max-width: 639px) {
  h1 { font-size: 1.375rem; line-height: 1.75rem; }
  h2 { font-size: 1.25rem; line-height: 1.5rem; }
}

a { color: inherit; text-decoration: none; }
p { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
li { width: fit-content; }
section ul li { width: 100%; }
li a { padding: 0; margin: 0; }

form { display: block; max-width: 48rem; margin: 0 auto; }
form .content { min-height: 300px; }
label { display: block; cursor: pointer; width: 100%; text-transform: none; font-size: 1rem; color: var(--text-color); }
input[type="email"], input[type="password"], input[type="text"], input[type="date"], input[type="time"], input[type="datetime-local"], textarea { display: block; width: 100%; padding: 0.5rem; font-family: inherit; font-size: inherit; line-height: 1.25rem; background-color: var(--bg-color); color: var(--text-color); border: 1px solid var(--border-color); }
input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
input[type="checkbox"] { margin-right: 0.5rem; }
button, input[type="submit"] { background-color: var(--bg-color); color: var(--text-color); border: 1px solid var(--border-color); padding: 0.5rem 1rem; cursor: pointer; }
button:hover, input[type="submit"]:hover { background-color: var(--gray-100); }

section { margin: 0; }
figure { margin: 0; position: relative; overflow: hidden; }
figcaption { color: var(--gray-600); }
img { width: 100%; height: 100%; height: auto; object-fit: cover; image-rendering: auto; image-rendering: -webkit-optimize-contrast; }

table { width: 100%; }
th, td { text-align: left; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

.absolute { position: absolute; }
.relative { position: relative; }
.static { position: static; }
.sticky { position: sticky; }

.right-1 { right: 0.25rem; }
.right-2 { right: 0.5rem; }
.right-3 { right: 0.75rem; }
.right-4 { right: 1rem; }
.right-5 { right: 1.25rem; }
.right-6 { right: 1.5rem; }
.right-8 { right: 2rem; }

.top-0 { top: 0; }
.top-1 { top: 0.25rem; }
.top-2 { top: 0.5rem; }
.top-3 { top: 0.75rem; }
.top-4 { top: 1rem; }
.top-5 { top: 1.25rem; }
.top-6 { top: 1.5rem; }
.top-8 { top: 2rem; }

.left-1 { left: 0.25rem; }
.left-2 { left: 0.5rem; }
.left-3 { left: 0.75rem; }
.left-4 { left: 1rem; }
.left-5 { left: 1.25rem; }
.left-6 { left: 1.5rem; }
.left-8 { left: 2rem; }

.bottom-1 { bottom: 0.25rem; }
.bottom-2 { bottom: 0.5rem; }
.bottom-3 { bottom: 0.75rem; }
.bottom-4 { bottom: 1rem; }
.bottom-5 { bottom: 1.25rem; }
.bottom-6 { bottom: 1.5rem; }
.bottom-8 { bottom: 2rem; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-16 > * + * { margin-top: 4rem; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }
.max-w-none { max-width: none; }
.max-w-full { max-width: 100%; }
.max-w-3xl { max-width: 48rem; }
.max-h-screen { max-height: 100vh; }
.max-w-screen { max-width: 100vw; }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; }

.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[3\/4\] { aspect-ratio: 3 / 4; }
.aspect-\[2\/3\] { aspect-ratio: 2 / 3; }
.object-cover { object-fit: cover; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pr-2 { padding-right: 0.5rem; }
.pl-2 { padding-left: 0.5rem; }

.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-5 { margin: 1.25rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }
.m-16 { margin: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mr-2 { margin-right: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-14 { margin-top: 3.5rem; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-thin { font-weight: 100; }
.font-serif { font-family: Georgia, serif; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }
.text-red-500 { color: var(--red-500); }
.text-neutral-100 { color: var(--neutral-100); }

.uppercase { text-transform: uppercase; }
.normal-case { text-transform: none; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.truncate { display: block; width: 100%; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%; }

.border { border: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-l { border-left: 1px solid var(--border-color); }
.border-r { border-right: 1px solid var(--border-color); }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

.bg-white { background-color: var(--bg-color); }
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-gray-200 { background-color: var(--gray-200); }

.shadow { box-shadow: 0 1px 3px 0 var(--shadow-color), 0 1px 2px 0 var(--shadow-color-light); }
.shadow-md { box-shadow: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -1px var(--shadow-color-light); }
.shadow-lg { box-shadow: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -2px var(--shadow-color-lighter); }
.shadow-none { box-shadow: none; }
.opacity-0 { opacity: 0; }

.list-disc { list-style-type: disc; padding-left: 1.5rem; }
.list-decimal { list-style-type: decimal; padding-left: 1.5rem; }
.list-none { list-style-type: none; padding-left: 0; }

#bio a { text-decoration: underline; }
#bio p { color: var(--text-color); }
.flash-container { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 9999; pointer-events: none; }
.flash-item { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; opacity: 1; }

lexxy-toolbar { position: sticky; top: 0; background: var(--bg-color); border-radius: 1rem 1rem 0 0; }
lexxy-toolbar button { background-color: var(--bg-color); color: var(--text-color); border: 1px solid var(--border-color); }
lexxy-toolbar button:hover { background-color: var(--gray-100); }
.lexxy-content { color: var(--text-color); }
.lexxy-content ul { list-style-type: disc; padding-left: 1rem; margin: 1rem 0; }
.lexxy-content ol { list-style-type: decimal; padding-left: 1rem; margin: 1rem 0; }
.lexxy-content p { color: var(--text-color); }
.lexxy-content h1, .lexxy-content h2, .lexxy-content h3, .lexxy-content h4, .lexxy-content h5, .lexxy-content h6 { color: var(--text-color); }
.lexxy-content a { color: var(--text-color); }
.lexxy-content strong { color: var(--text-color); }
.lexxy-content em { color: var(--text-color); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .sm\:hidden { display: none; }
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
}
@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:grid { display: grid; }
}
@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:grid { display: grid; }
}
