/* uips theme — Solarized Light
   Overrides the base Nikola theme.css entirely.
   https://ethanschoonover.com/solarized/
*/

/* ── Accessibility ────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ── Reset / base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --sol-base03:  #002b36;
  --sol-base02:  #073642;
  --sol-base01:  #586e75;
  --sol-base00:  #657b83;
  --sol-base0:   #839496;
  --sol-base1:   #93a1a1;
  --sol-base2:   #eee8d5;
  --sol-base3:   #fdf6e3;
  --sol-yellow:  #b58900;
  --sol-orange:  #cb4b16;
  --sol-red:     #dc322f;
  --sol-magenta: #d33682;
  --sol-violet:  #6c71c4;
  --sol-blue:    #268bd2;
  --sol-cyan:    #2aa198;
  --sol-green:   #859900;
}

/* ── Layout ───────────────────────────────────────────────────────────── */
html { font-size: 16px; }

html, body, #container {
  background-color: var(--sol-base3);
  color: var(--sol-base00);
}

body {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
  margin: 0;
  padding: 0;
}

#container, .container, #content, main, .postbox {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* ── Header / Navigation ──────────────────────────────────────────────── */
header#header, #header {
  background-color: var(--sol-base2);
  border-bottom: 1px solid var(--sol-base1);
  padding: 0.5rem 1rem;
  max-width: 100%;
}

nav, nav#menu, #navbar, .navbar {
  background-color: var(--sol-base2);
  padding: 0.25rem 0;
}

nav a, nav#menu a, #navbar a {
  color: var(--sol-base01);
  text-decoration: none;
  margin-right: 1.2rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
}

nav a:hover, nav#menu a:hover { color: var(--sol-blue); }

/* ── Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--sol-base01);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2rem;   border-bottom: 2px solid var(--sol-base2); padding-bottom: 0.3rem; }
h2 { font-size: 1.5rem; border-bottom: 1px solid var(--sol-base2); padding-bottom: 0.2rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { margin: 0.8rem 0; }

a             { color: var(--sol-blue); text-decoration: none; }
a:visited     { color: var(--sol-violet); }
a:hover       { color: var(--sol-cyan); text-decoration: underline; }

/* ── Code ─────────────────────────────────────────────────────────────── */
code, kbd, samp {
  background-color: var(--sol-base2);
  color: var(--sol-base01);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.875em;
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

pre {
  background-color: var(--sol-base2);
  color: var(--sol-base01);
  padding: 1em 1.2em;
  overflow-x: auto;
  border-radius: 4px;
  border-left: 3px solid var(--sol-cyan);
  line-height: 1.45;
}

pre code { background: none; padding: 0; font-size: 0.85rem; }

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

thead tr { background-color: var(--sol-base2); }

th {
  color: var(--sol-base01);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 0.55em 1em;
  text-align: left;
  border-bottom: 2px solid var(--sol-base1);
}

td {
  padding: 0.45em 1em;
  border-bottom: 1px solid var(--sol-base2);
}

tr:hover td { background-color: var(--sol-base2); }

/* ── Blockquote ───────────────────────────────────────────────────────── */
blockquote {
  border-left: 4px solid var(--sol-cyan);
  margin: 1rem 0;
  padding: 0.5em 1.2em;
  color: var(--sol-base1);
  background-color: var(--sol-base2);
  border-radius: 0 4px 4px 0;
}

/* ── Lists ────────────────────────────────────────────────────────────── */
ul, ol { padding-left: 1.5rem; margin: 0.5rem 0; }
li { margin: 0.25rem 0; }

/* ── HR ───────────────────────────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--sol-base2);
  margin: 2rem 0;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
footer, #footer {
  border-top: 1px solid var(--sol-base2);
  color: var(--sol-base1);
  font-size: 0.8rem;
  padding: 1rem;
  text-align: center;
  margin-top: 3rem;
}
