:root {
    --foreground: rgb(28, 28, 30);
    --muted-foreground: rgb(108, 108, 112);
    --background: rgb(250, 249, 247);
    --background-hover: rgb(243, 242, 240);
    --gray-300: rgb(214, 212, 208);
    --border-default: rgb(220, 218, 214);
    --border-hover: rgb(200, 197, 192);
    --font-mono: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
    --font-serif: "Source Serif 4", "Times New Roman", serif;
}

/* TODO: standardize naming and remove unused styles */

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

.markdown p {
    margin: 0 0 1rem;
}

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    margin: 2.25rem 0 1.25rem;
}

.markdown a {
    text-decoration-line: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(0, 0, 0, 0.24);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.markdown a:hover {
    color: var(--foreground);
    text-decoration-color: rgba(0, 0, 0, 0.6);
}

.markdown ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin: 0 0 1rem;
}

.markdown li {
    margin-bottom: 0.5rem;
}

.markdown img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border: 1px solid var(--border-default);
    box-shadow: 4px 4px 0 var(--border-hover);
    background: rgba(255, 255, 255, 0.7);
}

.markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.markdown th,
.markdown td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-default);
}

.markdown thead th {
    font-family: var(--font-serif);
    font-weight: 400;
    border-bottom: 1px solid var(--border-hover);
}

.markdown tbody tr:hover {
    background: rgba(255, 255, 255, 0.6);
}

h2 {
    font-size: inherit;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.w-full {
    width: 100%;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.bg-background {
    background: var(--background);
}

.bg-background-hover:hover {
    background: var(--background-hover);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.text-muted-foreground-hover:hover {
    color: var(--muted-foreground);
}

.text-foreground {
    color: var(--foreground);
}

.text-foreground-hover:hover {
    color: var(--foreground);
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: .875rem;
    line-height: 1.25rem;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.font-mono {
  font-family:var(--font-mono);
}

.font-serif {
    font-family:var(--font-serif);
    font-weight: 400;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.overflow-hidden {
    overflow: hidden;
}

.pl-2 {
    padding-left: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.ml-6 {
    margin-left: 1.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.underline {
    text-decoration-line: underline;
}

.underline-offset-8 {
    text-underline-offset: 8px;
}

.decoration-2 {
    text-decoration-thickness: 2px;
}

.decoration-2-hover:hover {
    text-decoration-thickness: 2px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.border-black {
    border: 0 solid var(--foreground);
}

.border-gray-300 {
    border: 0 solid var(--gray-300);
}

.relative {
    position: relative;
}

.cursor-pointer {
    cursor: pointer;
}

.grow {
    flex-grow: 1;
}

.shrink-0 {
    flex-shrink: 0;
}

.whitespace-nowrap, .truncate {
    white-space: nowrap;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}


/* must be at the bottom */
.border-t {
    border-top-width: 1px;
}

.border-l {
    border-left-width: 1px;
}

.border {
    border-width: 1px;
    border-style: solid;
    border-color: var(--border-default);
}

.border-hover:hover {
    border-color: var(--border-hover);
}

.bg-white\/60 {
    background-color: rgba(255, 255, 255, 0.7);
}

.hover\:bg-white:hover {
    background-color: rgb(255, 255, 255);
}

.shadow-border-hover:hover {
    box-shadow: 3px 3px 0px var(--border-hover);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.84375rem; /* Align with timeline line */
    top: 50%;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--foreground);
    border: 2px solid var(--background);
    box-sizing: border-box;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: -0.094rem; /* align with dot center (ml-6 + dot offset) */
    top: 1.6rem; /* amount to "shave off" the top of the timeline */
    bottom: 1.6rem;
    width: 1px;
    background: var(--gray-300);
}

/* Page transition animation: very light fade to avoid flashes */
@keyframes softFade {
    from {
        opacity: 0.02;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-transition {
    animation: softFade 240ms ease-out;
    transform-origin: top center;
}

@media (prefers-reduced-motion: reduce) {
    .page-transition {
        animation: none;
    }
}

@media (min-width: 768px) {
    .md\:p-12 {
	padding: 3rem;
    }

    .md\:flex-row {
	flex-direction: row;
    }

    .md\:items-center {
	align-items: center;
    }

    .md\:max-w-3xl {
	max-width: 48rem;
    }

    .md\:text-6xl {
	font-size: 3.75rem;
	line-height: 1.1;
    }
}
