/* Minimal ultra-readable CSS
   - small footprint
   - good defaults for typography, spacing, forms, and buttons
   - accessible contrast and sensible line-lengths
*/

/* ---------------------------
   CSS variables
   --------------------------- */
:root {
  --page-bg: #fcfcfb;
  --surface: #ffffff;
  --muted: #6b7280;
  /* gray for secondary text */
  --text: #111827;
  /* main text */
  --accent: #0b74ff;
  /* links / accents */
  --radius: 10px;
  --max-width: 70ch;
  /* ideal reading measure */
  --gap: 1.125rem;
  /* baseline spacing */
  --ui-padding: 0.75rem 1rem;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue";
  --base-font-size: 18px;
}

/* ---------------------------
   Basic reset & box model
   --------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: var(--base-font-size);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.5;
  font-weight: 400;
  -webkit-text-size-adjust: 100%;
  display: block;
  padding: calc(var(--gap) * 1.5);
  /* keep long lines readable */
  max-width: calc(var(--max-width) + 2 * var(--gap));
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, rgba(11, 116, 255, 0.02), transparent 40%), var(--page-bg);
}

/* ---------------------------
   Content container
   --------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: calc(var(--gap) * 1.25);
  box-shadow: var(--shadow);
}

/* ---------------------------
   Headings & typography
   --------------------------- */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5rem 0;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.25rem;
  margin-top: 1.25rem;
}

h3 {
  font-size: 1rem;
  margin-top: 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: inherit;
}

/* readable paragraphs */
p+p {
  margin-top: 0.5rem;
}

/* subtle meta / muted text */
.muted,
small {
  color: var(--muted);
  font-size: 0.95rem;
}

/* code and pre */
code,
kbd,
samp {
  font-family: var(--mono);
  font-size: 0.92em;
  background: #f6f7f8;
  padding: 0.12em 0.35em;
  border-radius: 6px;
}

pre {
  overflow: auto;
  padding: 0.75rem;
  border-radius: 8px;
  background: #0f172433;
  color: var(--text);
}

/* ---------------------------
   Links
   --------------------------- */
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid rgba(11, 116, 255, 0.12);
  transition: all .15s ease;
}

a:hover,
a:focus {
  border-bottom-color: rgba(11, 116, 255, 0.25);
  outline: none;
  text-decoration: none;
}

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

ul li {
  margin: 1.5rem 0;
}

nav ul.nav {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul.nav li {
  margin: 0; /* overrides the 1.5rem vertical margins */
}
blockquote {
  margin: 0 0 1rem 0;
  padding: 0.75rem 1rem;
  background: #fbfcfe;
  border-left: 4px solid rgba(11, 116, 255, 0.12);
  color: var(--muted);
  border-radius: 8px;
}

/* ---------------------------
   Buttons & form elements
   --------------------------- */
button,
input[type="button"],
input[type="submit"] {
  font: inherit;
  padding: var(--ui-padding);
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--accent);
  color: white;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 116, 255, 0.09);
}

button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Inputs */
input,
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: white;
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 4px rgba(11, 116, 255, 0.08);
  border-color: var(--accent);
}

/* ---------------------------
   Utilities (small set)
   --------------------------- */
.row {
  display: flex;
  gap: var(--gap);
  align-items: center;
  flex-wrap: wrap;
}

.col {
  flex: 1 1 0;
  min-width: 0;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.left {
  text-align: left;
}

.right {
  text-align: right;
}

.stack>*+* {
  margin-top: var(--gap);
}

.kicker {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

/* small helpers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------
   Tables
   --------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem 0;
}

th,
td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #f1f2f4;
  vertical-align: middle;
}

th {
  font-weight: 600;
}

/* ---------------------------
   Responsive tweaks
   --------------------------- */
@media (max-width:720px) {
  :root {
    --base-font-size: 17px;
  }

  body {
    padding: calc(var(--gap) * 1);
  }

  .container {
    padding: calc(var(--gap) * 0.9);
    border-radius: 14px;
  }

  h1 {
    font-size: 1.4rem;
  }
}

/* ---------------------------
   Tiny accessibility helpers
   --------------------------- */
/* Focus visible for keyboard users */
:focus-visible {
  outline: 3px solid rgba(11, 116, 255, 0.16);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Make images behave */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* End */