/* Portfolio — warm, minimal */

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

body {
  font-family: Georgia, "Times New Roman", serif;
  background: #f4efe6;
  color: #2c2418;
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

a {
  color: #6b3a2a;
}

a:visited {
  color: #4a2820;
}

a:hover {
  color: #8b4513;
}

/* ---- layout ---- */

#sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #e3dac9;
  border-right: 1px solid #c9bfad;
  padding: 2em 1.5em;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

#sidebar h1 {
  font-size: 1.15em;
  font-weight: normal;
  margin-bottom: 0.25em;
}

#sidebar p.tagline {
  font-size: 0.8em;
  color: #6b5e50;
  margin-bottom: 1.5em;
  white-space: nowrap;
}

#sidebar ul {
  list-style: none;
}

#sidebar ul li {
  margin-bottom: 0.6em;
}

#sidebar ul li a {
  text-decoration: none;
  font-size: 0.9em;
}

#sidebar ul li a:hover {
  text-decoration: underline;
}

#sidebar ul li a.active {
  font-weight: bold;
}

#main {
  flex: 1;
  max-width: 680px;
  padding: 2.5em 2.5em;
  margin: 0 auto;
}

/* ---- typography ---- */

h2 {
  font-size: 1.4em;
  font-weight: normal;
  margin-bottom: 0.5em;
  border-bottom: 1px solid #c9bfad;
  padding-bottom: 0.25em;
}

h3 {
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}

p {
  margin-bottom: 1em;
}

ul, ol {
  margin-bottom: 1em;
  margin-left: 1.5em;
}

li {
  margin-bottom: 0.3em;
}

hr {
  border: none;
  border-top: 1px solid #c9bfad;
  margin: 2em 0;
}

/* ---- resume-specific ---- */

.job {
  margin-bottom: 1.5em;
}

.job-header {
  font-weight: bold;
}

.job-meta {
  font-style: italic;
  font-size: 0.9em;
  color: #6b5e50;
  margin-bottom: 0.4em;
}

.skills-list {
  font-size: 0.9em;
}

/* ---- reflection block ---- */

.reflection {
  background: #ebe5d9;
  border-left: 3px solid #c9bfad;
  padding: 1em 1.25em;
  margin: 1.5em 0;
  font-size: 0.95em;
}

/* ---- document link ---- */

.doc-link {
  display: inline-block;
  padding: 0.4em 0.8em;
  border: 1px solid #6b3a2a;
  text-decoration: none;
  font-size: 0.9em;
  margin-top: 0.5em;
}

.doc-link:hover {
  background: #6b3a2a;
  color: #f4efe6;
}

/* ---- bio page ---- */

.bio-intro {
  font-size: 1.05em;
  margin-bottom: 1.5em;
}

.contact-line {
  font-size: 0.9em;
  color: #6b5e50;
  margin-bottom: 1.5em;
}

/* ---- footer ---- */

.footer {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid #c9bfad;
  font-size: 0.8em;
  color: #6b5e50;
}

/* ---- responsive ---- */

@media (max-width: 700px) {
  body {
    flex-direction: column;
  }

  #sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid #c9bfad;
    padding: 1.25em 1.5em;
  }

  #sidebar h1 {
    display: inline;
    margin-right: 0.5em;
  }

  #sidebar p.tagline {
    display: inline;
    margin-bottom: 0.75em;
  }

  #sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em 1em;
    margin-top: 0.75em;
  }

  #sidebar ul li {
    margin-bottom: 0;
  }

  #main {
    max-width: 100%;
    padding: 1.5em;
  }
}
