@import './variables.css';
@import './forms.css';
@import './lists.css';
@import './layout.css';

.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator {
  display: inline;
}
.htmx-request.btn {
  opacity: 0.5;
  pointer-events: none;
}

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

.strike-out {
  text-decoration: line-through;
}

/* Responsive typography */
:root {
  --base-font: 16px;
}

* {
  box-sizing: border-box;
}

html {
  /* base size can be scaled by user agent; keep a sensible default */
  font-size: var(--base-font);

  scrollbar-gutter: stable;
}

.logo {
  font-size: 2rem;
  font-weight: 500;
}

/* Fluid headings using clamp */
h1 {
  font-size: 5rem;
}
h2 {
  font-size: 4rem;
}
h3 {
  font-size: 3rem;
}
h4 {
  font-size: 2rem;
}
h5 {
  font-size: 1.5rem;
}
h6 {
  font-size: 1.25rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.1;
}

/* Fluid body text */
body {
  font-size: 1rem;
}

body {
  font-family: 'Spline Sans Mono', monospace;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-background);
}

h1,
h2,
h3 {
  font-weight: 500;
  margin-bottom: 0.2rem;
}

p {
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

footer {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.sticky-content {
  position: sticky;
  top: 5rem;
}
/* Small / mobile screens: slightly reduce sizes for tight layouts */
@media (max-width: 480px) {
  body {
    width: 100%;
  }
}

/* Large / high-resolution screens: increase base size for readability */
@media (min-width: 1400px) {
  html {
    font-size: 1.125rem;
  }
}
