/* shaunpitchers.com — light, paper-like, dyslexia-friendly, suckless-ish layout */

/* -------------------------
   Theme + global defaults
-------------------------- */
:root{
  /* light "paper" palette */
  --bg: #fbf7ef;        /* warm off-white */
  --fg: #1f2328;        /* soft near-black */
  --muted: #5a6470;     /* readable grey */
  --border: #d9d2c5;    /* warm border */
  --link: #0b57d0;      /* clear link blue */
  --link-visited: #6a1bb3;

  /* layout */
  --sidebar: 11rem;
  --gap: 1.5rem;
  --content: 78ch;      /* readable line length */
  --radius: 10px;
}

*{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; }

body{
  background: var(--bg);
  color: var(--fg);

  /* universal, classic serif */
  font-family: Georgia, "Times New Roman", Times, serif;

  /* dyslexia-friendly-ish spacing */
  font-size: 19px;
  line-height: 1.85;
  letter-spacing: 0.015em;
  word-spacing: 0.04em;

  text-rendering: optimizeLegibility;
}

/* Never justify body text */
main, p, li{ text-align: left; }

/* Links: obvious + accessible */
a{
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}
a:visited{ color: var(--link-visited); }
a:hover{ text-decoration-thickness: 0.12em; }

/* Keyboard focus */
a:focus, button:focus, input:focus, textarea:focus{
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

/* -------------------------
   Header
-------------------------- */


.site-title{
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

/* -------------------------
   Main layout (true sidebar)
-------------------------- */
.layout{
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: var(--gap);
  padding: 1rem;
  align-items: start;
  min-height: 100vh;
}

/* Sidebar: full-height column, scrolls internally if it grows */
.sidebar{
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;

  border-right: 1px solid var(--border);
  padding-right: 0.6rem;
  padding-top: 0.2rem;
}

.sidebar-header{
  margin-bottom: 0.8rem;
}

.site-title{
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.site-nav a{
  display: block;
  margin: 0.25rem 0;
}

/* Sidebar blocks */
.sidebar-block{
  margin-top: 1.2rem;
}

.sidebar-title{
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: lowercase;
  margin-bottom: 0.4rem;
}

.sidebar-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li{
  margin: 0.25rem 0;
}

/* Content column */
.content{
  max-width: var(--content);
  padding-bottom: 2rem;
}

/* -------------------------
   Typography
-------------------------- */
h1, h2, h3{
  line-height: 1.25;
  margin: 1.2rem 0 0.6rem;
}
h1{ font-size: 2.0rem; }
h2{ font-size: 1.45rem; }
h3{ font-size: 1.15rem; }

p{ margin: 0.85rem 0; }

ul, ol{ padding-left: 1.35rem; }
li{ margin: 0.35rem 0; }

blockquote{
  margin: 1rem 0;
  padding: 0.2rem 1rem;
  border-left: 4px solid var(--border);
  color: var(--muted);
}

hr{
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.6rem 0;
}

/* -------------------------
   Code blocks
-------------------------- */
pre, code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
}

code{
  background: rgba(0,0,0,0.05);
  padding: 0.12rem 0.28rem;
  border-radius: 6px;
}

pre{
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  padding: 0.9rem;
  overflow: auto;
  border-radius: var(--radius);
}

/* Images */
img{
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Optional: blog list styles if you generate an archive page */
.post-list{
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.post-list li{
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}
.post-meta{
  color: var(--muted);
  font-size: 0.95rem;
}

/* -------------------------
   Footer
-------------------------- */
.site-footer{
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  color: var(--muted);
  background: rgba(255,255,255,0.5);
  padding: 1rem;
}

/* -------------------------
   Responsive: stack sidebar on small screens
-------------------------- */
@media (max-width: 700px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{
    position: static;
    height: auto;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
  }
  .content{ max-width: 100%; }
}

/* -------------------------
   Print: true paper output
-------------------------- */
@media print{
  :root{ --bg:#ffffff; --fg:#000000; }
  body{ background:#fff; color:#000; font-size: 12pt; }
  a{ color:#000; text-decoration: underline; }
  .sidebar, .site-footer{ display: none; }
  .layout{ padding: 0; }
  .content{ max-width: 100%; }
}

