/* ============================================================
   css/style.css — ericlarslee.xyz
   Minimalist stylesheet, no frameworks, no JavaScript
   ============================================================ */

/* --- Custom properties ------------------------------------ */
:root {
  --bg:        #f5f5f0;
  --bg-alt:    #eeeee8;
  --text:      #1a1a1a;
  --text-muted:#5a5a5a;
  --link:      #2a5db0;
  --link-hover:#1a3d80;
  --border:    #d0d0c8;
  --font-body: Georgia, "Times New Roman", Times, serif;
  --font-mono: "Courier New", Courier, monospace;
  --max-width: 960px;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
}

/* --- Layout container ------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

/* --- Two-column page layout ------------------------------- */
.page-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.main-content {
  flex: 2;
  min-width: 0;
}

.sidebar {
  flex: 1;
  min-width: 0;
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: bold;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p {
  margin: 0 0 1rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover, a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 3px;
}

code {
  padding: 0.1em 0.3em;
}

pre {
  padding: 0.75rem 1rem;
  overflow-x: auto;
}

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

/* --- Header ----------------------------------------------- */
header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  padding: 1.25rem 0 0.75rem;
}

header .site-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
}

header .site-title:hover {
  color: var(--link);
  text-decoration: none;
}

header nav {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

header nav a {
  color: var(--text-muted);
  margin-right: 1rem;
}

header nav a:hover {
  color: var(--link);
  text-decoration: underline;
}

/* --- Footer ----------------------------------------------- */
footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1rem 0 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Profile image ---------------------------------------- */
.profile-img {
  float: right;
  margin: 0 0 1rem 1.5rem;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* --- Tables ----------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.97rem;
}

th {
  text-align: left;
  padding: 0.4rem 0.6rem;
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
  font-size: 0.9rem;
  font-weight: bold;
}

td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

table.maintab td:first-child {
  white-space: nowrap;
  padding-right: 1.25rem;
  width: 8rem;
}

/* --- Definition lists (<dl>) ------------------------------ */
dl {
  margin: 0 0 1.5rem;
}

dt {
  margin-top: 0.85rem;
  font-weight: bold;
}

dt a {
  color: var(--link);
}

dd {
  margin: 0.15rem 0 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Utility classes -------------------------------------- */
.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.875rem;
}

/* --- Mobile breakpoint ------------------------------------ */
@media (max-width: 680px) {
  html {
    font-size: 16px;
  }

  .page-layout {
    flex-direction: column;
  }

  .sidebar {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .profile-img {
    float: none;
    display: block;
    margin: 0 0 1rem 0;
  }
}
