/* mobile.css — minimalist, readable brutalism for small screens */

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: #fff;
  color: #000;
}

main, section, article, header, footer, nav {
  padding: 1rem;
}

/* Headings: bold & distinct, not oversized */
h1, h2, h3, h4, h5, h6 {
  margin: 1rem 0 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }

/* Paragraphs */
p {
  margin: 0 0 1rem;
}

/* Links: blue & underlined for maximum contrast */
a {
  color: blue;
  text-decoration: underline;
}

/* Lists */
ul, ol {
  padding-left: 1.25rem;
  margin: 1rem 0;
}

/* Images & media: full width, never overflow */
video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 4px;   /* tiny nicety */
}

/* Buttons & inputs: touch-friendly */
button, input, select, textarea {
  font: inherit;
  padding: 0.6rem 0.9rem;
  margin: 0.5rem 0;
  border: 1px solid #000;
  border-radius: 4px;
  background: #f8f8f8;
  min-height: 44px;      /* thumb friendly */
  width: 100%;           /* stack on mobile */
  box-sizing: border-box;
}

/* Tables: simple borders, no scroll mess */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}
th, td {
  border: 1px solid #000;
  padding: 0.5rem;
  text-align: left;
  font-size: 0.9rem;
}

/* Kill fancy desktop scroller */
.horizontal-scroll, .panel {
  all: unset;
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
}

/* Sections spacing */
section, article, div {
  margin-bottom: 1.5rem;
}

img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;      /* never taller than screen */
  object-fit: contain;   /* scale nicely inside frame */
}